]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14383 Removing YUI 2.5.0 to upgrade to 2.5.2
authornicolasconnault <nicolasconnault>
Fri, 25 Jul 2008 10:41:39 +0000 (10:41 +0000)
committernicolasconnault <nicolasconnault>
Fri, 25 Jul 2008 10:41:39 +0000 (10:41 +0000)
153 files changed:
lib/yui/assets/skins/sam/asc.gif [deleted file]
lib/yui/assets/skins/sam/autocomplete.css [deleted file]
lib/yui/assets/skins/sam/blankimage.png [deleted file]
lib/yui/assets/skins/sam/button.css [deleted file]
lib/yui/assets/skins/sam/calendar.css [deleted file]
lib/yui/assets/skins/sam/colorpicker.css [deleted file]
lib/yui/assets/skins/sam/container.css [deleted file]
lib/yui/assets/skins/sam/datatable.css [deleted file]
lib/yui/assets/skins/sam/desc.gif [deleted file]
lib/yui/assets/skins/sam/dt-arrow-dn.png [deleted file]
lib/yui/assets/skins/sam/dt-arrow-up.png [deleted file]
lib/yui/assets/skins/sam/editor-knob.gif [deleted file]
lib/yui/assets/skins/sam/editor-sprite-active.gif [deleted file]
lib/yui/assets/skins/sam/editor-sprite.gif [deleted file]
lib/yui/assets/skins/sam/editor.css [deleted file]
lib/yui/assets/skins/sam/header_background.png [deleted file]
lib/yui/assets/skins/sam/hue_bg.png [deleted file]
lib/yui/assets/skins/sam/imagecropper.css [deleted file]
lib/yui/assets/skins/sam/layout.css [deleted file]
lib/yui/assets/skins/sam/layout_sprite.png [deleted file]
lib/yui/assets/skins/sam/logger.css [deleted file]
lib/yui/assets/skins/sam/menu-button-arrow-disabled.png [deleted file]
lib/yui/assets/skins/sam/menu-button-arrow.png [deleted file]
lib/yui/assets/skins/sam/menu.css [deleted file]
lib/yui/assets/skins/sam/menubaritem_submenuindicator.png [deleted file]
lib/yui/assets/skins/sam/menubaritem_submenuindicator_disabled.png [deleted file]
lib/yui/assets/skins/sam/menuitem_checkbox.png [deleted file]
lib/yui/assets/skins/sam/menuitem_checkbox_disabled.png [deleted file]
lib/yui/assets/skins/sam/menuitem_submenuindicator.png [deleted file]
lib/yui/assets/skins/sam/menuitem_submenuindicator_disabled.png [deleted file]
lib/yui/assets/skins/sam/picker_mask.png [deleted file]
lib/yui/assets/skins/sam/profilerviewer.css [deleted file]
lib/yui/assets/skins/sam/resize.css [deleted file]
lib/yui/assets/skins/sam/simpleeditor.css [deleted file]
lib/yui/assets/skins/sam/skin.css [deleted file]
lib/yui/assets/skins/sam/split-button-arrow-active.png [deleted file]
lib/yui/assets/skins/sam/split-button-arrow-disabled.png [deleted file]
lib/yui/assets/skins/sam/split-button-arrow-focus.png [deleted file]
lib/yui/assets/skins/sam/split-button-arrow-hover.png [deleted file]
lib/yui/assets/skins/sam/split-button-arrow.png [deleted file]
lib/yui/assets/skins/sam/sprite.png [deleted file]
lib/yui/assets/skins/sam/tabview.css [deleted file]
lib/yui/assets/skins/sam/treeview-loading.gif [deleted file]
lib/yui/assets/skins/sam/treeview-sprite.gif [deleted file]
lib/yui/assets/skins/sam/treeview.css [deleted file]
lib/yui/assets/skins/sam/wait.gif [deleted file]
lib/yui/assets/skins/sam/yuitest.css [deleted file]
lib/yui/autocomplete/README [deleted file]
lib/yui/autocomplete/autocomplete-debug.js [deleted file]
lib/yui/autocomplete/autocomplete-min.js [deleted file]
lib/yui/autocomplete/autocomplete.js [deleted file]
lib/yui/calendar/README [deleted file]
lib/yui/calendar/calendar-debug.js [deleted file]
lib/yui/calendar/calendar-min.js [deleted file]
lib/yui/calendar/calendar.js [deleted file]
lib/yui/colorpicker/assets/colorpicker_core.css [deleted file]
lib/yui/colorpicker/assets/hue_thumb.png [deleted file]
lib/yui/colorpicker/assets/picker_mask.png [deleted file]
lib/yui/colorpicker/assets/picker_thumb.png [deleted file]
lib/yui/connection/README [deleted file]
lib/yui/connection/connection-debug.js [deleted file]
lib/yui/connection/connection-min.js [deleted file]
lib/yui/connection/connection.js [deleted file]
lib/yui/container/assets/alrt16_1.gif [deleted file]
lib/yui/container/assets/blck16_1.gif [deleted file]
lib/yui/container/assets/close12_1.gif [deleted file]
lib/yui/container/assets/container-core.css [deleted file]
lib/yui/container/assets/container.css [deleted file]
lib/yui/container/assets/hlp16_1.gif [deleted file]
lib/yui/container/assets/info16_1.gif [deleted file]
lib/yui/container/assets/skins/sam/container-skin.css [deleted file]
lib/yui/container/assets/skins/sam/container.css [deleted file]
lib/yui/container/assets/tip16_1.gif [deleted file]
lib/yui/container/assets/warn16_1.gif [deleted file]
lib/yui/dom/README [deleted file]
lib/yui/dom/dom-debug.js [deleted file]
lib/yui/dom/dom-min.js [deleted file]
lib/yui/dom/dom.js [deleted file]
lib/yui/dragdrop/README [deleted file]
lib/yui/dragdrop/dragdrop-debug.js [deleted file]
lib/yui/dragdrop/dragdrop-min.js [deleted file]
lib/yui/dragdrop/dragdrop.js [deleted file]
lib/yui/element/README [deleted file]
lib/yui/element/element-beta-debug.js [deleted file]
lib/yui/element/element-beta-min.js [deleted file]
lib/yui/element/element-beta.js [deleted file]
lib/yui/imagecropper/assets/imagecropper-core.css [deleted file]
lib/yui/layout/README [deleted file]
lib/yui/layout/layout-beta-debug.js [deleted file]
lib/yui/layout/layout-beta-min.js [deleted file]
lib/yui/layout/layout-beta.js [deleted file]
lib/yui/logger/assets/skins/sam/logger-skin.css [deleted file]
lib/yui/logger/assets/skins/sam/logger.css [deleted file]
lib/yui/menu/README [deleted file]
lib/yui/menu/assets/menu-core.css [deleted file]
lib/yui/menu/assets/menu.css [deleted file]
lib/yui/menu/assets/menu_down_arrow.png [deleted file]
lib/yui/menu/assets/menu_down_arrow_disabled.png [deleted file]
lib/yui/menu/assets/menu_up_arrow.png [deleted file]
lib/yui/menu/assets/menu_up_arrow_disabled.png [deleted file]
lib/yui/menu/assets/menubaritem_submenuindicator.png [deleted file]
lib/yui/menu/assets/menubaritem_submenuindicator_disabled.png [deleted file]
lib/yui/menu/assets/menubaritem_submenuindicator_selected.png [deleted file]
lib/yui/menu/assets/menuitem_checkbox.png [deleted file]
lib/yui/menu/assets/menuitem_checkbox_disabled.png [deleted file]
lib/yui/menu/assets/menuitem_checkbox_selected.png [deleted file]
lib/yui/menu/assets/menuitem_submenuindicator.png [deleted file]
lib/yui/menu/assets/menuitem_submenuindicator_disabled.png [deleted file]
lib/yui/menu/assets/menuitem_submenuindicator_selected.png [deleted file]
lib/yui/menu/menu-debug.js [deleted file]
lib/yui/menu/menu-min.js [deleted file]
lib/yui/menu/menu.js [deleted file]
lib/yui/reset/README [deleted file]
lib/yui/reset/reset-min.css [deleted file]
lib/yui/reset/reset.css [deleted file]
lib/yui/resize/README [deleted file]
lib/yui/resize/assets/skins/sam/layout_sprite.png [deleted file]
lib/yui/resize/assets/skins/sam/resize-skin.css [deleted file]
lib/yui/resize/assets/skins/sam/resize.css [deleted file]
lib/yui/resize/resize-beta-debug.js [deleted file]
lib/yui/resize/resize-beta-min.js [deleted file]
lib/yui/resize/resize-beta.js [deleted file]
lib/yui/selector/README [deleted file]
lib/yui/selector/selector-beta-debug.js [deleted file]
lib/yui/selector/selector-beta-min.js [deleted file]
lib/yui/selector/selector-beta.js [deleted file]
lib/yui/slider/README [deleted file]
lib/yui/slider/slider-debug.js [deleted file]
lib/yui/slider/slider-min.js [deleted file]
lib/yui/slider/slider.js [deleted file]
lib/yui/treeview/assets/skins/sam/treeview-loading.gif [deleted file]
lib/yui/treeview/assets/skins/sam/treeview-skin.css [deleted file]
lib/yui/treeview/assets/skins/sam/treeview-sprite.gif [deleted file]
lib/yui/treeview/assets/skins/sam/treeview.css [deleted file]
lib/yui/treeview/assets/sprite-menu.gif [deleted file]
lib/yui/treeview/assets/sprite-orig.gif [deleted file]
lib/yui/treeview/assets/treeview-core.css [deleted file]
lib/yui/treeview/assets/treeview-loading.gif [deleted file]
lib/yui/treeview/assets/treeview-menu.css [deleted file]
lib/yui/treeview/assets/treeview.css [deleted file]
lib/yui/yuitest/README [deleted file]
lib/yui/yuitest/yuitest-beta-debug.js [deleted file]
lib/yui/yuitest/yuitest-beta-min.js [deleted file]
lib/yui/yuitest/yuitest-beta.js [deleted file]
lib/yui/yuitest/yuitest-debug.js [deleted file]
lib/yui/yuitest/yuitest-min.js [deleted file]
lib/yui/yuitest/yuitest.js [deleted file]
lib/yui/yuitest/yuitest_core-beta-debug.js [deleted file]
lib/yui/yuitest/yuitest_core-beta-min.js [deleted file]
lib/yui/yuitest/yuitest_core-beta.js [deleted file]
lib/yui/yuitest/yuitest_core-debug.js [deleted file]
lib/yui/yuitest/yuitest_core-min.js [deleted file]
lib/yui/yuitest/yuitest_core.js [deleted file]

diff --git a/lib/yui/assets/skins/sam/asc.gif b/lib/yui/assets/skins/sam/asc.gif
deleted file mode 100644 (file)
index a1fe738..0000000
Binary files a/lib/yui/assets/skins/sam/asc.gif and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/autocomplete.css b/lib/yui/assets/skins/sam/autocomplete.css
deleted file mode 100755 (executable)
index ed09f85..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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:0.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.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;}.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/lib/yui/assets/skins/sam/blankimage.png b/lib/yui/assets/skins/sam/blankimage.png
deleted file mode 100755 (executable)
index b87bb24..0000000
Binary files a/lib/yui/assets/skins/sam/blankimage.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/button.css b/lib/yui/assets/skins/sam/button.css
deleted file mode 100755 (executable)
index a34617a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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;*position:relative;*left:-1px;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a{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:2;}.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-button-focus button,.yui-skin-sam .yui-button-focus a{color:#000;}.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-button-hover button,.yui-skin-sam .yui-button-hover a{color:#000;}.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-button-active button,.yui-skin-sam .yui-button-active a{color:#000;}.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{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/lib/yui/assets/skins/sam/calendar.css b/lib/yui/assets/skins/sam/calendar.css
deleted file mode 100755 (executable)
index f5a7f8f..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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:0px;top:0px;}.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;}.yui-calendar{position:relative;}.yui-calendar .calnavleft{position:absolute;z-index:1;}.yui-calendar .calnavright{position:absolute;z-index:1;}.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 #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;}.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 #cccccc;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:#0066cc;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:#cccccc;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:#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;}.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:0.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/lib/yui/assets/skins/sam/colorpicker.css b/lib/yui/assets/skins/sam/colorpicker.css
deleted file mode 100755 (executable)
index b4a18d7..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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: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;padding:0;color:#000;}
diff --git a/lib/yui/assets/skins/sam/container.css b/lib/yui/assets/skins/sam/container.css
deleted file mode 100755 (executable)
index b0d7e49..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2;}.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{display:none;}.yui-tt-shadow{position:absolute;}.yui-skin-sam .mask{background-color:#000;opacity:.25;*filter:alpha(opacity=25);}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px 3px;}.yui-skin-sam .yui-panel{position:relative;*zoom:1;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{*zoom:1;*position:relative;border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;}.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 .yui-panel-container.focused .yui-panel .hd{}.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 5px 0 3px;}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;right:-3px;bottom:-3px;left:-3px;*top:3px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_right:0;_bottom:0;_left: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-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/lib/yui/assets/skins/sam/datatable.css b/lib/yui/assets/skins/sam/datatable.css
deleted file mode 100755 (executable)
index ac21fba..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.yui-dt{border:1px solid transparent;}.yui-dt-noop{border:none;}.yui-dt-liner{overflow:hidden;}.yui-dt-bd thead tr,.yui-dt-bd thead th{position:absolute;left:-1500px;}.yui-dt-draggable{cursor:move;}.yui-dt-coltarget{position:absolute;z-index:999;}.yui-dt-hd{zoom:1;}th.yui-dt-resizeable .yui-dt-liner{position:relative;}.yui-dt-resizer{position:absolute;right:0;bottom:0;height:100%;cursor:e-resize;cursor:col-resize;}.yui-dt-resizerproxy{visibility:hidden;position:absolute;z-index:9000;}.yui-skin-sam th.yui-dt-hidden .yui-dt-liner,.yui-skin-sam td.yui-dt-hidden .yui-dt-liner{margin:0;padding:0;overflow:hidden;white-space:nowrap;}.yui-dt-scrollable .yui-dt-bd{overflow:auto;}.yui-dt-scrollable .yui-dt-hd{overflow:hidden;position:relative;}.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:collapse;border-spacing:0;}.yui-skin-sam .yui-dt thead{border-spacing:0;}.yui-skin-sam .yui-dt caption{padding-bottom:1em;text-align:left;}.yui-skin-sam .yui-dt-hd table{border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}.yui-skin-sam .yui-dt-bd table{border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}.yui-skin-sam .yui-dt-scrollable .yui-dt-hd table{border:0px;}.yui-skin-sam .yui-dt-scrollable .yui-dt-bd table{border:0px;}.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;}.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-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-loading{background-color:#FFF;}.yui-skin-sam .yui-dt-empty{background-color:#FFF;}.yui-skin-sam .yui-dt-error{background-color:#FFF;}.yui-skin-sam thead .yui-dt-sortable{cursor:pointer;}.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;}.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-pg-container,.yui-skin-sam .yui-dt-paginator{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-last,.yui-skin-sam .yui-pg-current-page,.yui-skin-sam .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 a.yui-pg-first,.yui-skin-sam a.yui-pg-previous,.yui-skin-sam a.yui-pg-next,.yui-skin-sam a.yui-pg-last,.yui-skin-sam a.yui-pg-page,.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-pg-page,.yui-skin-sam a.yui-dt-page{border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;background-color:#fff}.yui-skin-sam .yui-pg-current-page,.yui-skin-sam .yui-dt-selected{border:1px solid #fff;background-color:#fff;}.yui-skin-sam .yui-pg-pages{margin-left:1ex;margin-right:1ex;}.yui-skin-sam .yui-pg-page{margin-right:1px;margin-left:1px;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous{margin-right:3px;}.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last{margin-left:3px;}.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-rpp-options{margin-right:1em;margin-left:1em;}
diff --git a/lib/yui/assets/skins/sam/desc.gif b/lib/yui/assets/skins/sam/desc.gif
deleted file mode 100644 (file)
index c114f29..0000000
Binary files a/lib/yui/assets/skins/sam/desc.gif and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/dt-arrow-dn.png b/lib/yui/assets/skins/sam/dt-arrow-dn.png
deleted file mode 100755 (executable)
index 85fda0b..0000000
Binary files a/lib/yui/assets/skins/sam/dt-arrow-dn.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/dt-arrow-up.png b/lib/yui/assets/skins/sam/dt-arrow-up.png
deleted file mode 100755 (executable)
index 1c67431..0000000
Binary files a/lib/yui/assets/skins/sam/dt-arrow-up.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/editor-knob.gif b/lib/yui/assets/skins/sam/editor-knob.gif
deleted file mode 100755 (executable)
index 03feab3..0000000
Binary files a/lib/yui/assets/skins/sam/editor-knob.gif and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/editor-sprite-active.gif b/lib/yui/assets/skins/sam/editor-sprite-active.gif
deleted file mode 100755 (executable)
index 04ac4e4..0000000
Binary files a/lib/yui/assets/skins/sam/editor-sprite-active.gif and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/editor-sprite.gif b/lib/yui/assets/skins/sam/editor-sprite.gif
deleted file mode 100755 (executable)
index dd36c3e..0000000
Binary files a/lib/yui/assets/skins/sam/editor-sprite.gif and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/editor.css b/lib/yui/assets/skins/sam/editor.css
deleted file mode 100755 (executable)
index 05d6f11..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.yui-busy{cursor:wait !important;}.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-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;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;height:18px;margin:.2em 0 .2em .1em;display:block;clear:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:35px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;}.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;}.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;}.yui-editor-container iframe{border:0px;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:0.25em 0pt 0.25em 0.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 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-padding{}.yui-editor-panel .yui-toolbar-group-border{}.yui-editor-panel .yui-toolbar-group-textflow{}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width h3{}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:auto;}.yui-editor-panel .height-width span.info{font-size:70%;}.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;}.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:0px;}.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:0px 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0px;}.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:0.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-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-toolbar-container .yui-toolbar-titlebar h2{color:#000000;font-weight:bold;margin:0;padding:0.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:0.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:.25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em 0.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:0.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.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;margin:0;border-color:#808080;border-style:solid;border-width:1px 0;}.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:93%;line-height:2;display:block;color:#000000;overflow:hidden;}.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;}.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:0px;}.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 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-italic span.yui-toolbar-icon{background-position:0 -36px;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:0px;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;}.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 .yuimenu{}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:0.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;}.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:#ffffff;}.yui-editor-blankimage{background-image:url( blankimage.png );}
diff --git a/lib/yui/assets/skins/sam/header_background.png b/lib/yui/assets/skins/sam/header_background.png
deleted file mode 100644 (file)
index 3ef7909..0000000
Binary files a/lib/yui/assets/skins/sam/header_background.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/hue_bg.png b/lib/yui/assets/skins/sam/hue_bg.png
deleted file mode 100755 (executable)
index d9bcdeb..0000000
Binary files a/lib/yui/assets/skins/sam/hue_bg.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/imagecropper.css b/lib/yui/assets/skins/sam/imagecropper.css
deleted file mode 100644 (file)
index 66f861b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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;}.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/lib/yui/assets/skins/sam/layout.css b/lib/yui/assets/skins/sam/layout.css
deleted file mode 100644 (file)
index cd33f52..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.yui-layout-loading{visibility:hidden;}body.yui-layout{overflow:hidden;position:relative;padding:0;margin:0;}.yui-layout-doc{position:relative;}.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-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;}.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{opacity:0;filter:alpha(opacity=0);}.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{background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-l{width:5px;height:100%;top:0;left:0;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-r{width:5px;top:0;right:0;height:100%;}.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;}.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;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r{right:0;top:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-l{left:0;top:0;background-image:none;}.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:0px;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;}
diff --git a/lib/yui/assets/skins/sam/layout_sprite.png b/lib/yui/assets/skins/sam/layout_sprite.png
deleted file mode 100644 (file)
index d6fce3c..0000000
Binary files a/lib/yui/assets/skins/sam/layout_sprite.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/logger.css b/lib/yui/assets/skins/sam/logger.css
deleted file mode 100755 (executable)
index f91c8c3..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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-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;}.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/lib/yui/assets/skins/sam/menu-button-arrow-disabled.png b/lib/yui/assets/skins/sam/menu-button-arrow-disabled.png
deleted file mode 100755 (executable)
index 8cef2ab..0000000
Binary files a/lib/yui/assets/skins/sam/menu-button-arrow-disabled.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/menu-button-arrow.png b/lib/yui/assets/skins/sam/menu-button-arrow.png
deleted file mode 100755 (executable)
index f03dfee..0000000
Binary files a/lib/yui/assets/skins/sam/menu-button-arrow.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/menu.css b/lib/yui/assets/skins/sam/menu.css
deleted file mode 100755 (executable)
index bb8989a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.yuimenubar{visibility:visible;position:static;}.yuimenu .yuimenu,.yuimenubar .yuimenu{visibility:hidden;position:absolute;top:-10000px;left:-10000px;}.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-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 .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{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{border:solid 1px #808080;background-color:#fff;}.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 .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{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/lib/yui/assets/skins/sam/menubaritem_submenuindicator.png b/lib/yui/assets/skins/sam/menubaritem_submenuindicator.png
deleted file mode 100644 (file)
index 030941c..0000000
Binary files a/lib/yui/assets/skins/sam/menubaritem_submenuindicator.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/menubaritem_submenuindicator_disabled.png b/lib/yui/assets/skins/sam/menubaritem_submenuindicator_disabled.png
deleted file mode 100644 (file)
index 6c16122..0000000
Binary files a/lib/yui/assets/skins/sam/menubaritem_submenuindicator_disabled.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/menuitem_checkbox.png b/lib/yui/assets/skins/sam/menuitem_checkbox.png
deleted file mode 100644 (file)
index 1437a4f..0000000
Binary files a/lib/yui/assets/skins/sam/menuitem_checkbox.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/menuitem_checkbox_disabled.png b/lib/yui/assets/skins/sam/menuitem_checkbox_disabled.png
deleted file mode 100644 (file)
index 5d5b998..0000000
Binary files a/lib/yui/assets/skins/sam/menuitem_checkbox_disabled.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/menuitem_submenuindicator.png b/lib/yui/assets/skins/sam/menuitem_submenuindicator.png
deleted file mode 100644 (file)
index ea4f660..0000000
Binary files a/lib/yui/assets/skins/sam/menuitem_submenuindicator.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/menuitem_submenuindicator_disabled.png b/lib/yui/assets/skins/sam/menuitem_submenuindicator_disabled.png
deleted file mode 100644 (file)
index 427d60a..0000000
Binary files a/lib/yui/assets/skins/sam/menuitem_submenuindicator_disabled.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/picker_mask.png b/lib/yui/assets/skins/sam/picker_mask.png
deleted file mode 100755 (executable)
index f8d9193..0000000
Binary files a/lib/yui/assets/skins/sam/picker_mask.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/profilerviewer.css b/lib/yui/assets/skins/sam/profilerviewer.css
deleted file mode 100644 (file)
index dce1d57..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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/lib/yui/assets/skins/sam/resize.css b/lib/yui/assets/skins/sam/resize.css
deleted file mode 100644 (file)
index 45a907d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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;}.yui-skin-sam .yui-resize .yui-resize-handle-active{background-color:#7D98B8;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}.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;}
diff --git a/lib/yui/assets/skins/sam/simpleeditor.css b/lib/yui/assets/skins/sam/simpleeditor.css
deleted file mode 100644 (file)
index 05d6f11..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.yui-busy{cursor:wait !important;}.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-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;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;height:18px;margin:.2em 0 .2em .1em;display:block;clear:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:35px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;}.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;}.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;}.yui-editor-container iframe{border:0px;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:0.25em 0pt 0.25em 0.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 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-padding{}.yui-editor-panel .yui-toolbar-group-border{}.yui-editor-panel .yui-toolbar-group-textflow{}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width h3{}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:auto;}.yui-editor-panel .height-width span.info{font-size:70%;}.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;}.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:0px;}.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:0px 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0px;}.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:0.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-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-toolbar-container .yui-toolbar-titlebar h2{color:#000000;font-weight:bold;margin:0;padding:0.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:0.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:.25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em 0.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:0.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.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;margin:0;border-color:#808080;border-style:solid;border-width:1px 0;}.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:93%;line-height:2;display:block;color:#000000;overflow:hidden;}.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;}.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:0px;}.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 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-italic span.yui-toolbar-icon{background-position:0 -36px;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:0px;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;}.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 .yuimenu{}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:0.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;}.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:#ffffff;}.yui-editor-blankimage{background-image:url( blankimage.png );}
diff --git a/lib/yui/assets/skins/sam/skin.css b/lib/yui/assets/skins/sam/skin.css
deleted file mode 100755 (executable)
index ba3a7d1..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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:0.10;opacity:.10;filter:alpha(opacity=10);z-index:9049;}.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;}.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;*position:relative;*left:-1px;}.yui-skin-sam .yui-button button,.yui-skin-sam .yui-button a{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:2;}.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-button-focus button,.yui-skin-sam .yui-button-focus a{color:#000;}.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-button-hover button,.yui-skin-sam .yui-button-hover a{color:#000;}.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-button-active button,.yui-skin-sam .yui-button-active a{color:#000;}.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{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:0px;top:0px;}.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;}.yui-calendar{position:relative;}.yui-calendar .calnavleft{position:absolute;z-index:1;}.yui-calendar .calnavright{position:absolute;z-index:1;}.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 #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;}.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 #cccccc;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:#0066cc;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:#cccccc;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:#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;}.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:0.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-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: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;padding:0;color:#000;}
-.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2;}.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{display:none;}.yui-tt-shadow{position:absolute;}.yui-skin-sam .mask{background-color:#000;opacity:.25;*filter:alpha(opacity=25);}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px 3px;}.yui-skin-sam .yui-panel{position:relative;*zoom:1;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{*zoom:1;*position:relative;border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;}.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 .yui-panel-container.focused .yui-panel .hd{}.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 5px 0 3px;}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;right:-3px;bottom:-3px;left:-3px;*top:3px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_right:0;_bottom:0;_left: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-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-dt{border:1px solid transparent;}.yui-dt-noop{border:none;}.yui-dt-liner{overflow:hidden;}.yui-dt-bd thead tr,.yui-dt-bd thead th{position:absolute;left:-1500px;}.yui-dt-draggable{cursor:move;}.yui-dt-coltarget{position:absolute;z-index:999;}.yui-dt-hd{zoom:1;}th.yui-dt-resizeable .yui-dt-liner{position:relative;}.yui-dt-resizer{position:absolute;right:0;bottom:0;height:100%;cursor:e-resize;cursor:col-resize;}.yui-dt-resizerproxy{visibility:hidden;position:absolute;z-index:9000;}.yui-skin-sam th.yui-dt-hidden .yui-dt-liner,.yui-skin-sam td.yui-dt-hidden .yui-dt-liner{margin:0;padding:0;overflow:hidden;white-space:nowrap;}.yui-dt-scrollable .yui-dt-bd{overflow:auto;}.yui-dt-scrollable .yui-dt-hd{overflow:hidden;position:relative;}.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:collapse;border-spacing:0;}.yui-skin-sam .yui-dt thead{border-spacing:0;}.yui-skin-sam .yui-dt caption{padding-bottom:1em;text-align:left;}.yui-skin-sam .yui-dt-hd table{border-left:1px solid #7F7F7F;border-top:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}.yui-skin-sam .yui-dt-bd table{border-left:1px solid #7F7F7F;border-bottom:1px solid #7F7F7F;border-right:1px solid #7F7F7F;}.yui-skin-sam .yui-dt-scrollable .yui-dt-hd table{border:0px;}.yui-skin-sam .yui-dt-scrollable .yui-dt-bd table{border:0px;}.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;}.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-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-loading{background-color:#FFF;}.yui-skin-sam .yui-dt-empty{background-color:#FFF;}.yui-skin-sam .yui-dt-error{background-color:#FFF;}.yui-skin-sam thead .yui-dt-sortable{cursor:pointer;}.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;}.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-pg-container,.yui-skin-sam .yui-dt-paginator{display:block;margin:6px 0;white-space:nowrap;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-last,.yui-skin-sam .yui-pg-current-page,.yui-skin-sam .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 a.yui-pg-first,.yui-skin-sam a.yui-pg-previous,.yui-skin-sam a.yui-pg-next,.yui-skin-sam a.yui-pg-last,.yui-skin-sam a.yui-pg-page,.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-pg-page,.yui-skin-sam a.yui-dt-page{border:1px solid #CBCBCB;padding:2px 6px;text-decoration:none;background-color:#fff}.yui-skin-sam .yui-pg-current-page,.yui-skin-sam .yui-dt-selected{border:1px solid #fff;background-color:#fff;}.yui-skin-sam .yui-pg-pages{margin-left:1ex;margin-right:1ex;}.yui-skin-sam .yui-pg-page{margin-right:1px;margin-left:1px;}.yui-skin-sam .yui-pg-first,.yui-skin-sam .yui-pg-previous{margin-right:3px;}.yui-skin-sam .yui-pg-next,.yui-skin-sam .yui-pg-last{margin-left:3px;}.yui-skin-sam .yui-pg-current,.yui-skin-sam .yui-pg-rpp-options{margin-right:1em;margin-left:1em;}
-.yui-busy{cursor:wait !important;}.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-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;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;height:18px;margin:.2em 0 .2em .1em;display:block;clear:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:35px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;}.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;}.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;}.yui-editor-container iframe{border:0px;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:0.25em 0pt 0.25em 0.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 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-padding{}.yui-editor-panel .yui-toolbar-group-border{}.yui-editor-panel .yui-toolbar-group-textflow{}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width h3{}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:auto;}.yui-editor-panel .height-width span.info{font-size:70%;}.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;}.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:0px;}.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:0px 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0px;}.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:0.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-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-toolbar-container .yui-toolbar-titlebar h2{color:#000000;font-weight:bold;margin:0;padding:0.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:0.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:.25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em 0.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:0.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.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;margin:0;border-color:#808080;border-style:solid;border-width:1px 0;}.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:93%;line-height:2;display:block;color:#000000;overflow:hidden;}.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;}.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:0px;}.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 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-italic span.yui-toolbar-icon{background-position:0 -36px;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:0px;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;}.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 .yuimenu{}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:0.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;}.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:#ffffff;}.yui-editor-blankimage{background-image:url( blankimage.png );}
-.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;}.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;}.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-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;}.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{opacity:0;filter:alpha(opacity=0);}.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{background-color:#EDF5FF;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-l{width:5px;height:100%;top:0;left:0;}.yui-skin-sam .yui-layout .yui-resize-proxy .yui-layout-handle-r{width:5px;top:0;right:0;height:100%;}.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;}.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;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-r{right:0;top:0;background-image:none;}.yui-skin-sam .yui-layout-unit .yui-resize-handle-l{left:0;top:0;background-image:none;}.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:0px;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;}
-.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-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;}.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;}
-.yuimenubar{visibility:visible;position:static;}.yuimenu .yuimenu,.yuimenubar .yuimenu{visibility:hidden;position:absolute;top:-10000px;left:-10000px;}.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-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 .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{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{border:solid 1px #808080;background-color:#fff;}.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 .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{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-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-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;}.yui-skin-sam .yui-resize .yui-resize-handle-active{background-color:#7D98B8;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}.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-busy{cursor:wait !important;}.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-grouped span.yui-toolbar-draghandle{height:40px;}.yui-toolbar-container .yui-toolbar-group{float:left;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;height:18px;margin:.2em 0 .2em .1em;display:block;clear:none;float:left;}.yui-toolbar-container.yui-toolbar-grouped span.yui-toolbar-separator{height:35px;}.yui-toolbar-container.yui-toolbar-grouped .yui-toolbar-group span.yui-toolbar-separator{height:18px;}.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;}.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;}.yui-editor-container iframe{border:0px;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:0.25em 0pt 0.25em 0.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 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-padding{}.yui-editor-panel .yui-toolbar-group-border{}.yui-editor-panel .yui-toolbar-group-textflow{}.yui-editor-panel .height-width{float:left;}.yui-editor-panel .height-width h3{}.yui-editor-panel .height-width span{font-style:italic;display:block;float:left;overflow:auto;}.yui-editor-panel .height-width span.info{font-size:70%;}.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;}.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:0px;}.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:0px 3px 7px 17px;}.yui-toolbar-bordersize-menu .yuimenuitemlabel .checkedindicator,.yui-toolbar-bordertype-menu .yuimenuitemlabel .checkedindicator{position:absolute;left:-12px;*top:14px;*left:0px;}.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:0.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-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-toolbar-container .yui-toolbar-titlebar h2{color:#000000;font-weight:bold;margin:0;padding:0.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:0.25em;text-align:left;}.yui-toolbar-container span.yui-toolbar-separator{border:none;text-indent:33px;overflow:hidden;margin:.25em;}.yui-skin-sam .yui-toolbar-container{background-color:#F2F2F2;}.yui-skin-sam .yui-toolbar-container .yui-toolbar-subcont{padding:0 1em 0.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:0.25em;}.yui-skin-sam .yui-toolbar-container .collapse{background:url(sprite.png) no-repeat 0 -400px;}.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;margin:0;border-color:#808080;border-style:solid;border-width:1px 0;}.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:93%;line-height:2;display:block;color:#000000;overflow:hidden;}.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;}.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:0px;}.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 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-italic span.yui-toolbar-icon{background-position:0 -36px;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:0px;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;}.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 .yuimenu{}.yui-skin-sam .yui-editor-panel .yui-toolbar-container .yui-toolbar-subcont{padding:0;border:none;margin-top:0.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;}.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:#ffffff;}.yui-editor-blankimage{background-image:url( blankimage.png );}
-.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;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 0.5em;}.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{zoom:1;}.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;Xposition:relative;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;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 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:0.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:0.35em 0.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:0.25em 0.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 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 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;}.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 0.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 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;}.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;}
-.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4000px no-repeat;}.ygtvtmh{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{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;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0px no-repeat;}.ygtvlmh{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{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -3200px no-repeat;}.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;}.ygtvitem{}.ygtvchildren{*zoom:1;}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;}.ygtvspacer{height:22px;width:12px;}
-
diff --git a/lib/yui/assets/skins/sam/split-button-arrow-active.png b/lib/yui/assets/skins/sam/split-button-arrow-active.png
deleted file mode 100755 (executable)
index fa58c50..0000000
Binary files a/lib/yui/assets/skins/sam/split-button-arrow-active.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/split-button-arrow-disabled.png b/lib/yui/assets/skins/sam/split-button-arrow-disabled.png
deleted file mode 100755 (executable)
index 0a6a82c..0000000
Binary files a/lib/yui/assets/skins/sam/split-button-arrow-disabled.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/split-button-arrow-focus.png b/lib/yui/assets/skins/sam/split-button-arrow-focus.png
deleted file mode 100755 (executable)
index 167d71e..0000000
Binary files a/lib/yui/assets/skins/sam/split-button-arrow-focus.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/split-button-arrow-hover.png b/lib/yui/assets/skins/sam/split-button-arrow-hover.png
deleted file mode 100755 (executable)
index 167d71e..0000000
Binary files a/lib/yui/assets/skins/sam/split-button-arrow-hover.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/split-button-arrow.png b/lib/yui/assets/skins/sam/split-button-arrow.png
deleted file mode 100755 (executable)
index b33a93f..0000000
Binary files a/lib/yui/assets/skins/sam/split-button-arrow.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/sprite.png b/lib/yui/assets/skins/sam/sprite.png
deleted file mode 100755 (executable)
index afd65e0..0000000
Binary files a/lib/yui/assets/skins/sam/sprite.png and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/tabview.css b/lib/yui/assets/skins/sam/tabview.css
deleted file mode 100755 (executable)
index 85b05bb..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 0.5em;}.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{zoom:1;}.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;Xposition:relative;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;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 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:0.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:0.35em 0.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:0.25em 0.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 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 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;}.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 0.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 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;}.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/lib/yui/assets/skins/sam/treeview-loading.gif b/lib/yui/assets/skins/sam/treeview-loading.gif
deleted file mode 100755 (executable)
index 0bbf3bc..0000000
Binary files a/lib/yui/assets/skins/sam/treeview-loading.gif and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/treeview-sprite.gif b/lib/yui/assets/skins/sam/treeview-sprite.gif
deleted file mode 100755 (executable)
index a04eff6..0000000
Binary files a/lib/yui/assets/skins/sam/treeview-sprite.gif and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/treeview.css b/lib/yui/assets/skins/sam/treeview.css
deleted file mode 100755 (executable)
index 447c4a5..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4000px no-repeat;}.ygtvtmh{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{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;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0px no-repeat;}.ygtvlmh{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{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -3200px no-repeat;}.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;}.ygtvitem{}.ygtvchildren{*zoom:1;}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;}.ygtvspacer{height:22px;width:12px;}
diff --git a/lib/yui/assets/skins/sam/wait.gif b/lib/yui/assets/skins/sam/wait.gif
deleted file mode 100644 (file)
index 471c1a4..0000000
Binary files a/lib/yui/assets/skins/sam/wait.gif and /dev/null differ
diff --git a/lib/yui/assets/skins/sam/yuitest.css b/lib/yui/assets/skins/sam/yuitest.css
deleted file mode 100755 (executable)
index 4bee47e..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-
diff --git a/lib/yui/autocomplete/README b/lib/yui/autocomplete/README
deleted file mode 100755 (executable)
index 16d0eb7..0000000
+++ /dev/null
@@ -1,162 +0,0 @@
-AutoComplete Release Notes
-
-*** version 2.5.0 ***
-
-* Fixed bug where Mac users were not able to input "&" or "(" characters.
-
-
-
-*** version 2.4.0 ***
-
-* Support for YUI JSON Utility.
-
-* The allowBrowserAutocomplete property now supports cases when the user navigates
-away from page via mean other than a form submission.
-
-* Added support for integration with the Get Utility, for proxyless data
-retrieval from dynamically loaded script nodes.
-
-* Typing 'Enter' to select item no longer causes automatic form submission on
-Mac browsers.
-
-
-
-*** version 2.3.1 ***
-
-* AutoComplete no longer throw a JavaScript error due to an invalid or
-non-existent parent container. While a wrapper DIV element is still expected in
-order to enable skinning (see 2.3.0 release note), a lack of such will not
-cause an error.
-
-* When suggestion container is collapsed, Mac users no longer need to type
-Enter twice to submit input.
-
-
-
-*** version 2.3.0 ***
-
-* Applied new skinning model. Please note that in order to enable skinning,
-AutoComplete now expects a wrapper DIV element around the INPUT element and the
-container DIV element, in this fashion:
-
-<div id="myAutoComplete">
-    <input type="text" id="myInput">
-    <div id="myContainer"></div>
-</div>
-
-* The default queryDelay value has been changed to 0.2. In low-latency
-implementations (e.g., when queryDelay is set to 0 against a local
-JavaScript DataSource), typeAhead functionality may experience a race condition
-when retrieving the value of the textbox. To avoid this problem, implementers
-are advised not to set the queryDelay value too low.
-
-* Fixed runtime property value validation.
-
-* Implemented new method doBeforeSendQuery().
-
-* Implemented new method destroy().
-
-* Added support for latest JSON lib http://www.json.org/json.js.
-
-* Fixed forceSelection issues with matched selections and multiple selections.
-
-* No longer create var oAnim in global scope.
-
-* The properties alwaysShowContainer and useShadow should not be enabled together.
-
-* There is a known issue in Firefox where the native browser autocomplete
-attribute cannot be disabled programmatically on input boxes that are in use.
-
-
-
-
-
-**** version 2.2.2 ***
-
-* No changes.
-
-
-
-*** version 2.2.1 ***
-
-* Fixed form submission in Safari bug.
-* Fixed broken DS_JSArray support for minQueryLength=0.
-* Improved type checking with YAHOO.lang.
-
-
-
-*** version 2.2.0 ***
-
-* No changes.
-
-
-
-*** version 0.12.2 ***
-
-* No changes.
-
-
-
-*** version 0.12.1 ***
-
-* No longer trigger typeAhead feature when user is backspacing on input text.
-
-
-
-*** version 0.12.0 ***
-
-* The following constants must be defined as static class properties and are no longer
-available as instance properties:
-
-YAHOO.widget.DataSource.ERROR_DATANULL
-YAHOO.widget.DataSource.ERROR_DATAPARSE
-YAHOO.widget.DS_XHR.TYPE_JSON
-YAHOO.widget.DS_XHR.TYPE_XML
-YAHOO.widget.DS_XHR.TYPE_FLAT
-YAHOO.widget.DS_XHR.ERROR_DATAXHR
-
-* The property minQueryLength now supports zero and negative number values for
-DS_JSFunction and DS_XHR objects, to enable null or empty string queries and to disable
-AutoComplete functionality altogether, respectively.
-
-* Enabling the alwaysShowContainer feature will no longer send containerExpandEvent or
-containerCollapseEvent.
-
-
-
-**** version 0.11.3 ***
-
-* The iFrameSrc property has been deprecated. Implementers no longer need to
-specify an https URL to avoid IE security warnings when working with sites over
-SSL.
-
-
-
-*** version 0.11.0 ***
-
-* The method getListIds() has been deprecated for getListItems(), which returns
-an array of DOM references.
-
-* All classnames have been prefixed with "yui-ac-".
-
-* Container elements should no longer have CSS property "display" set to "none".
-
-* The useIFrame property can now be set after instantiation.
-
-* On some browsers, the unmatchedItemSelectEvent may not be fired properly when
-delimiter characters are defined.
-
-* On some browsers, defining delimiter characters while enabling forceSelection
-may result in unexpected behavior.
-
-
-
-*** version 0.10.0 ***
-
-* Initial release
-
-* In order to enable the useIFrame property, it should be set in the
-constructor.
-
-* On some browsers, defining delimiter characters while enabling forceSelection
-may result in unexpected behavior.
diff --git a/lib/yui/autocomplete/autocomplete-debug.js b/lib/yui/autocomplete/autocomplete-debug.js
deleted file mode 100755 (executable)
index 47eec8d..0000000
+++ /dev/null
@@ -1,3616 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
- /**
- * The AutoComplete control provides the front-end logic for text-entry suggestion and
- * completion functionality.
- *
- * @module autocomplete
- * @requires yahoo, dom, event, datasource
- * @optional animation, connection, get
- * @namespace YAHOO.widget
- * @title AutoComplete Widget
- */
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The AutoComplete class provides the customizable functionality of a plug-and-play DHTML
- * auto completion widget.  Some key features:
- * <ul>
- * <li>Navigate with up/down arrow keys and/or mouse to pick a selection</li>
- * <li>The drop down container can "roll down" or "fly out" via configurable
- * animation</li>
- * <li>UI look-and-feel customizable through CSS, including container
- * attributes, borders, position, fonts, etc</li>
- * </ul>
- *
- * @class AutoComplete
- * @constructor
- * @param elInput {HTMLElement} DOM element reference of an input field.
- * @param elInput {String} String ID of an input field.
- * @param elContainer {HTMLElement} DOM element reference of an existing DIV.
- * @param elContainer {String} String ID of an existing DIV.
- * @param oDataSource {YAHOO.widget.DataSource} DataSource instance.
- * @param oConfigs {Object} (optional) Object literal of configuration params.
- */
-YAHOO.widget.AutoComplete = function(elInput,elContainer,oDataSource,oConfigs) {
-    if(elInput && elContainer && oDataSource) {
-        // Validate DataSource
-        if(oDataSource instanceof YAHOO.widget.DataSource) {
-            this.dataSource = oDataSource;
-        }
-        else {
-            YAHOO.log("Could not instantiate AutoComplete due to an invalid DataSource", "error", this.toString());
-            return;
-        }
-
-        // Validate input element
-        if(YAHOO.util.Dom.inDocument(elInput)) {
-            if(YAHOO.lang.isString(elInput)) {
-                    this._sName = "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput;
-                    this._elTextbox = document.getElementById(elInput);
-            }
-            else {
-                this._sName = (elInput.id) ?
-                    "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput.id:
-                    "instance" + YAHOO.widget.AutoComplete._nIndex;
-                this._elTextbox = elInput;
-            }
-            YAHOO.util.Dom.addClass(this._elTextbox, "yui-ac-input");
-        }
-        else {
-            YAHOO.log("Could not instantiate AutoComplete due to an invalid input element", "error", this.toString());
-            return;
-        }
-
-        // Validate container element
-        if(YAHOO.util.Dom.inDocument(elContainer)) {
-            if(YAHOO.lang.isString(elContainer)) {
-                    this._elContainer = document.getElementById(elContainer);
-            }
-            else {
-                this._elContainer = elContainer;
-            }
-            if(this._elContainer.style.display == "none") {
-                YAHOO.log("The container may not display properly if display is set to \"none\" in CSS", "warn", this.toString());
-            }
-            
-            // For skinning
-            var elParent = this._elContainer.parentNode;
-            var elTag = elParent.tagName.toLowerCase();
-            if(elTag == "div") {
-                YAHOO.util.Dom.addClass(elParent, "yui-ac");
-            }
-            else {
-                YAHOO.log("Could not find the wrapper element for skinning", "warn", this.toString());
-            }
-        }
-        else {
-            YAHOO.log("Could not instantiate AutoComplete due to an invalid container element", "error", this.toString());
-            return;
-        }
-
-        // Set any config params passed in to override defaults
-        if(oConfigs && (oConfigs.constructor == Object)) {
-            for(var sConfig in oConfigs) {
-                if(sConfig) {
-                    this[sConfig] = oConfigs[sConfig];
-                }
-            }
-        }
-
-        // Initialization sequence
-        this._initContainer();
-        this._initProps();
-        this._initList();
-        this._initContainerHelpers();
-
-        // Set up events
-        var oSelf = this;
-        var elTextbox = this._elTextbox;
-        // Events are actually for the content module within the container
-        var elContent = this._elContent;
-
-        // Dom events
-        YAHOO.util.Event.addListener(elTextbox,"keyup",oSelf._onTextboxKeyUp,oSelf);
-        YAHOO.util.Event.addListener(elTextbox,"keydown",oSelf._onTextboxKeyDown,oSelf);
-        YAHOO.util.Event.addListener(elTextbox,"focus",oSelf._onTextboxFocus,oSelf);
-        YAHOO.util.Event.addListener(elTextbox,"blur",oSelf._onTextboxBlur,oSelf);
-        YAHOO.util.Event.addListener(elContent,"mouseover",oSelf._onContainerMouseover,oSelf);
-        YAHOO.util.Event.addListener(elContent,"mouseout",oSelf._onContainerMouseout,oSelf);
-        YAHOO.util.Event.addListener(elContent,"scroll",oSelf._onContainerScroll,oSelf);
-        YAHOO.util.Event.addListener(elContent,"resize",oSelf._onContainerResize,oSelf);
-        YAHOO.util.Event.addListener(elTextbox,"keypress",oSelf._onTextboxKeyPress,oSelf);
-        YAHOO.util.Event.addListener(window,"unload",oSelf._onWindowUnload,oSelf);
-
-        // Custom events
-        this.textboxFocusEvent = new YAHOO.util.CustomEvent("textboxFocus", this);
-        this.textboxKeyEvent = new YAHOO.util.CustomEvent("textboxKey", this);
-        this.dataRequestEvent = new YAHOO.util.CustomEvent("dataRequest", this);
-        this.dataReturnEvent = new YAHOO.util.CustomEvent("dataReturn", this);
-        this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this);
-        this.containerExpandEvent = new YAHOO.util.CustomEvent("containerExpand", this);
-        this.typeAheadEvent = new YAHOO.util.CustomEvent("typeAhead", this);
-        this.itemMouseOverEvent = new YAHOO.util.CustomEvent("itemMouseOver", this);
-        this.itemMouseOutEvent = new YAHOO.util.CustomEvent("itemMouseOut", this);
-        this.itemArrowToEvent = new YAHOO.util.CustomEvent("itemArrowTo", this);
-        this.itemArrowFromEvent = new YAHOO.util.CustomEvent("itemArrowFrom", this);
-        this.itemSelectEvent = new YAHOO.util.CustomEvent("itemSelect", this);
-        this.unmatchedItemSelectEvent = new YAHOO.util.CustomEvent("unmatchedItemSelect", this);
-        this.selectionEnforceEvent = new YAHOO.util.CustomEvent("selectionEnforce", this);
-        this.containerCollapseEvent = new YAHOO.util.CustomEvent("containerCollapse", this);
-        this.textboxBlurEvent = new YAHOO.util.CustomEvent("textboxBlur", this);
-        
-        // Finish up
-        elTextbox.setAttribute("autocomplete","off");
-        YAHOO.widget.AutoComplete._nIndex++;
-        YAHOO.log("AutoComplete initialized","info",this.toString());
-    }
-    // Required arguments were not found
-    else {
-        YAHOO.log("Could not instantiate AutoComplete due invalid arguments", "error", this.toString());
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * The DataSource object that encapsulates the data used for auto completion.
- * This object should be an inherited object from YAHOO.widget.DataSource.
- *
- * @property dataSource
- * @type YAHOO.widget.DataSource
- */
-YAHOO.widget.AutoComplete.prototype.dataSource = null;
-
-/**
- * Number of characters that must be entered before querying for results. A negative value
- * effectively turns off the widget. A value of 0 allows queries of null or empty string
- * values.
- *
- * @property minQueryLength
- * @type Number
- * @default 1
- */
-YAHOO.widget.AutoComplete.prototype.minQueryLength = 1;
-
-/**
- * Maximum number of results to display in results container.
- *
- * @property maxResultsDisplayed
- * @type Number
- * @default 10
- */
-YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed = 10;
-
-/**
- * Number of seconds to delay before submitting a query request.  If a query
- * request is received before a previous one has completed its delay, the
- * previous request is cancelled and the new request is set to the delay.
- * Implementers should take care when setting this value very low (i.e., less
- * than 0.2) with low latency DataSources and the typeAhead feature enabled, as
- * fast typers may see unexpected behavior.
- *
- * @property queryDelay
- * @type Number
- * @default 0.2
- */
-YAHOO.widget.AutoComplete.prototype.queryDelay = 0.2;
-
-/**
- * Class name of a highlighted item within results container.
- *
- * @property highlightClassName
- * @type String
- * @default "yui-ac-highlight"
- */
-YAHOO.widget.AutoComplete.prototype.highlightClassName = "yui-ac-highlight";
-
-/**
- * Class name of a pre-highlighted item within results container.
- *
- * @property prehighlightClassName
- * @type String
- */
-YAHOO.widget.AutoComplete.prototype.prehighlightClassName = null;
-
-/**
- * Query delimiter. A single character separator for multiple delimited
- * selections. Multiple delimiter characteres may be defined as an array of
- * strings. A null value or empty string indicates that query results cannot
- * be delimited. This feature is not recommended if you need forceSelection to
- * be true.
- *
- * @property delimChar
- * @type String | String[]
- */
-YAHOO.widget.AutoComplete.prototype.delimChar = null;
-
-/**
- * Whether or not the first item in results container should be automatically highlighted
- * on expand.
- *
- * @property autoHighlight
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.autoHighlight = true;
-
-/**
- * Whether or not the input field should be automatically updated
- * with the first query result as the user types, auto-selecting the substring
- * that the user has not typed.
- *
- * @property typeAhead
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.typeAhead = false;
-
-/**
- * Whether or not to animate the expansion/collapse of the results container in the
- * horizontal direction.
- *
- * @property animHoriz
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.animHoriz = false;
-
-/**
- * Whether or not to animate the expansion/collapse of the results container in the
- * vertical direction.
- *
- * @property animVert
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.animVert = true;
-
-/**
- * Speed of container expand/collapse animation, in seconds..
- *
- * @property animSpeed
- * @type Number
- * @default 0.3
- */
-YAHOO.widget.AutoComplete.prototype.animSpeed = 0.3;
-
-/**
- * Whether or not to force the user's selection to match one of the query
- * results. Enabling this feature essentially transforms the input field into a
- * &lt;select&gt; field. This feature is not recommended with delimiter character(s)
- * defined.
- *
- * @property forceSelection
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.forceSelection = false;
-
-/**
- * Whether or not to allow browsers to cache user-typed input in the input
- * field. Disabling this feature will prevent the widget from setting the
- * autocomplete="off" on the input field. When autocomplete="off"
- * and users click the back button after form submission, user-typed input can
- * be prefilled by the browser from its cache. This caching of user input may
- * not be desired for sensitive data, such as credit card numbers, in which
- * case, implementers should consider setting allowBrowserAutocomplete to false.
- *
- * @property allowBrowserAutocomplete
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete = true;
-
-/**
- * Whether or not the results container should always be displayed.
- * Enabling this feature displays the container when the widget is instantiated
- * and prevents the toggling of the container to a collapsed state.
- *
- * @property alwaysShowContainer
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.alwaysShowContainer = false;
-
-/**
- * Whether or not to use an iFrame to layer over Windows form elements in
- * IE. Set to true only when the results container will be on top of a
- * &lt;select&gt; field in IE and thus exposed to the IE z-index bug (i.e.,
- * 5.5 < IE < 7).
- *
- * @property useIFrame
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.useIFrame = false;
-
-/**
- * Whether or not the results container should have a shadow.
- *
- * @property useShadow
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.useShadow = false;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
- /**
- * Public accessor to the unique name of the AutoComplete instance.
- *
- * @method toString
- * @return {String} Unique name of the AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.toString = function() {
-    return "AutoComplete " + this._sName;
-};
-
- /**
- * Returns true if container is in an expanded state, false otherwise.
- *
- * @method isContainerOpen
- * @return {Boolean} Returns true if container is in an expanded state, false otherwise.
- */
-YAHOO.widget.AutoComplete.prototype.isContainerOpen = function() {
-    return this._bContainerOpen;
-};
-
-/**
- * Public accessor to the internal array of DOM &lt;li&gt; elements that
- * display query results within the results container.
- *
- * @method getListItems
- * @return {HTMLElement[]} Array of &lt;li&gt; elements within the results container.
- */
-YAHOO.widget.AutoComplete.prototype.getListItems = function() {
-    return this._aListItems;
-};
-
-/**
- * Public accessor to the data held in an &lt;li&gt; element of the
- * results container.
- *
- * @method getListItemData
- * @return {Object | Object[]} Object or array of result data or null
- */
-YAHOO.widget.AutoComplete.prototype.getListItemData = function(oListItem) {
-    if(oListItem._oResultData) {
-        return oListItem._oResultData;
-    }
-    else {
-        return false;
-    }
-};
-
-/**
- * Sets HTML markup for the results container header. This markup will be
- * inserted within a &lt;div&gt; tag with a class of "yui-ac-hd".
- *
- * @method setHeader
- * @param sHeader {String} HTML markup for results container header.
- */
-YAHOO.widget.AutoComplete.prototype.setHeader = function(sHeader) {
-    if(this._elHeader) {
-        var elHeader = this._elHeader;
-        if(sHeader) {
-            elHeader.innerHTML = sHeader;
-            elHeader.style.display = "block";
-        }
-        else {
-            elHeader.innerHTML = "";
-            elHeader.style.display = "none";
-        }
-    }
-};
-
-/**
- * Sets HTML markup for the results container footer. This markup will be
- * inserted within a &lt;div&gt; tag with a class of "yui-ac-ft".
- *
- * @method setFooter
- * @param sFooter {String} HTML markup for results container footer.
- */
-YAHOO.widget.AutoComplete.prototype.setFooter = function(sFooter) {
-    if(this._elFooter) {
-        var elFooter = this._elFooter;
-        if(sFooter) {
-                elFooter.innerHTML = sFooter;
-                elFooter.style.display = "block";
-        }
-        else {
-            elFooter.innerHTML = "";
-            elFooter.style.display = "none";
-        }
-    }
-};
-
-/**
- * Sets HTML markup for the results container body. This markup will be
- * inserted within a &lt;div&gt; tag with a class of "yui-ac-bd".
- *
- * @method setBody
- * @param sBody {String} HTML markup for results container body.
- */
-YAHOO.widget.AutoComplete.prototype.setBody = function(sBody) {
-    if(this._elBody) {
-        var elBody = this._elBody;
-        if(sBody) {
-                elBody.innerHTML = sBody;
-                elBody.style.display = "block";
-                elBody.style.display = "block";
-        }
-        else {
-            elBody.innerHTML = "";
-            elBody.style.display = "none";
-        }
-        this._maxResultsDisplayed = 0;
-    }
-};
-
-/**
- * Overridable method that converts a result item object into HTML markup
- * for display. Return data values are accessible via the oResultItem object,
- * and the key return value will always be oResultItem[0]. Markup will be
- * displayed within &lt;li&gt; element tags in the container.
- *
- * @method formatResult
- * @param oResultItem {Object} Result item representing one query result. Data is held in an array.
- * @param sQuery {String} The current query string.
- * @return {String} HTML markup of formatted result data.
- */
-YAHOO.widget.AutoComplete.prototype.formatResult = function(oResultItem, sQuery) {
-    var sResult = oResultItem[0];
-    if(sResult) {
-        return sResult;
-    }
-    else {
-        return "";
-    }
-};
-
-/**
- * Overridable method called before container expands allows implementers to access data
- * and DOM elements.
- *
- * @method doBeforeExpandContainer
- * @param elTextbox {HTMLElement} The text input box.
- * @param elContainer {HTMLElement} The container element.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]}  An array of query results.
- * @return {Boolean} Return true to continue expanding container, false to cancel the expand.
- */
-YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer = function(elTextbox, elContainer, sQuery, aResults) {
-    return true;
-};
-
-/**
- * Makes query request to the DataSource.
- *
- * @method sendQuery
- * @param sQuery {String} Query string.
- */
-YAHOO.widget.AutoComplete.prototype.sendQuery = function(sQuery) {
-    this._sendQuery(sQuery);
-};
-
-/**
- * Overridable method gives implementers access to the query before it gets sent.
- *
- * @method doBeforeSendQuery
- * @param sQuery {String} Query string.
- * @return {String} Query string.
- */
-YAHOO.widget.AutoComplete.prototype.doBeforeSendQuery = function(sQuery) {
-    return sQuery;
-};
-
-/**
- * Nulls out the entire AutoComplete 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
- */
-YAHOO.widget.AutoComplete.prototype.destroy = function() {
-    var instanceName = this.toString();
-    var elInput = this._elTextbox;
-    var elContainer = this._elContainer;
-
-    // Unhook custom events
-    this.textboxFocusEvent.unsubscribeAll();
-    this.textboxKeyEvent.unsubscribeAll();
-    this.dataRequestEvent.unsubscribeAll();
-    this.dataReturnEvent.unsubscribeAll();
-    this.dataErrorEvent.unsubscribeAll();
-    this.containerExpandEvent.unsubscribeAll();
-    this.typeAheadEvent.unsubscribeAll();
-    this.itemMouseOverEvent.unsubscribeAll();
-    this.itemMouseOutEvent.unsubscribeAll();
-    this.itemArrowToEvent.unsubscribeAll();
-    this.itemArrowFromEvent.unsubscribeAll();
-    this.itemSelectEvent.unsubscribeAll();
-    this.unmatchedItemSelectEvent.unsubscribeAll();
-    this.selectionEnforceEvent.unsubscribeAll();
-    this.containerCollapseEvent.unsubscribeAll();
-    this.textboxBlurEvent.unsubscribeAll();
-
-    // Unhook DOM events
-    YAHOO.util.Event.purgeElement(elInput, true);
-    YAHOO.util.Event.purgeElement(elContainer, true);
-
-    // Remove DOM elements
-    elContainer.innerHTML = "";
-
-    // Null out objects
-    for(var key in this) {
-        if(YAHOO.lang.hasOwnProperty(this, key)) {
-            this[key] = null;
-        }
-    }
-
-    YAHOO.log("AutoComplete instance destroyed: " + instanceName);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Fired when the input field receives focus.
- *
- * @event textboxFocusEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.textboxFocusEvent = null;
-
-/**
- * Fired when the input field receives key input.
- *
- * @event textboxKeyEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param nKeycode {Number} The keycode number.
- */
-YAHOO.widget.AutoComplete.prototype.textboxKeyEvent = null;
-
-/**
- * Fired when the AutoComplete instance makes a query to the DataSource.
- * 
- * @event dataRequestEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.AutoComplete.prototype.dataRequestEvent = null;
-
-/**
- * Fired when the AutoComplete instance receives query results from the data
- * source.
- *
- * @event dataReturnEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Results array.
- */
-YAHOO.widget.AutoComplete.prototype.dataReturnEvent = null;
-
-/**
- * Fired when the AutoComplete instance does not receive query results from the
- * DataSource due to an error.
- *
- * @event dataErrorEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.AutoComplete.prototype.dataErrorEvent = null;
-
-/**
- * Fired when the results container is expanded.
- *
- * @event containerExpandEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.containerExpandEvent = null;
-
-/**
- * Fired when the input field has been prefilled by the type-ahead
- * feature. 
- *
- * @event typeAheadEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- * @param sPrefill {String} The prefill string.
- */
-YAHOO.widget.AutoComplete.prototype.typeAheadEvent = null;
-
-/**
- * Fired when result item has been moused over.
- *
- * @event itemMouseOverEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The &lt;li&gt element item moused to.
- */
-YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent = null;
-
-/**
- * Fired when result item has been moused out.
- *
- * @event itemMouseOutEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The &lt;li&gt; element item moused from.
- */
-YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent = null;
-
-/**
- * Fired when result item has been arrowed to. 
- *
- * @event itemArrowToEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The &lt;li&gt; element item arrowed to.
- */
-YAHOO.widget.AutoComplete.prototype.itemArrowToEvent = null;
-
-/**
- * Fired when result item has been arrowed away from.
- *
- * @event itemArrowFromEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The &lt;li&gt; element item arrowed from.
- */
-YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent = null;
-
-/**
- * Fired when an item is selected via mouse click, ENTER key, or TAB key.
- *
- * @event itemSelectEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The selected &lt;li&gt; element item.
- * @param oData {Object} The data returned for the item, either as an object,
- * or mapped from the schema into an array.
- */
-YAHOO.widget.AutoComplete.prototype.itemSelectEvent = null;
-
-/**
- * Fired when a user selection does not match any of the displayed result items.
- *
- * @event unmatchedItemSelectEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent = null;
-
-/**
- * Fired if forceSelection is enabled and the user's input has been cleared
- * because it did not match one of the returned query results.
- *
- * @event selectionEnforceEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent = null;
-
-/**
- * Fired when the results container is collapsed.
- *
- * @event containerCollapseEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.containerCollapseEvent = null;
-
-/**
- * Fired when the input field loses focus.
- *
- * @event textboxBlurEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.textboxBlurEvent = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple AutoComplete instances.
- *
- * @property _nIndex
- * @type Number
- * @default 0
- * @private
- */
-YAHOO.widget.AutoComplete._nIndex = 0;
-
-/**
- * Name of AutoComplete instance.
- *
- * @property _sName
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sName = null;
-
-/**
- * Text input field DOM element.
- *
- * @property _elTextbox
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elTextbox = null;
-
-/**
- * Container DOM element.
- *
- * @property _elContainer
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elContainer = null;
-
-/**
- * Reference to content element within container element.
- *
- * @property _elContent
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elContent = null;
-
-/**
- * Reference to header element within content element.
- *
- * @property _elHeader
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elHeader = null;
-
-/**
- * Reference to body element within content element.
- *
- * @property _elBody
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elBody = null;
-
-/**
- * Reference to footer element within content element.
- *
- * @property _elFooter
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elFooter = null;
-
-/**
- * Reference to shadow element within container element.
- *
- * @property _elShadow
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elShadow = null;
-
-/**
- * Reference to iframe element within container element.
- *
- * @property _elIFrame
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elIFrame = null;
-
-/**
- * Whether or not the input field is currently in focus. If query results come back
- * but the user has already moved on, do not proceed with auto complete behavior.
- *
- * @property _bFocused
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bFocused = true;
-
-/**
- * Animation instance for container expand/collapse.
- *
- * @property _oAnim
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oAnim = null;
-
-/**
- * Whether or not the results container is currently open.
- *
- * @property _bContainerOpen
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bContainerOpen = false;
-
-/**
- * Whether or not the mouse is currently over the results
- * container. This is necessary in order to prevent clicks on container items
- * from being text input field blur events.
- *
- * @property _bOverContainer
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bOverContainer = false;
-
-/**
- * Array of &lt;li&gt; elements references that contain query results within the
- * results container.
- *
- * @property _aListItems
- * @type HTMLElement[]
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._aListItems = null;
-
-/**
- * Number of &lt;li&gt; elements currently displayed in results container.
- *
- * @property _nDisplayedItems
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nDisplayedItems = 0;
-
-/**
- * Internal count of &lt;li&gt; elements displayed and hidden in results container.
- *
- * @property _maxResultsDisplayed
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._maxResultsDisplayed = 0;
-
-/**
- * Current query string
- *
- * @property _sCurQuery
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sCurQuery = null;
-
-/**
- * Past queries this session (for saving delimited queries).
- *
- * @property _sSavedQuery
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sSavedQuery = null;
-
-/**
- * Pointer to the currently highlighted &lt;li&gt; element in the container.
- *
- * @property _oCurItem
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oCurItem = null;
-
-/**
- * Whether or not an item has been selected since the container was populated
- * with results. Reset to false by _populateList, and set to true when item is
- * selected.
- *
- * @property _bItemSelected
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bItemSelected = false;
-
-/**
- * Key code of the last key pressed in textbox.
- *
- * @property _nKeyCode
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nKeyCode = null;
-
-/**
- * Delay timeout ID.
- *
- * @property _nDelayID
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nDelayID = -1;
-
-/**
- * Src to iFrame used when useIFrame = true. Supports implementations over SSL
- * as well.
- *
- * @property _iFrameSrc
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._iFrameSrc = "javascript:false;";
-
-/**
- * For users typing via certain IMEs, queries must be triggered by intervals,
- * since key events yet supported across all browsers for all IMEs.
- *
- * @property _queryInterval
- * @type Object
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._queryInterval = null;
-
-/**
- * Internal tracker to last known textbox value, used to determine whether or not
- * to trigger a query via interval for certain IME users.
- *
- * @event _sLastTextboxValue
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sLastTextboxValue = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Updates and validates latest public config properties.
- *
- * @method __initProps
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initProps = function() {
-    // Correct any invalid values
-    var minQueryLength = this.minQueryLength;
-    if(!YAHOO.lang.isNumber(minQueryLength)) {
-        this.minQueryLength = 1;
-    }
-    var maxResultsDisplayed = this.maxResultsDisplayed;
-    if(!YAHOO.lang.isNumber(maxResultsDisplayed) || (maxResultsDisplayed < 1)) {
-        this.maxResultsDisplayed = 10;
-    }
-    var queryDelay = this.queryDelay;
-    if(!YAHOO.lang.isNumber(queryDelay) || (queryDelay < 0)) {
-        this.queryDelay = 0.2;
-    }
-    var delimChar = this.delimChar;
-    if(YAHOO.lang.isString(delimChar) && (delimChar.length > 0)) {
-        this.delimChar = [delimChar];
-    }
-    else if(!YAHOO.lang.isArray(delimChar)) {
-        this.delimChar = null;
-    }
-    var animSpeed = this.animSpeed;
-    if((this.animHoriz || this.animVert) && YAHOO.util.Anim) {
-        if(!YAHOO.lang.isNumber(animSpeed) || (animSpeed < 0)) {
-            this.animSpeed = 0.3;
-        }
-        if(!this._oAnim ) {
-            this._oAnim = new YAHOO.util.Anim(this._elContent, {}, this.animSpeed);
-        }
-        else {
-            this._oAnim.duration = this.animSpeed;
-        }
-    }
-    if(this.forceSelection && delimChar) {
-        YAHOO.log("The forceSelection feature has been enabled with delimChar defined.","warn", this.toString());
-    }
-};
-
-/**
- * Initializes the results container helpers if they are enabled and do
- * not exist
- *
- * @method _initContainerHelpers
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initContainerHelpers = function() {
-    if(this.useShadow && !this._elShadow) {
-        var elShadow = document.createElement("div");
-        elShadow.className = "yui-ac-shadow";
-        this._elShadow = this._elContainer.appendChild(elShadow);
-    }
-    if(this.useIFrame && !this._elIFrame) {
-        var elIFrame = document.createElement("iframe");
-        elIFrame.src = this._iFrameSrc;
-        elIFrame.frameBorder = 0;
-        elIFrame.scrolling = "no";
-        elIFrame.style.position = "absolute";
-        elIFrame.style.width = "100%";
-        elIFrame.style.height = "100%";
-        elIFrame.tabIndex = -1;
-        this._elIFrame = this._elContainer.appendChild(elIFrame);
-    }
-};
-
-/**
- * Initializes the results container once at object creation
- *
- * @method _initContainer
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initContainer = function() {
-    YAHOO.util.Dom.addClass(this._elContainer, "yui-ac-container");
-    
-    if(!this._elContent) {
-        // The elContent div helps size the iframe and shadow properly
-        var elContent = document.createElement("div");
-        elContent.className = "yui-ac-content";
-        elContent.style.display = "none";
-        this._elContent = this._elContainer.appendChild(elContent);
-
-        var elHeader = document.createElement("div");
-        elHeader.className = "yui-ac-hd";
-        elHeader.style.display = "none";
-        this._elHeader = this._elContent.appendChild(elHeader);
-
-        var elBody = document.createElement("div");
-        elBody.className = "yui-ac-bd";
-        this._elBody = this._elContent.appendChild(elBody);
-
-        var elFooter = document.createElement("div");
-        elFooter.className = "yui-ac-ft";
-        elFooter.style.display = "none";
-        this._elFooter = this._elContent.appendChild(elFooter);
-    }
-    else {
-        YAHOO.log("Could not initialize the container","warn",this.toString());
-    }
-};
-
-/**
- * Clears out contents of container body and creates up to
- * YAHOO.widget.AutoComplete#maxResultsDisplayed &lt;li&gt; elements in an
- * &lt;ul&gt; element.
- *
- * @method _initList
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initList = function() {
-    this._aListItems = [];
-    while(this._elBody.hasChildNodes()) {
-        var oldListItems = this.getListItems();
-        if(oldListItems) {
-            for(var oldi = oldListItems.length-1; oldi >= 0; oldi--) {
-                oldListItems[oldi] = null;
-            }
-        }
-        this._elBody.innerHTML = "";
-    }
-
-    var oList = document.createElement("ul");
-    oList = this._elBody.appendChild(oList);
-    for(var i=0; i<this.maxResultsDisplayed; i++) {
-        var oItem = document.createElement("li");
-        oItem = oList.appendChild(oItem);
-        this._aListItems[i] = oItem;
-        this._initListItem(oItem, i);
-    }
-    this._maxResultsDisplayed = this.maxResultsDisplayed;
-};
-
-/**
- * Initializes each &lt;li&gt; element in the container list.
- *
- * @method _initListItem
- * @param oItem {HTMLElement} The &lt;li&gt; DOM element.
- * @param nItemIndex {Number} The index of the element.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initListItem = function(oItem, nItemIndex) {
-    var oSelf = this;
-    oItem.style.display = "none";
-    oItem._nItemIndex = nItemIndex;
-
-    oItem.mouseover = oItem.mouseout = oItem.onclick = null;
-    YAHOO.util.Event.addListener(oItem,"mouseover",oSelf._onItemMouseover,oSelf);
-    YAHOO.util.Event.addListener(oItem,"mouseout",oSelf._onItemMouseout,oSelf);
-    YAHOO.util.Event.addListener(oItem,"click",oSelf._onItemMouseclick,oSelf);
-};
-
-/**
- * Enables interval detection for  Korean IME support.
- *
- * @method _onIMEDetected
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onIMEDetected = function(oSelf) {
-    oSelf._enableIntervalDetection();
-};
-
-/**
- * Enables query triggers based on text input detection by intervals (rather
- * than by key events).
- *
- * @method _enableIntervalDetection
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._enableIntervalDetection = function() {
-    var currValue = this._elTextbox.value;
-    var lastValue = this._sLastTextboxValue;
-    if(currValue != lastValue) {
-        this._sLastTextboxValue = currValue;
-        this._sendQuery(currValue);
-    }
-};
-
-
-/**
- * Cancels text input detection by intervals.
- *
- * @method _cancelIntervalDetection
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._cancelIntervalDetection = function(oSelf) {
-    if(oSelf._queryInterval) {
-        clearInterval(oSelf._queryInterval);
-    }
-};
-
-
-/**
- * Whether or not key is functional or should be ignored. Note that the right
- * arrow key is NOT an ignored key since it triggers queries for certain intl
- * charsets.
- *
- * @method _isIgnoreKey
- * @param nKeycode {Number} Code of key pressed.
- * @return {Boolean} True if key should be ignored, false otherwise.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._isIgnoreKey = function(nKeyCode) {
-    if((nKeyCode == 9) || (nKeyCode == 13)  || // tab, enter
-            (nKeyCode == 16) || (nKeyCode == 17) || // shift, ctl
-            (nKeyCode >= 18 && nKeyCode <= 20) || // alt,pause/break,caps lock
-            (nKeyCode == 27) || // esc
-            (nKeyCode >= 33 && nKeyCode <= 35) || // page up,page down,end
-            /*(nKeyCode >= 36 && nKeyCode <= 38) || // home,left,up
-            (nKeyCode == 40) || // down*/
-            (nKeyCode >= 36 && nKeyCode <= 40) || // home,left,up, right, down
-            (nKeyCode >= 44 && nKeyCode <= 45)) { // print screen,insert
-        return true;
-    }
-    return false;
-};
-
-/**
- * Makes query request to the DataSource.
- *
- * @method _sendQuery
- * @param sQuery {String} Query string.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sendQuery = function(sQuery) {
-    // Widget has been effectively turned off
-    if(this.minQueryLength == -1) {
-        this._toggleContainer(false);
-        YAHOO.log("Property minQueryLength is set to -1", "info", this.toString());
-        return;
-    }
-    // Delimiter has been enabled
-    var aDelimChar = (this.delimChar) ? this.delimChar : null;
-    if(aDelimChar) {
-        // Loop through all possible delimiters and find the latest one
-        // A " " may be a false positive if they are defined as delimiters AND
-        // are used to separate delimited queries
-        var nDelimIndex = -1;
-        for(var i = aDelimChar.length-1; i >= 0; i--) {
-            var nNewIndex = sQuery.lastIndexOf(aDelimChar[i]);
-            if(nNewIndex > nDelimIndex) {
-                nDelimIndex = nNewIndex;
-            }
-        }
-        // If we think the last delimiter is a space (" "), make sure it is NOT
-        // a false positive by also checking the char directly before it
-        if(aDelimChar[i] == " ") {
-            for (var j = aDelimChar.length-1; j >= 0; j--) {
-                if(sQuery[nDelimIndex - 1] == aDelimChar[j]) {
-                    nDelimIndex--;
-                    break;
-                }
-            }
-        }
-        // A delimiter has been found so extract the latest query
-        if(nDelimIndex > -1) {
-            var nQueryStart = nDelimIndex + 1;
-            // Trim any white space from the beginning...
-            while(sQuery.charAt(nQueryStart) == " ") {
-                nQueryStart += 1;
-            }
-            // ...and save the rest of the string for later
-            this._sSavedQuery = sQuery.substring(0,nQueryStart);
-            // Here is the query itself
-            sQuery = sQuery.substr(nQueryStart);
-        }
-        else if(sQuery.indexOf(this._sSavedQuery) < 0){
-            this._sSavedQuery = null;
-        }
-    }
-
-    // Don't search queries that are too short
-    if((sQuery && (sQuery.length < this.minQueryLength)) || (!sQuery && this.minQueryLength > 0)) {
-        if(this._nDelayID != -1) {
-            clearTimeout(this._nDelayID);
-        }
-        this._toggleContainer(false);
-        YAHOO.log("Query \"" + sQuery + "\" is too short", "info", this.toString());
-        return;
-    }
-
-    sQuery = encodeURIComponent(sQuery);
-    this._nDelayID = -1;    // Reset timeout ID because request has been made
-    sQuery = this.doBeforeSendQuery(sQuery);
-    this.dataRequestEvent.fire(this, sQuery);
-    YAHOO.log("Sending query \"" + sQuery + "\"", "info", this.toString());
-    this.dataSource.getResults(this._populateList, sQuery, this);
-};
-
-/**
- * Populates the array of &lt;li&gt; elements in the container with query
- * results. This method is passed to YAHOO.widget.DataSource#getResults as a
- * callback function so results from the DataSource instance are returned to the
- * AutoComplete instance.
- *
- * @method _populateList
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} An array of query result objects from the DataSource.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._populateList = function(sQuery, aResults, oSelf) {
-    if(aResults === null) {
-        oSelf.dataErrorEvent.fire(oSelf, sQuery);
-    }
-    if(!oSelf._bFocused || !aResults) {
-        YAHOO.log("Could not populate list", "info", oSelf.toString());
-        return;
-    }
-
-    var isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);
-    var contentStyle = oSelf._elContent.style;
-    contentStyle.width = (!isOpera) ? null : "";
-    contentStyle.height = (!isOpera) ? null : "";
-
-    var sCurQuery = decodeURIComponent(sQuery);
-    oSelf._sCurQuery = sCurQuery;
-    oSelf._bItemSelected = false;
-
-    if(oSelf._maxResultsDisplayed != oSelf.maxResultsDisplayed) {
-        oSelf._initList();
-    }
-
-    var nItems = Math.min(aResults.length,oSelf.maxResultsDisplayed);
-    oSelf._nDisplayedItems = nItems;
-    if(nItems > 0) {
-        oSelf._initContainerHelpers();
-        var aItems = oSelf._aListItems;
-
-        // Fill items with data
-        for(var i = nItems-1; i >= 0; i--) {
-            var oItemi = aItems[i];
-            var oResultItemi = aResults[i];
-            oItemi.innerHTML = oSelf.formatResult(oResultItemi, sCurQuery);
-            oItemi.style.display = "list-item";
-            oItemi._sResultKey = oResultItemi[0];
-            oItemi._oResultData = oResultItemi;
-
-        }
-
-        // Empty out remaining items if any
-        for(var j = aItems.length-1; j >= nItems ; j--) {
-            var oItemj = aItems[j];
-            oItemj.innerHTML = null;
-            oItemj.style.display = "none";
-            oItemj._sResultKey = null;
-            oItemj._oResultData = null;
-        }
-
-        // Expand the container
-        var ok = oSelf.doBeforeExpandContainer(oSelf._elTextbox, oSelf._elContainer, sQuery, aResults);
-        oSelf._toggleContainer(ok);
-        
-        if(oSelf.autoHighlight) {
-            // Go to the first item
-            var oFirstItem = aItems[0];
-            oSelf._toggleHighlight(oFirstItem,"to");
-            oSelf.itemArrowToEvent.fire(oSelf, oFirstItem);
-            YAHOO.log("Arrowed to first item", "info", oSelf.toString());
-            oSelf._typeAhead(oFirstItem,sQuery);
-        }
-        else {
-            oSelf._oCurItem = null;
-        }
-    }
-    else {
-        oSelf._toggleContainer(false);
-    }
-    oSelf.dataReturnEvent.fire(oSelf, sQuery, aResults);
-    YAHOO.log("Container populated with list items", "info", oSelf.toString());
-    
-};
-
-/**
- * When forceSelection is true and the user attempts
- * leave the text input box without selecting an item from the query results,
- * the user selection is cleared.
- *
- * @method _clearSelection
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._clearSelection = function() {
-    var sValue = this._elTextbox.value;
-    var sChar = (this.delimChar) ? this.delimChar[0] : null;
-    var nIndex = (sChar) ? sValue.lastIndexOf(sChar, sValue.length-2) : -1;
-    if(nIndex > -1) {
-        this._elTextbox.value = sValue.substring(0,nIndex);
-    }
-    else {
-         this._elTextbox.value = "";
-    }
-    this._sSavedQuery = this._elTextbox.value;
-
-    // Fire custom event
-    this.selectionEnforceEvent.fire(this);
-    YAHOO.log("Selection enforced", "info", this.toString());
-};
-
-/**
- * Whether or not user-typed value in the text input box matches any of the
- * query results.
- *
- * @method _textMatchesOption
- * @return {HTMLElement} Matching list item element if user-input text matches
- * a result, null otherwise.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._textMatchesOption = function() {
-    var foundMatch = null;
-
-    for(var i = this._nDisplayedItems-1; i >= 0 ; i--) {
-        var oItem = this._aListItems[i];
-        var sMatch = oItem._sResultKey.toLowerCase();
-        if(sMatch == this._sCurQuery.toLowerCase()) {
-            foundMatch = oItem;
-            break;
-        }
-    }
-    return(foundMatch);
-};
-
-/**
- * Updates in the text input box with the first query result as the user types,
- * selecting the substring that the user has not typed.
- *
- * @method _typeAhead
- * @param oItem {HTMLElement} The &lt;li&gt; element item whose data populates the input field.
- * @param sQuery {String} Query string.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._typeAhead = function(oItem, sQuery) {
-    // Don't update if turned off
-    if(!this.typeAhead || (this._nKeyCode == 8)) {
-        return;
-    }
-
-    var elTextbox = this._elTextbox;
-    var sValue = this._elTextbox.value; // any saved queries plus what user has typed
-
-    // Don't update with type-ahead if text selection is not supported
-    if(!elTextbox.setSelectionRange && !elTextbox.createTextRange) {
-        return;
-    }
-
-    // Select the portion of text that the user has not typed
-    var nStart = sValue.length;
-    this._updateValue(oItem);
-    var nEnd = elTextbox.value.length;
-    this._selectText(elTextbox,nStart,nEnd);
-    var sPrefill = elTextbox.value.substr(nStart,nEnd);
-    this.typeAheadEvent.fire(this,sQuery,sPrefill);
-    YAHOO.log("Typeahead occured with prefill string \"" + sPrefill + "\"", "info", this.toString());
-};
-
-/**
- * Selects text in the input field.
- *
- * @method _selectText
- * @param elTextbox {HTMLElement} Text input box element in which to select text.
- * @param nStart {Number} Starting index of text string to select.
- * @param nEnd {Number} Ending index of text selection.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._selectText = function(elTextbox, nStart, nEnd) {
-    if(elTextbox.setSelectionRange) { // For Mozilla
-        elTextbox.setSelectionRange(nStart,nEnd);
-    }
-    else if(elTextbox.createTextRange) { // For IE
-        var oTextRange = elTextbox.createTextRange();
-        oTextRange.moveStart("character", nStart);
-        oTextRange.moveEnd("character", nEnd-elTextbox.value.length);
-        oTextRange.select();
-    }
-    else {
-        elTextbox.select();
-    }
-};
-
-/**
- * Syncs results container with its helpers.
- *
- * @method _toggleContainerHelpers
- * @param bShow {Boolean} True if container is expanded, false if collapsed
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers = function(bShow) {
-    var bFireEvent = false;
-    var width = this._elContent.offsetWidth + "px";
-    var height = this._elContent.offsetHeight + "px";
-
-    if(this.useIFrame && this._elIFrame) {
-        bFireEvent = true;
-        if(bShow) {
-            this._elIFrame.style.width = width;
-            this._elIFrame.style.height = height;
-        }
-        else {
-            this._elIFrame.style.width = 0;
-            this._elIFrame.style.height = 0;
-        }
-    }
-    if(this.useShadow && this._elShadow) {
-        bFireEvent = true;
-        if(bShow) {
-            this._elShadow.style.width = width;
-            this._elShadow.style.height = height;
-        }
-        else {
-           this._elShadow.style.width = 0;
-            this._elShadow.style.height = 0;
-        }
-    }
-};
-
-/**
- * Animates expansion or collapse of the container.
- *
- * @method _toggleContainer
- * @param bShow {Boolean} True if container should be expanded, false if container should be collapsed
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleContainer = function(bShow) {
-    var elContainer = this._elContainer;
-
-    // Implementer has container always open so don't mess with it
-    if(this.alwaysShowContainer && this._bContainerOpen) {
-        return;
-    }
-    
-    // Clear contents of container
-    if(!bShow) {
-        this._elContent.scrollTop = 0;
-        var aItems = this._aListItems;
-
-        if(aItems && (aItems.length > 0)) {
-            for(var i = aItems.length-1; i >= 0 ; i--) {
-                aItems[i].style.display = "none";
-            }
-        }
-
-        if(this._oCurItem) {
-            this._toggleHighlight(this._oCurItem,"from");
-        }
-
-        this._oCurItem = null;
-        this._nDisplayedItems = 0;
-        this._sCurQuery = null;
-    }
-
-    // Container is already closed
-    if(!bShow && !this._bContainerOpen) {
-        this._elContent.style.display = "none";
-        return;
-    }
-
-    // If animation is enabled...
-    var oAnim = this._oAnim;
-    if(oAnim && oAnim.getEl() && (this.animHoriz || this.animVert)) {
-        // If helpers need to be collapsed, do it right away...
-        // but if helpers need to be expanded, wait until after the container expands
-        if(!bShow) {
-            this._toggleContainerHelpers(bShow);
-        }
-
-        if(oAnim.isAnimated()) {
-            oAnim.stop();
-        }
-
-        // Clone container to grab current size offscreen
-        var oClone = this._elContent.cloneNode(true);
-        elContainer.appendChild(oClone);
-        oClone.style.top = "-9000px";
-        oClone.style.display = "block";
-
-        // Current size of the container is the EXPANDED size
-        var wExp = oClone.offsetWidth;
-        var hExp = oClone.offsetHeight;
-
-        // Calculate COLLAPSED sizes based on horiz and vert anim
-        var wColl = (this.animHoriz) ? 0 : wExp;
-        var hColl = (this.animVert) ? 0 : hExp;
-
-        // Set animation sizes
-        oAnim.attributes = (bShow) ?
-            {width: { to: wExp }, height: { to: hExp }} :
-            {width: { to: wColl}, height: { to: hColl }};
-
-        // If opening anew, set to a collapsed size...
-        if(bShow && !this._bContainerOpen) {
-            this._elContent.style.width = wColl+"px";
-            this._elContent.style.height = hColl+"px";
-        }
-        // Else, set it to its last known size.
-        else {
-            this._elContent.style.width = wExp+"px";
-            this._elContent.style.height = hExp+"px";
-        }
-
-        elContainer.removeChild(oClone);
-        oClone = null;
-
-       var oSelf = this;
-       var onAnimComplete = function() {
-            // Finish the collapse
-               oAnim.onComplete.unsubscribeAll();
-
-            if(bShow) {
-                oSelf.containerExpandEvent.fire(oSelf);
-                YAHOO.log("Container expanded", "info", oSelf.toString());
-            }
-            else {
-                oSelf._elContent.style.display = "none";
-                oSelf.containerCollapseEvent.fire(oSelf);
-                YAHOO.log("Container collapsed", "info", oSelf.toString());
-            }
-            oSelf._toggleContainerHelpers(bShow);
-       };
-
-        // Display container and animate it
-        this._elContent.style.display = "block";
-        oAnim.onComplete.subscribe(onAnimComplete);
-        oAnim.animate();
-        this._bContainerOpen = bShow;
-    }
-    // Else don't animate, just show or hide
-    else {
-        if(bShow) {
-            this._elContent.style.display = "block";
-            this.containerExpandEvent.fire(this);
-            YAHOO.log("Container expanded", "info", this.toString());
-        }
-        else {
-            this._elContent.style.display = "none";
-            this.containerCollapseEvent.fire(this);
-            YAHOO.log("Container collapsed", "info", this.toString());
-        }
-        this._toggleContainerHelpers(bShow);
-        this._bContainerOpen = bShow;
-   }
-
-};
-
-/**
- * Toggles the highlight on or off for an item in the container, and also cleans
- * up highlighting of any previous item.
- *
- * @method _toggleHighlight
- * @param oNewItem {HTMLElement} The &lt;li&gt; element item to receive highlight behavior.
- * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleHighlight = function(oNewItem, sType) {
-    var sHighlight = this.highlightClassName;
-    if(this._oCurItem) {
-        // Remove highlight from old item
-        YAHOO.util.Dom.removeClass(this._oCurItem, sHighlight);
-    }
-
-    if((sType == "to") && sHighlight) {
-        // Apply highlight to new item
-        YAHOO.util.Dom.addClass(oNewItem, sHighlight);
-        this._oCurItem = oNewItem;
-    }
-};
-
-/**
- * Toggles the pre-highlight on or off for an item in the container.
- *
- * @method _togglePrehighlight
- * @param oNewItem {HTMLElement} The &lt;li&gt; element item to receive highlight behavior.
- * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._togglePrehighlight = function(oNewItem, sType) {
-    if(oNewItem == this._oCurItem) {
-        return;
-    }
-
-    var sPrehighlight = this.prehighlightClassName;
-    if((sType == "mouseover") && sPrehighlight) {
-        // Apply prehighlight to new item
-        YAHOO.util.Dom.addClass(oNewItem, sPrehighlight);
-    }
-    else {
-        // Remove prehighlight from old item
-        YAHOO.util.Dom.removeClass(oNewItem, sPrehighlight);
-    }
-};
-
-/**
- * Updates the text input box value with selected query result. If a delimiter
- * has been defined, then the value gets appended with the delimiter.
- *
- * @method _updateValue
- * @param oItem {HTMLElement} The &lt;li&gt; element item with which to update the value.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._updateValue = function(oItem) {
-    var elTextbox = this._elTextbox;
-    var sDelimChar = (this.delimChar) ? (this.delimChar[0] || this.delimChar) : null;
-    var sSavedQuery = this._sSavedQuery;
-    var sResultKey = oItem._sResultKey;
-    elTextbox.focus();
-
-    // First clear text field
-    elTextbox.value = "";
-    // Grab data to put into text field
-    if(sDelimChar) {
-        if(sSavedQuery) {
-            elTextbox.value = sSavedQuery;
-        }
-        elTextbox.value += sResultKey + sDelimChar;
-        if(sDelimChar != " ") {
-            elTextbox.value += " ";
-        }
-    }
-    else { elTextbox.value = sResultKey; }
-
-    // scroll to bottom of textarea if necessary
-    if(elTextbox.type == "textarea") {
-        elTextbox.scrollTop = elTextbox.scrollHeight;
-    }
-
-    // move cursor to end
-    var end = elTextbox.value.length;
-    this._selectText(elTextbox,end,end);
-
-    this._oCurItem = oItem;
-};
-
-/**
- * Selects a result item from the container
- *
- * @method _selectItem
- * @param oItem {HTMLElement} The selected &lt;li&gt; element item.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._selectItem = function(oItem) {
-    this._bItemSelected = true;
-    this._updateValue(oItem);
-    this._cancelIntervalDetection(this);
-    this.itemSelectEvent.fire(this, oItem, oItem._oResultData);
-    YAHOO.log("Item selected: " + YAHOO.lang.dump(oItem._oResultData), "info", this.toString());
-    this._toggleContainer(false);
-};
-
-/**
- * If an item is highlighted in the container, the right arrow key jumps to the
- * end of the textbox and selects the highlighted item, otherwise the container
- * is closed.
- *
- * @method _jumpSelection
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._jumpSelection = function() {
-    if(this._oCurItem) {
-        this._selectItem(this._oCurItem);
-    }
-    else {
-        this._toggleContainer(false);
-    }
-};
-
-/**
- * Triggered by up and down arrow keys, changes the current highlighted
- * &lt;li&gt; element item. Scrolls container if necessary.
- *
- * @method _moveSelection
- * @param nKeyCode {Number} Code of key pressed.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) {
-    if(this._bContainerOpen) {
-        // Determine current item's id number
-        var oCurItem = this._oCurItem;
-        var nCurItemIndex = -1;
-
-        if(oCurItem) {
-            nCurItemIndex = oCurItem._nItemIndex;
-        }
-
-        var nNewItemIndex = (nKeyCode == 40) ?
-                (nCurItemIndex + 1) : (nCurItemIndex - 1);
-
-        // Out of bounds
-        if(nNewItemIndex < -2 || nNewItemIndex >= this._nDisplayedItems) {
-            return;
-        }
-
-        if(oCurItem) {
-            // Unhighlight current item
-            this._toggleHighlight(oCurItem, "from");
-            this.itemArrowFromEvent.fire(this, oCurItem);
-            YAHOO.log("Item arrowed from", "info", this.toString());
-        }
-        if(nNewItemIndex == -1) {
-           // Go back to query (remove type-ahead string)
-            if(this.delimChar && this._sSavedQuery) {
-                if(!this._textMatchesOption()) {
-                    this._elTextbox.value = this._sSavedQuery;
-                }
-                else {
-                    this._elTextbox.value = this._sSavedQuery + this._sCurQuery;
-                }
-            }
-            else {
-                this._elTextbox.value = this._sCurQuery;
-            }
-            this._oCurItem = null;
-            return;
-        }
-        if(nNewItemIndex == -2) {
-            // Close container
-            this._toggleContainer(false);
-            return;
-        }
-
-        var oNewItem = this._aListItems[nNewItemIndex];
-
-        // Scroll the container if necessary
-        var elContent = this._elContent;
-        var scrollOn = ((YAHOO.util.Dom.getStyle(elContent,"overflow") == "auto") ||
-            (YAHOO.util.Dom.getStyle(elContent,"overflowY") == "auto"));
-        if(scrollOn && (nNewItemIndex > -1) &&
-        (nNewItemIndex < this._nDisplayedItems)) {
-            // User is keying down
-            if(nKeyCode == 40) {
-                // Bottom of selected item is below scroll area...
-                if((oNewItem.offsetTop+oNewItem.offsetHeight) > (elContent.scrollTop + elContent.offsetHeight)) {
-                    // Set bottom of scroll area to bottom of selected item
-                    elContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - elContent.offsetHeight;
-                }
-                // Bottom of selected item is above scroll area...
-                else if((oNewItem.offsetTop+oNewItem.offsetHeight) < elContent.scrollTop) {
-                    // Set top of selected item to top of scroll area
-                    elContent.scrollTop = oNewItem.offsetTop;
-
-                }
-            }
-            // User is keying up
-            else {
-                // Top of selected item is above scroll area
-                if(oNewItem.offsetTop < elContent.scrollTop) {
-                    // Set top of scroll area to top of selected item
-                    this._elContent.scrollTop = oNewItem.offsetTop;
-                }
-                // Top of selected item is below scroll area
-                else if(oNewItem.offsetTop > (elContent.scrollTop + elContent.offsetHeight)) {
-                    // Set bottom of selected item to bottom of scroll area
-                    this._elContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - elContent.offsetHeight;
-                }
-            }
-        }
-
-        this._toggleHighlight(oNewItem, "to");
-        this.itemArrowToEvent.fire(this, oNewItem);
-        YAHOO.log("Item arrowed to", "info", this.toString());
-        if(this.typeAhead) {
-            this._updateValue(oNewItem);
-        }
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private event handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Handles &lt;li&gt; element mouseover events in the container.
- *
- * @method _onItemMouseover
- * @param v {HTMLEvent} The mouseover event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseover = function(v,oSelf) {
-    if(oSelf.prehighlightClassName) {
-        oSelf._togglePrehighlight(this,"mouseover");
-    }
-    else {
-        oSelf._toggleHighlight(this,"to");
-    }
-
-    oSelf.itemMouseOverEvent.fire(oSelf, this);
-    YAHOO.log("Item moused over", "info", oSelf.toString());
-};
-
-/**
- * Handles &lt;li&gt; element mouseout events in the container.
- *
- * @method _onItemMouseout
- * @param v {HTMLEvent} The mouseout event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseout = function(v,oSelf) {
-    if(oSelf.prehighlightClassName) {
-        oSelf._togglePrehighlight(this,"mouseout");
-    }
-    else {
-        oSelf._toggleHighlight(this,"from");
-    }
-
-    oSelf.itemMouseOutEvent.fire(oSelf, this);
-    YAHOO.log("Item moused out", "info", oSelf.toString());
-};
-
-/**
- * Handles &lt;li&gt; element click events in the container.
- *
- * @method _onItemMouseclick
- * @param v {HTMLEvent} The click event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseclick = function(v,oSelf) {
-    // In case item has not been moused over
-    oSelf._toggleHighlight(this,"to");
-    oSelf._selectItem(this);
-};
-
-/**
- * Handles container mouseover events.
- *
- * @method _onContainerMouseover
- * @param v {HTMLEvent} The mouseover event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerMouseover = function(v,oSelf) {
-    oSelf._bOverContainer = true;
-};
-
-/**
- * Handles container mouseout events.
- *
- * @method _onContainerMouseout
- * @param v {HTMLEvent} The mouseout event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerMouseout = function(v,oSelf) {
-    oSelf._bOverContainer = false;
-    // If container is still active
-    if(oSelf._oCurItem) {
-        oSelf._toggleHighlight(oSelf._oCurItem,"to");
-    }
-};
-
-/**
- * Handles container scroll events.
- *
- * @method _onContainerScroll
- * @param v {HTMLEvent} The scroll event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerScroll = function(v,oSelf) {
-    oSelf._elTextbox.focus();
-};
-
-/**
- * Handles container resize events.
- *
- * @method _onContainerResize
- * @param v {HTMLEvent} The resize event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerResize = function(v,oSelf) {
-    oSelf._toggleContainerHelpers(oSelf._bContainerOpen);
-};
-
-
-/**
- * Handles textbox keydown events of functional keys, mainly for UI behavior.
- *
- * @method _onTextboxKeyDown
- * @param v {HTMLEvent} The keydown event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown = function(v,oSelf) {
-    var nKeyCode = v.keyCode;
-
-    switch (nKeyCode) {
-        case 9: // tab
-            // select an item or clear out
-            if(oSelf._oCurItem) {
-                if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) {
-                    if(oSelf._bContainerOpen) {
-                        YAHOO.util.Event.stopEvent(v);
-                    }
-                }
-                oSelf._selectItem(oSelf._oCurItem);
-            }
-            else {
-                oSelf._toggleContainer(false);
-            }
-            break;
-        case 13: // enter
-            if(!YAHOO.env.ua.webkit) {
-                if(oSelf._oCurItem) {
-                    if(oSelf._nKeyCode != nKeyCode) {
-                        if(oSelf._bContainerOpen) {
-                            YAHOO.util.Event.stopEvent(v);
-                        }
-                    }
-                    oSelf._selectItem(oSelf._oCurItem);
-                }
-                else {
-                    oSelf._toggleContainer(false);
-                }
-            }
-            break;
-        case 27: // esc
-            oSelf._toggleContainer(false);
-            return;
-        case 39: // right
-            oSelf._jumpSelection();
-            break;
-        case 38: // up
-            YAHOO.util.Event.stopEvent(v);
-            oSelf._moveSelection(nKeyCode);
-            break;
-        case 40: // down
-            YAHOO.util.Event.stopEvent(v);
-            oSelf._moveSelection(nKeyCode);
-            break;
-        default:
-            break;
-    }
-};
-
-/**
- * Handles textbox keypress events.
- * @method _onTextboxKeyPress
- * @param v {HTMLEvent} The keypress event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress = function(v,oSelf) {
-    var nKeyCode = v.keyCode;
-
-        //Expose only to Mac browsers, where stopEvent is ineffective on keydown events (bug 790337)
-        if(YAHOO.env.ua.webkit) {
-            switch (nKeyCode) {
-            case 9: // tab
-                if(oSelf._oCurItem) {
-                    if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) {
-                        YAHOO.util.Event.stopEvent(v);
-                    }
-                }
-                break;
-            case 13: // enter
-                if(oSelf._oCurItem) {
-                    if(oSelf._nKeyCode != nKeyCode) {
-                        if(oSelf._bContainerOpen) {
-                            YAHOO.util.Event.stopEvent(v);
-                        }
-                    }
-                    oSelf._selectItem(oSelf._oCurItem);
-                }
-                else {
-                    oSelf._toggleContainer(false);
-                }
-                break;
-            default:
-                break;
-            }
-        }
-
-        //TODO: (?) limit only to non-IE, non-Mac-FF for Korean IME support (bug 811948)
-        // Korean IME detected
-        else if(nKeyCode == 229) {
-            oSelf._queryInterval = setInterval(function() { oSelf._onIMEDetected(oSelf); },500);
-        }
-};
-
-/**
- * Handles textbox keyup events that trigger queries.
- *
- * @method _onTextboxKeyUp
- * @param v {HTMLEvent} The keyup event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp = function(v,oSelf) {
-    // Check to see if any of the public properties have been updated
-    oSelf._initProps();
-
-    var nKeyCode = v.keyCode;
-
-    oSelf._nKeyCode = nKeyCode;
-    var sText = this.value; //string in textbox
-
-    // Filter out chars that don't trigger queries
-    if(oSelf._isIgnoreKey(nKeyCode) || (sText.toLowerCase() == oSelf._sCurQuery)) {
-        return;
-    }
-    else {
-        oSelf._bItemSelected = false;
-        YAHOO.util.Dom.removeClass(oSelf._oCurItem,  oSelf.highlightClassName);
-        oSelf._oCurItem = null;
-
-        oSelf.textboxKeyEvent.fire(oSelf, nKeyCode);
-        YAHOO.log("Textbox keyed", "info", oSelf.toString());
-    }
-
-    // Set timeout on the request
-    if(oSelf.queryDelay > 0) {
-        var nDelayID =
-            setTimeout(function(){oSelf._sendQuery(sText);},(oSelf.queryDelay * 1000));
-
-        if(oSelf._nDelayID != -1) {
-            clearTimeout(oSelf._nDelayID);
-        }
-
-        oSelf._nDelayID = nDelayID;
-    }
-    else {
-        // No delay so send request immediately
-        oSelf._sendQuery(sText);
-    }
-};
-
-/**
- * Handles text input box receiving focus.
- *
- * @method _onTextboxFocus
- * @param v {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxFocus = function (v,oSelf) {
-    oSelf._elTextbox.setAttribute("autocomplete","off");
-    oSelf._bFocused = true;
-    if(!oSelf._bItemSelected) {
-        oSelf.textboxFocusEvent.fire(oSelf);
-        YAHOO.log("Textbox focused", "info", oSelf.toString());
-    }
-};
-
-/**
- * Handles text input box losing focus.
- *
- * @method _onTextboxBlur
- * @param v {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxBlur = function (v,oSelf) {
-    // Don't treat as a blur if it was a selection via mouse click
-    if(!oSelf._bOverContainer || (oSelf._nKeyCode == 9)) {
-        // Current query needs to be validated as a selection
-        if(!oSelf._bItemSelected) {
-            var oMatch = oSelf._textMatchesOption();
-            // Container is closed or current query doesn't match any result
-            if(!oSelf._bContainerOpen || (oSelf._bContainerOpen && (oMatch === null))) {
-                // Force selection is enabled so clear the current query
-                if(oSelf.forceSelection) {
-                    oSelf._clearSelection();
-                }
-                // Treat current query as a valid selection
-                else {
-                    oSelf.unmatchedItemSelectEvent.fire(oSelf);
-                    YAHOO.log("Unmatched item selected", "info", oSelf.toString());
-                }
-            }
-            // Container is open and current query matches a result
-            else {
-                // Force a selection when textbox is blurred with a match
-                if(oSelf.forceSelection) {
-                    oSelf._selectItem(oMatch);
-                }
-            }
-        }
-
-        if(oSelf._bContainerOpen) {
-            oSelf._toggleContainer(false);
-        }
-        oSelf._cancelIntervalDetection(oSelf);
-        oSelf._bFocused = false;
-        oSelf.textboxBlurEvent.fire(oSelf);
-        YAHOO.log("Textbox blurred", "info", oSelf.toString());
-    }
-};
-
-/**
- * Handles window unload event.
- *
- * @method _onWindowUnload
- * @param v {HTMLEvent} The unload event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onWindowUnload = function(v,oSelf) {
-    if(oSelf && oSelf._elTextbox && oSelf.allowBrowserAutocomplete) {
-        oSelf._elTextbox.setAttribute("autocomplete","on");
-    }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The DataSource classes manages sending a request and returning response from a live
- * database. Supported data include local JavaScript arrays and objects and databases
- * accessible via XHR connections. Supported response formats include JavaScript arrays,
- * JSON, XML, and flat-file textual data.
- *  
- * @class DataSource
- * @constructor
- */
-YAHOO.widget.DataSource = function() { 
-    /* abstract class */
-};
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Error message for null data responses.
- *
- * @property ERROR_DATANULL
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DataSource.ERROR_DATANULL = "Response data was null";
-
-/**
- * Error message for data responses with parsing errors.
- *
- * @property ERROR_DATAPARSE
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DataSource.ERROR_DATAPARSE = "Response data could not be parsed";
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Max size of the local cache.  Set to 0 to turn off caching.  Caching is
- * useful to reduce the number of server connections.  Recommended only for data
- * sources that return comprehensive results for queries or when stale data is
- * not an issue.
- *
- * @property maxCacheEntries
- * @type Number
- * @default 15
- */
-YAHOO.widget.DataSource.prototype.maxCacheEntries = 15;
-
-/**
- * Use this to fine-tune the matching algorithm used against JS Array types of
- * DataSource and DataSource caches. If queryMatchContains is true, then the JS
- * Array or cache returns results that "contain" the query string. By default,
- * queryMatchContains is set to false, so that only results that "start with"
- * the query string are returned.
- *
- * @property queryMatchContains
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataSource.prototype.queryMatchContains = false;
-
-/**
- * Enables query subset matching. If caching is on and queryMatchSubset is
- * true, substrings of queries will return matching cached results. For
- * instance, if the first query is for "abc" susequent queries that start with
- * "abc", like "abcd", will be queried against the cache, and not the live data
- * source. Recommended only for DataSources that return comprehensive results
- * for queries with very few characters.
- *
- * @property queryMatchSubset
- * @type Boolean
- * @default false
- *
- */
-YAHOO.widget.DataSource.prototype.queryMatchSubset = false;
-
-/**
- * Enables case-sensitivity in the matching algorithm used against JS Array
- * types of DataSources and DataSource caches. If queryMatchCase is true, only
- * case-sensitive matches will return.
- *
- * @property queryMatchCase
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataSource.prototype.queryMatchCase = false;
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
- /**
- * Public accessor to the unique name of the DataSource instance.
- *
- * @method toString
- * @return {String} Unique name of the DataSource instance
- */
-YAHOO.widget.DataSource.prototype.toString = function() {
-    return "DataSource " + this._sName;
-};
-
-/**
- * Retrieves query results, first checking the local cache, then making the
- * query request to the live data source as defined by the function doQuery.
- *
- * @method getResults
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DataSource.prototype.getResults = function(oCallbackFn, sQuery, oParent) {
-    
-    // First look in cache
-    var aResults = this._doQueryCache(oCallbackFn,sQuery,oParent);
-    // Not in cache, so get results from server
-    if(aResults.length === 0) {
-        this.queryEvent.fire(this, oParent, sQuery);
-        YAHOO.log("Query received \"" + sQuery, "info", this.toString());
-        this.doQuery(oCallbackFn, sQuery, oParent);
-    }
-};
-
-/**
- * Abstract method implemented by subclasses to make a query to the live data
- * source. Must call the callback function with the response returned from the
- * query. Populates cache (if enabled).
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function implemented by oParent to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DataSource.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
-    /* override this */ 
-};
-
-/**
- * Flushes cache.
- *
- * @method flushCache
- */
-YAHOO.widget.DataSource.prototype.flushCache = function() {
-    if(this._aCache) {
-        this._aCache = [];
-    }
-    if(this._aCacheHelper) {
-        this._aCacheHelper = [];
-    }
-    this.cacheFlushEvent.fire(this);
-    YAHOO.log("Cache flushed", "info", this.toString());
-
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Fired when a query is made to the live data source.
- *
- * @event queryEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.DataSource.prototype.queryEvent = null;
-
-/**
- * Fired when a query is made to the local cache.
- *
- * @event cacheQueryEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.DataSource.prototype.cacheQueryEvent = null;
-
-/**
- * Fired when data is retrieved from the live data source.
- *
- * @event getResultsEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Array of result objects.
- */
-YAHOO.widget.DataSource.prototype.getResultsEvent = null;
-    
-/**
- * Fired when data is retrieved from the local cache.
- *
- * @event getCachedResultsEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Array of result objects.
- */
-YAHOO.widget.DataSource.prototype.getCachedResultsEvent = null;
-
-/**
- * Fired when an error is encountered with the live data source.
- *
- * @event dataErrorEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param sMsg {String} Error message string
- */
-YAHOO.widget.DataSource.prototype.dataErrorEvent = null;
-
-/**
- * Fired when the local cache is flushed.
- *
- * @event cacheFlushEvent
- * @param oSelf {Object} The DataSource instance
- */
-YAHOO.widget.DataSource.prototype.cacheFlushEvent = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple DataSource instances.
- *
- * @property _nIndex
- * @type Number
- * @private
- * @static
- */
-YAHOO.widget.DataSource._nIndex = 0;
-
-/**
- * Name of DataSource instance.
- *
- * @property _sName
- * @type String
- * @private
- */
-YAHOO.widget.DataSource.prototype._sName = null;
-
-/**
- * Local cache of data result objects indexed chronologically.
- *
- * @property _aCache
- * @type Object[]
- * @private
- */
-YAHOO.widget.DataSource.prototype._aCache = null;
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Initializes DataSource instance.
- *  
- * @method _init
- * @private
- */
-YAHOO.widget.DataSource.prototype._init = function() {
-    // Validate and initialize public configs
-    var maxCacheEntries = this.maxCacheEntries;
-    if(!YAHOO.lang.isNumber(maxCacheEntries) || (maxCacheEntries < 0)) {
-        maxCacheEntries = 0;
-    }
-    // Initialize local cache
-    if(maxCacheEntries > 0 && !this._aCache) {
-        this._aCache = [];
-    }
-    
-    this._sName = "instance" + YAHOO.widget.DataSource._nIndex;
-    YAHOO.widget.DataSource._nIndex++;
-    
-    this.queryEvent = new YAHOO.util.CustomEvent("query", this);
-    this.cacheQueryEvent = new YAHOO.util.CustomEvent("cacheQuery", this);
-    this.getResultsEvent = new YAHOO.util.CustomEvent("getResults", this);
-    this.getCachedResultsEvent = new YAHOO.util.CustomEvent("getCachedResults", this);
-    this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this);
-    this.cacheFlushEvent = new YAHOO.util.CustomEvent("cacheFlush", this);
-};
-
-/**
- * Adds a result object to the local cache, evicting the oldest element if the 
- * cache is full. Newer items will have higher indexes, the oldest item will have
- * index of 0. 
- *
- * @method _addCacheElem
- * @param oResult {Object} Data result object, including array of results.
- * @private
- */
-YAHOO.widget.DataSource.prototype._addCacheElem = function(oResult) {
-    var aCache = this._aCache;
-    // Don't add if anything important is missing.
-    if(!aCache || !oResult || !oResult.query || !oResult.results) {
-        return;
-    }
-    
-    // If the cache is full, make room by removing from index=0
-    if(aCache.length >= this.maxCacheEntries) {
-        aCache.shift();
-    }
-        
-    // Add to cache, at the end of the array
-    aCache.push(oResult);
-};
-
-/**
- * Queries the local cache for results. If query has been cached, the callback
- * function is called with the results, and the cached is refreshed so that it
- * is now the newest element.  
- *
- * @method _doQueryCache
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- * @return aResults {Object[]} Array of results from local cache if found, otherwise null.
- * @private 
- */
-YAHOO.widget.DataSource.prototype._doQueryCache = function(oCallbackFn, sQuery, oParent) {
-    var aResults = [];
-    var bMatchFound = false;
-    var aCache = this._aCache;
-    var nCacheLength = (aCache) ? aCache.length : 0;
-    var bMatchContains = this.queryMatchContains;
-    var sOrigQuery;
-    
-    // If cache is enabled...
-    if((this.maxCacheEntries > 0) && aCache && (nCacheLength > 0)) {
-        this.cacheQueryEvent.fire(this, oParent, sQuery);
-        YAHOO.log("Querying cache: \"" + sQuery + "\"", "info", this.toString());
-        // If case is unimportant, normalize query now instead of in loops
-        if(!this.queryMatchCase) {
-            sOrigQuery = sQuery;
-            sQuery = sQuery.toLowerCase();
-        }
-
-        // Loop through each cached element's query property...
-        for(var i = nCacheLength-1; i >= 0; i--) {
-            var resultObj = aCache[i];
-            var aAllResultItems = resultObj.results;
-            // If case is unimportant, normalize match key for comparison
-            var matchKey = (!this.queryMatchCase) ?
-                encodeURIComponent(resultObj.query).toLowerCase():
-                encodeURIComponent(resultObj.query);
-            
-            // If a cached match key exactly matches the query...
-            if(matchKey == sQuery) {
-                    // Stash all result objects into aResult[] and stop looping through the cache.
-                    bMatchFound = true;
-                    aResults = aAllResultItems;
-                    
-                    // The matching cache element was not the most recent,
-                    // so now we need to refresh the cache.
-                    if(i != nCacheLength-1) {                        
-                        // Remove element from its original location
-                        aCache.splice(i,1);
-                        // Add element as newest
-                        this._addCacheElem(resultObj);
-                    }
-                    break;
-            }
-            // Else if this query is not an exact match and subset matching is enabled...
-            else if(this.queryMatchSubset) {
-                // Loop through substrings of each cached element's query property...
-                for(var j = sQuery.length-1; j >= 0 ; j--) {
-                    var subQuery = sQuery.substr(0,j);
-                    
-                    // If a substring of a cached sQuery exactly matches the query...
-                    if(matchKey == subQuery) {                    
-                        bMatchFound = true;
-                        
-                        // Go through each cached result object to match against the query...
-                        for(var k = aAllResultItems.length-1; k >= 0; k--) {
-                            var aRecord = aAllResultItems[k];
-                            var sKeyIndex = (this.queryMatchCase) ?
-                                encodeURIComponent(aRecord[0]).indexOf(sQuery):
-                                encodeURIComponent(aRecord[0]).toLowerCase().indexOf(sQuery);
-                            
-                            // A STARTSWITH match is when the query is found at the beginning of the key string...
-                            if((!bMatchContains && (sKeyIndex === 0)) ||
-                            // A CONTAINS match is when the query is found anywhere within the key string...
-                            (bMatchContains && (sKeyIndex > -1))) {
-                                // Stash a match into aResults[].
-                                aResults.unshift(aRecord);
-                            }
-                        }
-                        
-                        // Add the subset match result set object as the newest element to cache,
-                        // and stop looping through the cache.
-                        resultObj = {};
-                        resultObj.query = sQuery;
-                        resultObj.results = aResults;
-                        this._addCacheElem(resultObj);
-                        break;
-                    }
-                }
-                if(bMatchFound) {
-                    break;
-                }
-            }
-        }
-        
-        // If there was a match, send along the results.
-        if(bMatchFound) {
-            this.getCachedResultsEvent.fire(this, oParent, sOrigQuery, aResults);
-            YAHOO.log("Cached results found for query \"" + sQuery + "\": " +
-                    YAHOO.lang.dump(aResults), "info", this.toString());
-            oCallbackFn(sOrigQuery, aResults, oParent);
-        }
-    }
-    return aResults;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using XML HTTP requests that return
- * query results.
- *  
- * @class DS_XHR
- * @extends YAHOO.widget.DataSource
- * @requires connection
- * @constructor
- * @param sScriptURI {String} Absolute or relative URI to script that returns query
- * results as JSON, XML, or delimited flat-file data.
- * @param aSchema {String[]} Data schema definition of results.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_XHR = function(sScriptURI, aSchema, oConfigs) {
-    // Set any config params passed in to override defaults
-    if(oConfigs && (oConfigs.constructor == Object)) {
-        for(var sConfig in oConfigs) {
-            this[sConfig] = oConfigs[sConfig];
-        }
-    }
-
-    // Initialization sequence
-    if(!YAHOO.lang.isArray(aSchema) || !YAHOO.lang.isString(sScriptURI)) {
-        YAHOO.log("Could not instantiate XHR DataSource due to invalid arguments", "error", this.toString());
-        return;
-    }
-
-    this.schema = aSchema;
-    this.scriptURI = sScriptURI;
-    
-    this._init();
-    YAHOO.log("XHR DataSource initialized","info",this.toString());
-};
-
-YAHOO.widget.DS_XHR.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * JSON data type.
- *
- * @property TYPE_JSON
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_JSON = 0;
-
-/**
- * XML data type.
- *
- * @property TYPE_XML
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_XML = 1;
-
-/**
- * Flat-file data type.
- *
- * @property TYPE_FLAT
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_FLAT = 2;
-
-/**
- * Error message for XHR failure.
- *
- * @property ERROR_DATAXHR
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.ERROR_DATAXHR = "XHR response failed";
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Alias to YUI Connection Manager, to allow implementers to customize the utility.
- *
- * @property connMgr
- * @type Object
- * @default YAHOO.util.Connect
- */
-YAHOO.widget.DS_XHR.prototype.connMgr = YAHOO.util.Connect;
-
-/**
- * Number of milliseconds the XHR connection will wait for a server response. A
- * a value of zero indicates the XHR connection will wait forever. Any value
- * greater than zero will use the Connection utility's Auto-Abort feature.
- *
- * @property connTimeout
- * @type Number
- * @default 0
- */
-YAHOO.widget.DS_XHR.prototype.connTimeout = 0;
-
-/**
- * Absolute or relative URI to script that returns query results. For instance,
- * queries will be sent to &#60;scriptURI&#62;?&#60;scriptQueryParam&#62;=userinput
- *
- * @property scriptURI
- * @type String
- */
-YAHOO.widget.DS_XHR.prototype.scriptURI = null;
-
-/**
- * Query string parameter name sent to scriptURI. For instance, queries will be
- * sent to &#60;scriptURI&#62;?&#60;scriptQueryParam&#62;=userinput
- *
- * @property scriptQueryParam
- * @type String
- * @default "query"
- */
-YAHOO.widget.DS_XHR.prototype.scriptQueryParam = "query";
-
-/**
- * String of key/value pairs to append to requests made to scriptURI. Define
- * this string when you want to send additional query parameters to your script.
- * When defined, queries will be sent to
- * &#60;scriptURI&#62;?&#60;scriptQueryParam&#62;=userinput&#38;&#60;scriptQueryAppend&#62;
- *
- * @property scriptQueryAppend
- * @type String
- * @default ""
- */
-YAHOO.widget.DS_XHR.prototype.scriptQueryAppend = "";
-
-/**
- * XHR response data type. Other types that may be defined are YAHOO.widget.DS_XHR.TYPE_XML
- * and YAHOO.widget.DS_XHR.TYPE_FLAT.
- *
- * @property responseType
- * @type String
- * @default YAHOO.widget.DS_XHR.TYPE_JSON
- */
-YAHOO.widget.DS_XHR.prototype.responseType = YAHOO.widget.DS_XHR.TYPE_JSON;
-
-/**
- * String after which to strip results. If the results from the XHR are sent
- * back as HTML, the gzip HTML comment appears at the end of the data and should
- * be ignored.
- *
- * @property responseStripAfter
- * @type String
- * @default "\n&#60;!-"
- */
-YAHOO.widget.DS_XHR.prototype.responseStripAfter = "\n<!-";
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source defined by scriptURI for results. Results are
- * passed back to a callback function.
- *  
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_XHR.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
-    var isXML = (this.responseType == YAHOO.widget.DS_XHR.TYPE_XML);
-    var sUri = this.scriptURI+"?"+this.scriptQueryParam+"="+sQuery;
-    if(this.scriptQueryAppend.length > 0) {
-        sUri += "&" + this.scriptQueryAppend;
-    }
-    YAHOO.log("DataSource is querying URL " + sUri, "info", this.toString());
-    var oResponse = null;
-    
-    var oSelf = this;
-    /*
-     * Sets up ajax request callback
-     *
-     * @param {object} oReq          HTTPXMLRequest object
-     * @private
-     */
-    var responseSuccess = function(oResp) {
-        // Response ID does not match last made request ID.
-        if(!oSelf._oConn || (oResp.tId != oSelf._oConn.tId)) {
-            oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
-            YAHOO.log(YAHOO.widget.DataSource.ERROR_DATANULL, "error", oSelf.toString());
-            return;
-        }
-//DEBUG
-/*YAHOO.log(oResp.responseXML.getElementsByTagName("Result"),'warn');
-for(var foo in oResp) {
-    YAHOO.log(foo + ": "+oResp[foo],'warn');
-}
-YAHOO.log('responseXML.xml: '+oResp.responseXML.xml,'warn');*/
-        if(!isXML) {
-            oResp = oResp.responseText;
-        }
-        else { 
-            oResp = oResp.responseXML;
-        }
-        if(oResp === null) {
-            oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
-            YAHOO.log(YAHOO.widget.DataSource.ERROR_DATANULL, "error", oSelf.toString());
-            return;
-        }
-
-        var aResults = oSelf.parseResponse(sQuery, oResp, oParent);
-        var resultObj = {};
-        resultObj.query = decodeURIComponent(sQuery);
-        resultObj.results = aResults;
-        if(aResults === null) {
-            oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATAPARSE);
-            YAHOO.log(YAHOO.widget.DataSource.ERROR_DATAPARSE, "error", oSelf.toString());
-            aResults = [];
-        }
-        else {
-            oSelf.getResultsEvent.fire(oSelf, oParent, sQuery, aResults);
-            YAHOO.log("Results returned for query \"" + sQuery + "\": " +
-                    YAHOO.lang.dump(aResults), "info", oSelf.toString());
-            oSelf._addCacheElem(resultObj);
-        }
-        oCallbackFn(sQuery, aResults, oParent);
-    };
-
-    var responseFailure = function(oResp) {
-        oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DS_XHR.ERROR_DATAXHR);
-        YAHOO.log(YAHOO.widget.DS_XHR.ERROR_DATAXHR + ": " + oResp.statusText, "error", oSelf.toString());
-        return;
-    };
-    
-    var oCallback = {
-        success:responseSuccess,
-        failure:responseFailure
-    };
-    
-    if(YAHOO.lang.isNumber(this.connTimeout) && (this.connTimeout > 0)) {
-        oCallback.timeout = this.connTimeout;
-    }
-    
-    if(this._oConn) {
-        this.connMgr.abort(this._oConn);
-    }
-    
-    oSelf._oConn = this.connMgr.asyncRequest("GET", sUri, oCallback, null);
-};
-
-/**
- * Parses raw response data into an array of result objects. The result data key
- * is always stashed in the [0] element of each result object. 
- *
- * @method parseResponse
- * @param sQuery {String} Query string.
- * @param oResponse {Object} The raw response data to parse.
- * @param oParent {Object} The object instance that has requested data.
- * @returns {Object[]} Array of result objects.
- */
-YAHOO.widget.DS_XHR.prototype.parseResponse = function(sQuery, oResponse, oParent) {
-    var aSchema = this.schema;
-    var aResults = [];
-    var bError = false;
-
-    // Strip out comment at the end of results
-    var nEnd = ((this.responseStripAfter !== "") && (oResponse.indexOf)) ?
-        oResponse.indexOf(this.responseStripAfter) : -1;
-    if(nEnd != -1) {
-        oResponse = oResponse.substring(0,nEnd);
-    }
-
-    switch (this.responseType) {
-        case YAHOO.widget.DS_XHR.TYPE_JSON:
-            var jsonList, jsonObjParsed;
-            // Check for YUI JSON
-            if(YAHOO.lang.JSON) {
-                // Use the JSON utility if available
-                jsonObjParsed = YAHOO.lang.JSON.parse(oResponse);
-                if(!jsonObjParsed) {
-                    bError = true;
-                    break;
-                }
-                else {
-                    try {
-                        // eval is necessary here since aSchema[0] is of unknown depth
-                        jsonList = eval("jsonObjParsed." + aSchema[0]);
-                    }
-                    catch(e) {
-                        bError = true;
-                        break;
-                   }
-                }
-            }
-            // Check for JSON lib
-            else if(oResponse.parseJSON) {
-                // Use the new JSON utility if available
-                jsonObjParsed = oResponse.parseJSON();
-                if(!jsonObjParsed) {
-                    bError = true;
-                }
-                else {
-                    try {
-                        // eval is necessary here since aSchema[0] is of unknown depth
-                        jsonList = eval("jsonObjParsed." + aSchema[0]);
-                    }
-                    catch(e) {
-                        bError = true;
-                        break;
-                   }
-                }
-            }
-            // Use older JSON lib if available
-            else if(window.JSON) {
-                jsonObjParsed = JSON.parse(oResponse);
-                if(!jsonObjParsed) {
-                    bError = true;
-                    break;
-                }
-                else {
-                    try {
-                        // eval is necessary here since aSchema[0] is of unknown depth
-                        jsonList = eval("jsonObjParsed." + aSchema[0]);
-                    }
-                    catch(e) {
-                        bError = true;
-                        break;
-                   }
-                }
-            }
-            else {
-                // Parse the JSON response as a string
-                try {
-                    // Trim leading spaces
-                    while (oResponse.substring(0,1) == " ") {
-                        oResponse = oResponse.substring(1, oResponse.length);
-                    }
-
-                    // Invalid JSON response
-                    if(oResponse.indexOf("{") < 0) {
-                        bError = true;
-                        break;
-                    }
-
-                    // Empty (but not invalid) JSON response
-                    if(oResponse.indexOf("{}") === 0) {
-                        break;
-                    }
-
-                    // Turn the string into an object literal...
-                    // ...eval is necessary here
-                    var jsonObjRaw = eval("(" + oResponse + ")");
-                    if(!jsonObjRaw) {
-                        bError = true;
-                        break;
-                    }
-
-                    // Grab the object member that contains an array of all reponses...
-                    // ...eval is necessary here since aSchema[0] is of unknown depth
-                    jsonList = eval("(jsonObjRaw." + aSchema[0]+")");
-                }
-                catch(e) {
-                    bError = true;
-                    break;
-               }
-            }
-
-            if(!jsonList) {
-                bError = true;
-                break;
-            }
-
-            if(!YAHOO.lang.isArray(jsonList)) {
-                jsonList = [jsonList];
-            }
-
-            // Loop through the array of all responses...
-            for(var i = jsonList.length-1; i >= 0 ; i--) {
-                var aResultItem = [];
-                var jsonResult = jsonList[i];
-                // ...and loop through each data field value of each response
-                for(var j = aSchema.length-1; j >= 1 ; j--) {
-                    // ...and capture data into an array mapped according to the schema...
-                    var dataFieldValue = jsonResult[aSchema[j]];
-                    if(!dataFieldValue) {
-                        dataFieldValue = "";
-                    }
-                    //YAHOO.log("data: " + i + " value:" +j+" = "+dataFieldValue,"debug",this.toString());
-                    aResultItem.unshift(dataFieldValue);
-                }
-                // If schema isn't well defined, pass along the entire result object
-                if(aResultItem.length == 1) {
-                    aResultItem.push(jsonResult);
-                }
-                // Capture the array of data field values in an array of results
-                aResults.unshift(aResultItem);
-            }
-            break;
-        case YAHOO.widget.DS_XHR.TYPE_XML:
-            // Get the collection of results
-            var xmlList = oResponse.getElementsByTagName(aSchema[0]);
-            if(!xmlList) {
-                bError = true;
-                break;
-            }
-            // Loop through each result
-            for(var k = xmlList.length-1; k >= 0 ; k--) {
-                var result = xmlList.item(k);
-                //YAHOO.log("Result"+k+" is "+result.attributes.item(0).firstChild.nodeValue,"debug",this.toString());
-                var aFieldSet = [];
-                // Loop through each data field in each result using the schema
-                for(var m = aSchema.length-1; m >= 1 ; m--) {
-                    //YAHOO.log(aSchema[m]+" is "+result.attributes.getNamedItem(aSchema[m]).firstChild.nodeValue);
-                    var sValue = null;
-                    // Values may be held in an attribute...
-                    var xmlAttr = result.attributes.getNamedItem(aSchema[m]);
-                    if(xmlAttr) {
-                        sValue = xmlAttr.value;
-                        //YAHOO.log("Attr value is "+sValue,"debug",this.toString());
-                    }
-                    // ...or in a node
-                    else{
-                        var xmlNode = result.getElementsByTagName(aSchema[m]);
-                        if(xmlNode && xmlNode.item(0) && xmlNode.item(0).firstChild) {
-                            sValue = xmlNode.item(0).firstChild.nodeValue;
-                            //YAHOO.log("Node value is "+sValue,"debug",this.toString());
-                        }
-                        else {
-                            sValue = "";
-                            //YAHOO.log("Value not found","debug",this.toString());
-                        }
-                    }
-                    // Capture the schema-mapped data field values into an array
-                    aFieldSet.unshift(sValue);
-                }
-                // Capture each array of values into an array of results
-                aResults.unshift(aFieldSet);
-            }
-            break;
-        case YAHOO.widget.DS_XHR.TYPE_FLAT:
-            if(oResponse.length > 0) {
-                // Delete the last line delimiter at the end of the data if it exists
-                var newLength = oResponse.length-aSchema[0].length;
-                if(oResponse.substr(newLength) == aSchema[0]) {
-                    oResponse = oResponse.substr(0, newLength);
-                }
-                var aRecords = oResponse.split(aSchema[0]);
-                for(var n = aRecords.length-1; n >= 0; n--) {
-                    aResults[n] = aRecords[n].split(aSchema[1]);
-                }
-            }
-            break;
-        default:
-            break;
-    }
-    sQuery = null;
-    oResponse = null;
-    oParent = null;
-    if(bError) {
-        return null;
-    }
-    else {
-        return aResults;
-    }
-};            
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * XHR connection object.
- *
- * @property _oConn
- * @type Object
- * @private
- */
-YAHOO.widget.DS_XHR.prototype._oConn = null;
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using the Get Utility to generate
- * dynamic SCRIPT nodes for data retrieval.
- *
- * @class DS_ScriptNode
- * @constructor
- * @extends YAHOO.widget.DataSource
- * @param sUri {String} URI to the script location that will return data.
- * @param aSchema {String[]} Data schema definition of results.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_ScriptNode = function(sUri, aSchema, oConfigs) {
-    // Set any config params passed in to override defaults
-    if(oConfigs && (oConfigs.constructor == Object)) {
-        for(var sConfig in oConfigs) {
-            this[sConfig] = oConfigs[sConfig];
-        }
-    }
-
-    // Initialization sequence
-    if(!YAHOO.lang.isArray(aSchema) || !YAHOO.lang.isString(sUri)) {
-        YAHOO.log("Could not instantiate Script Node DataSource due to invalid arguments", "error", this.toString());
-        return;
-    }
-
-    this.schema = aSchema;
-    this.scriptURI = sUri;
-
-    this._init();
-    YAHOO.log("Script Node DataSource initialized","info",this.toString());
-};
-
-YAHOO.widget.DS_ScriptNode.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Alias to YUI Get Utility. Allows implementers to specify their own
- * subclasses of the YUI Get Utility.
- *
- * @property getUtility
- * @type Object
- * @default YAHOO.util.Get
- */
-YAHOO.widget.DS_ScriptNode.prototype.getUtility = YAHOO.util.Get;
-
-/**
- * URI to the script that returns data.
- *
- * @property scriptURI
- * @type String
- */
-YAHOO.widget.DS_ScriptNode.prototype.scriptURI = null;
-
-/**
- * Query string parameter name sent to scriptURI. For instance, requests will be
- * sent to &#60;scriptURI&#62;?&#60;scriptQueryParam&#62;=queryString
- *
- * @property scriptQueryParam
- * @type String
- * @default "query"
- */
-YAHOO.widget.DS_ScriptNode.prototype.scriptQueryParam = "query";
-
-/**
- * Defines request/response management in the following manner:
- * <dl>
- *     <!--<dt>queueRequests</dt>
- *     <dd>If a request is already in progress, wait until response is returned before sending the next request.</dd>
- *     <dt>cancelStaleRequests</dt>
- *     <dd>If a request is already in progress, cancel it before sending the next request.</dd>-->
- *     <dt>ignoreStaleResponses</dt>
- *     <dd>Send all requests, but handle only the response for the most recently sent request.</dd>
- *     <dt>allowAll</dt>
- *     <dd>Send all requests and handle all responses.</dd>
- * </dl>
- *
- * @property asyncMode
- * @type String
- * @default "allowAll"
- */
-YAHOO.widget.DS_ScriptNode.prototype.asyncMode = "allowAll";
-
-/**
- * Callback string parameter name sent to scriptURI. For instance, requests will be
- * sent to &#60;scriptURI&#62;?&#60;scriptCallbackParam&#62;=callbackFunction
- *
- * @property scriptCallbackParam
- * @type String
- * @default "callback"
- */
-YAHOO.widget.DS_ScriptNode.prototype.scriptCallbackParam = "callback";
-
-/**
- * Global array of callback functions, one for each request sent.
- *
- * @property callbacks
- * @type Function[]
- * @static
- */
-YAHOO.widget.DS_ScriptNode.callbacks = [];
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Unique ID to track requests.
- *
- * @property _nId
- * @type Number
- * @private
- * @static
- */
-YAHOO.widget.DS_ScriptNode._nId = 0;
-
-/**
- * Counter for pending requests. When this is 0, it is safe to purge callbacks
- * array.
- *
- * @property _nPending
- * @type Number
- * @private
- * @static
- */
-YAHOO.widget.DS_ScriptNode._nPending = 0;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source. Results are passed back to a callback function.
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_ScriptNode.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
-    var oSelf = this;
-    
-    // If there are no global pending requests, it is safe to purge global callback stack and global counter
-    if(YAHOO.widget.DS_ScriptNode._nPending === 0) {
-        YAHOO.widget.DS_ScriptNode.callbacks = [];
-        YAHOO.widget.DS_ScriptNode._nId = 0;
-    }
-    
-    // ID for this request
-    var id = YAHOO.widget.DS_ScriptNode._nId;
-    YAHOO.widget.DS_ScriptNode._nId++;
-
-    // Dynamically add handler function with a closure to the callback stack
-    YAHOO.widget.DS_ScriptNode.callbacks[id] = function(oResponse) {
-        if((oSelf.asyncMode !== "ignoreStaleResponses")||
-                (id === YAHOO.widget.DS_ScriptNode.callbacks.length-1)) { // Must ignore stale responses
-            oSelf.handleResponse(oResponse, oCallbackFn, sQuery, oParent);
-        }
-        else {
-            YAHOO.log("DataSource ignored stale response for " + sQuery, "info", oSelf.toString());
-        }
-
-        delete YAHOO.widget.DS_ScriptNode.callbacks[id];
-    };
-
-    // We are now creating a request
-    YAHOO.widget.DS_ScriptNode._nPending++;
-
-    var sUri = this.scriptURI+"&"+ this.scriptQueryParam+"="+sQuery+"&"+
-            this.scriptCallbackParam+"=YAHOO.widget.DS_ScriptNode.callbacks["+id+"]";
-    YAHOO.log("DataSource is querying URL " + sUri, "info", this.toString());
-    this.getUtility.script(sUri,
-            {autopurge:true,
-            onsuccess:YAHOO.widget.DS_ScriptNode._bumpPendingDown,
-            onfail:YAHOO.widget.DS_ScriptNode._bumpPendingDown});
-};
-
-/**
- * Parses JSON response data into an array of result objects and passes it to
- * the callback function.
- *
- * @method handleResponse
- * @param oResponse {Object} The raw response data to parse.
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_ScriptNode.prototype.handleResponse = function(oResponse, oCallbackFn, sQuery, oParent) {
-    var aSchema = this.schema;
-    var aResults = [];
-    var bError = false;
-
-    var jsonList, jsonObjParsed;
-
-    // Parse the JSON response as a string
-    try {
-        // Grab the object member that contains an array of all reponses...
-        // ...eval is necessary here since aSchema[0] is of unknown depth
-        jsonList = eval("(oResponse." + aSchema[0]+")");
-    }
-    catch(e) {
-        bError = true;
-   }
-
-    if(!jsonList) {
-        bError = true;
-        jsonList = [];
-    }
-
-    else if(!YAHOO.lang.isArray(jsonList)) {
-        jsonList = [jsonList];
-    }
-
-    // Loop through the array of all responses...
-    for(var i = jsonList.length-1; i >= 0 ; i--) {
-        var aResultItem = [];
-        var jsonResult = jsonList[i];
-        // ...and loop through each data field value of each response
-        for(var j = aSchema.length-1; j >= 1 ; j--) {
-            // ...and capture data into an array mapped according to the schema...
-            var dataFieldValue = jsonResult[aSchema[j]];
-            if(!dataFieldValue) {
-                dataFieldValue = "";
-            }
-            //YAHOO.log("data: " + i + " value:" +j+" = "+dataFieldValue,"debug",this.toString());
-            aResultItem.unshift(dataFieldValue);
-        }
-        // If schema isn't well defined, pass along the entire result object
-        if(aResultItem.length == 1) {
-            aResultItem.push(jsonResult);
-        }
-        // Capture the array of data field values in an array of results
-        aResults.unshift(aResultItem);
-    }
-
-    if(bError) {
-        aResults = null;
-    }
-
-    if(aResults === null) {
-        this.dataErrorEvent.fire(this, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATAPARSE);
-        YAHOO.log(YAHOO.widget.DataSource.ERROR_DATAPARSE, "error", this.toString());
-        aResults = [];
-    }
-    else {
-        var resultObj = {};
-        resultObj.query = decodeURIComponent(sQuery);
-        resultObj.results = aResults;
-        this._addCacheElem(resultObj);
-        
-        this.getResultsEvent.fire(this, oParent, sQuery, aResults);
-        YAHOO.log("Results returned for query \"" + sQuery + "\": " +
-                YAHOO.lang.dump(aResults), "info", this.toString());
-    }
-
-    oCallbackFn(sQuery, aResults, oParent);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Any success/failure response should decrement counter.
- *
- * @method _bumpPendingDown
- * @private
- */
-YAHOO.widget.DS_ScriptNode._bumpPendingDown = function() {
-    YAHOO.widget.DS_ScriptNode._nPending--;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using a native Javascript function as
- * its live data source.
- *  
- * @class DS_JSFunction
- * @constructor
- * @extends YAHOO.widget.DataSource
- * @param oFunction {HTMLFunction} In-memory Javascript function that returns query results as an array of objects.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_JSFunction = function(oFunction, oConfigs) {
-    // Set any config params passed in to override defaults
-    if(oConfigs && (oConfigs.constructor == Object)) {
-        for(var sConfig in oConfigs) {
-            this[sConfig] = oConfigs[sConfig];
-        }
-    }
-
-    // Initialization sequence
-    if(!YAHOO.lang.isFunction(oFunction)) {
-        YAHOO.log("Could not instantiate JSFunction DataSource due to invalid arguments", "error", this.toString());
-        return;
-    }
-    else {
-        this.dataFunction = oFunction;
-        this._init();
-        YAHOO.log("JS Function DataSource initialized","info",this.toString());
-    }
-};
-
-YAHOO.widget.DS_JSFunction.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * In-memory Javascript function that returns query results.
- *
- * @property dataFunction
- * @type HTMLFunction
- */
-YAHOO.widget.DS_JSFunction.prototype.dataFunction = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source defined by function for results. Results are
- * passed back to a callback function.
- *  
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_JSFunction.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
-    var oFunction = this.dataFunction;
-    var aResults = [];
-    
-    aResults = oFunction(sQuery);
-    if(aResults === null) {
-        this.dataErrorEvent.fire(this, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
-        YAHOO.log(YAHOO.widget.DataSource.ERROR_DATANULL, "error", this.toString());
-        return;
-    }
-    
-    var resultObj = {};
-    resultObj.query = decodeURIComponent(sQuery);
-    resultObj.results = aResults;
-    this._addCacheElem(resultObj);
-    
-    this.getResultsEvent.fire(this, oParent, sQuery, aResults);
-    YAHOO.log("Results returned for query \"" + sQuery +
-            "\": " + YAHOO.lang.dump(aResults), "info", this.toString());
-    oCallbackFn(sQuery, aResults, oParent);
-    return;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using a native Javascript array as
- * its live data source.
- *
- * @class DS_JSArray
- * @constructor
- * @extends YAHOO.widget.DataSource
- * @param aData {String[]} In-memory Javascript array of simple string data.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_JSArray = function(aData, oConfigs) {
-    // Set any config params passed in to override defaults
-    if(oConfigs && (oConfigs.constructor == Object)) {
-        for(var sConfig in oConfigs) {
-            this[sConfig] = oConfigs[sConfig];
-        }
-    }
-
-    // Initialization sequence
-    if(!YAHOO.lang.isArray(aData)) {
-        YAHOO.log("Could not instantiate JSArray DataSource due to invalid arguments", "error", this.toString());
-        return;
-    }
-    else {
-        this.data = aData;
-        this._init();
-        YAHOO.log("JS Array DataSource initialized","info",this.toString());
-    }
-};
-
-YAHOO.widget.DS_JSArray.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * In-memory Javascript array of strings.
- *
- * @property data
- * @type Array
- */
-YAHOO.widget.DS_JSArray.prototype.data = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source defined by data for results. Results are passed
- * back to a callback function.
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_JSArray.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
-    var i;
-    var aData = this.data; // the array
-    var aResults = []; // container for results
-    var bMatchFound = false;
-    var bMatchContains = this.queryMatchContains;
-    if(sQuery) {
-        if(!this.queryMatchCase) {
-            sQuery = sQuery.toLowerCase();
-        }
-
-        // Loop through each element of the array...
-        // which can be a string or an array of strings
-        for(i = aData.length-1; i >= 0; i--) {
-            var aDataset = [];
-
-            if(YAHOO.lang.isString(aData[i])) {
-                aDataset[0] = aData[i];
-            }
-            else if(YAHOO.lang.isArray(aData[i])) {
-                aDataset = aData[i];
-            }
-
-            if(YAHOO.lang.isString(aDataset[0])) {
-                var sKeyIndex = (this.queryMatchCase) ?
-                encodeURIComponent(aDataset[0]).indexOf(sQuery):
-                encodeURIComponent(aDataset[0]).toLowerCase().indexOf(sQuery);
-
-                // A STARTSWITH match is when the query is found at the beginning of the key string...
-                if((!bMatchContains && (sKeyIndex === 0)) ||
-                // A CONTAINS match is when the query is found anywhere within the key string...
-                (bMatchContains && (sKeyIndex > -1))) {
-                    // Stash a match into aResults[].
-                    aResults.unshift(aDataset);
-                }
-            }
-        }
-    }
-    else {
-        for(i = aData.length-1; i >= 0; i--) {
-            if(YAHOO.lang.isString(aData[i])) {
-                aResults.unshift([aData[i]]);
-            }
-            else if(YAHOO.lang.isArray(aData[i])) {
-                aResults.unshift(aData[i]);
-            }
-        }
-    }
-    
-    this.getResultsEvent.fire(this, oParent, sQuery, aResults);
-    YAHOO.log("Results returned for query \"" + sQuery +
-            "\": " + YAHOO.lang.dump(aResults), "info", this.toString());
-    oCallbackFn(sQuery, aResults, oParent);
-};
-
-YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/autocomplete/autocomplete-min.js b/lib/yui/autocomplete/autocomplete-min.js
deleted file mode 100755 (executable)
index 77eacce..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.widget.AutoComplete=function(G,B,J,C){if(G&&B&&J){if(J instanceof YAHOO.widget.DataSource){this.dataSource=J;}else{return ;}if(YAHOO.util.Dom.inDocument(G)){if(YAHOO.lang.isString(G)){this._sName="instance"+YAHOO.widget.AutoComplete._nIndex+" "+G;this._elTextbox=document.getElementById(G);}else{this._sName=(G.id)?"instance"+YAHOO.widget.AutoComplete._nIndex+" "+G.id:"instance"+YAHOO.widget.AutoComplete._nIndex;this._elTextbox=G;}YAHOO.util.Dom.addClass(this._elTextbox,"yui-ac-input");}else{return ;}if(YAHOO.util.Dom.inDocument(B)){if(YAHOO.lang.isString(B)){this._elContainer=document.getElementById(B);}else{this._elContainer=B;}if(this._elContainer.style.display=="none"){}var D=this._elContainer.parentNode;var A=D.tagName.toLowerCase();if(A=="div"){YAHOO.util.Dom.addClass(D,"yui-ac");}else{}}else{return ;}if(C&&(C.constructor==Object)){for(var I in C){if(I){this[I]=C[I];}}}this._initContainer();this._initProps();this._initList();this._initContainerHelpers();var H=this;var F=this._elTextbox;var E=this._elContent;YAHOO.util.Event.addListener(F,"keyup",H._onTextboxKeyUp,H);YAHOO.util.Event.addListener(F,"keydown",H._onTextboxKeyDown,H);YAHOO.util.Event.addListener(F,"focus",H._onTextboxFocus,H);YAHOO.util.Event.addListener(F,"blur",H._onTextboxBlur,H);YAHOO.util.Event.addListener(E,"mouseover",H._onContainerMouseover,H);YAHOO.util.Event.addListener(E,"mouseout",H._onContainerMouseout,H);YAHOO.util.Event.addListener(E,"scroll",H._onContainerScroll,H);YAHOO.util.Event.addListener(E,"resize",H._onContainerResize,H);YAHOO.util.Event.addListener(F,"keypress",H._onTextboxKeyPress,H);YAHOO.util.Event.addListener(window,"unload",H._onWindowUnload,H);this.textboxFocusEvent=new YAHOO.util.CustomEvent("textboxFocus",this);this.textboxKeyEvent=new YAHOO.util.CustomEvent("textboxKey",this);this.dataRequestEvent=new YAHOO.util.CustomEvent("dataRequest",this);this.dataReturnEvent=new YAHOO.util.CustomEvent("dataReturn",this);this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this);this.containerExpandEvent=new YAHOO.util.CustomEvent("containerExpand",this);this.typeAheadEvent=new YAHOO.util.CustomEvent("typeAhead",this);this.itemMouseOverEvent=new YAHOO.util.CustomEvent("itemMouseOver",this);this.itemMouseOutEvent=new YAHOO.util.CustomEvent("itemMouseOut",this);this.itemArrowToEvent=new YAHOO.util.CustomEvent("itemArrowTo",this);this.itemArrowFromEvent=new YAHOO.util.CustomEvent("itemArrowFrom",this);this.itemSelectEvent=new YAHOO.util.CustomEvent("itemSelect",this);this.unmatchedItemSelectEvent=new YAHOO.util.CustomEvent("unmatchedItemSelect",this);this.selectionEnforceEvent=new YAHOO.util.CustomEvent("selectionEnforce",this);this.containerCollapseEvent=new YAHOO.util.CustomEvent("containerCollapse",this);this.textboxBlurEvent=new YAHOO.util.CustomEvent("textboxBlur",this);F.setAttribute("autocomplete","off");YAHOO.widget.AutoComplete._nIndex++;}else{}};YAHOO.widget.AutoComplete.prototype.dataSource=null;YAHOO.widget.AutoComplete.prototype.minQueryLength=1;YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed=10;YAHOO.widget.AutoComplete.prototype.queryDelay=0.2;YAHOO.widget.AutoComplete.prototype.highlightClassName="yui-ac-highlight";YAHOO.widget.AutoComplete.prototype.prehighlightClassName=null;YAHOO.widget.AutoComplete.prototype.delimChar=null;YAHOO.widget.AutoComplete.prototype.autoHighlight=true;YAHOO.widget.AutoComplete.prototype.typeAhead=false;YAHOO.widget.AutoComplete.prototype.animHoriz=false;YAHOO.widget.AutoComplete.prototype.animVert=true;YAHOO.widget.AutoComplete.prototype.animSpeed=0.3;YAHOO.widget.AutoComplete.prototype.forceSelection=false;YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete=true;YAHOO.widget.AutoComplete.prototype.alwaysShowContainer=false;YAHOO.widget.AutoComplete.prototype.useIFrame=false;YAHOO.widget.AutoComplete.prototype.useShadow=false;YAHOO.widget.AutoComplete.prototype.toString=function(){return"AutoComplete "+this._sName;};YAHOO.widget.AutoComplete.prototype.isContainerOpen=function(){return this._bContainerOpen;};YAHOO.widget.AutoComplete.prototype.getListItems=function(){return this._aListItems;};YAHOO.widget.AutoComplete.prototype.getListItemData=function(A){if(A._oResultData){return A._oResultData;}else{return false;}};YAHOO.widget.AutoComplete.prototype.setHeader=function(B){if(this._elHeader){var A=this._elHeader;if(B){A.innerHTML=B;A.style.display="block";}else{A.innerHTML="";A.style.display="none";}}};YAHOO.widget.AutoComplete.prototype.setFooter=function(B){if(this._elFooter){var A=this._elFooter;if(B){A.innerHTML=B;A.style.display="block";}else{A.innerHTML="";A.style.display="none";}}};YAHOO.widget.AutoComplete.prototype.setBody=function(A){if(this._elBody){var B=this._elBody;if(A){B.innerHTML=A;B.style.display="block";B.style.display="block";}else{B.innerHTML="";B.style.display="none";}this._maxResultsDisplayed=0;}};YAHOO.widget.AutoComplete.prototype.formatResult=function(B,C){var A=B[0];if(A){return A;}else{return"";}};YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer=function(D,A,C,B){return true;};YAHOO.widget.AutoComplete.prototype.sendQuery=function(A){this._sendQuery(A);};YAHOO.widget.AutoComplete.prototype.doBeforeSendQuery=function(A){return A;};YAHOO.widget.AutoComplete.prototype.destroy=function(){var B=this.toString();var A=this._elTextbox;var D=this._elContainer;this.textboxFocusEvent.unsubscribeAll();this.textboxKeyEvent.unsubscribeAll();this.dataRequestEvent.unsubscribeAll();this.dataReturnEvent.unsubscribeAll();this.dataErrorEvent.unsubscribeAll();this.containerExpandEvent.unsubscribeAll();this.typeAheadEvent.unsubscribeAll();this.itemMouseOverEvent.unsubscribeAll();this.itemMouseOutEvent.unsubscribeAll();this.itemArrowToEvent.unsubscribeAll();this.itemArrowFromEvent.unsubscribeAll();this.itemSelectEvent.unsubscribeAll();this.unmatchedItemSelectEvent.unsubscribeAll();this.selectionEnforceEvent.unsubscribeAll();this.containerCollapseEvent.unsubscribeAll();this.textboxBlurEvent.unsubscribeAll();YAHOO.util.Event.purgeElement(A,true);
-YAHOO.util.Event.purgeElement(D,true);D.innerHTML="";for(var C in this){if(YAHOO.lang.hasOwnProperty(this,C)){this[C]=null;}}};YAHOO.widget.AutoComplete.prototype.textboxFocusEvent=null;YAHOO.widget.AutoComplete.prototype.textboxKeyEvent=null;YAHOO.widget.AutoComplete.prototype.dataRequestEvent=null;YAHOO.widget.AutoComplete.prototype.dataReturnEvent=null;YAHOO.widget.AutoComplete.prototype.dataErrorEvent=null;YAHOO.widget.AutoComplete.prototype.containerExpandEvent=null;YAHOO.widget.AutoComplete.prototype.typeAheadEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent=null;YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowToEvent=null;YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent=null;YAHOO.widget.AutoComplete.prototype.itemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent=null;YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent=null;YAHOO.widget.AutoComplete.prototype.containerCollapseEvent=null;YAHOO.widget.AutoComplete.prototype.textboxBlurEvent=null;YAHOO.widget.AutoComplete._nIndex=0;YAHOO.widget.AutoComplete.prototype._sName=null;YAHOO.widget.AutoComplete.prototype._elTextbox=null;YAHOO.widget.AutoComplete.prototype._elContainer=null;YAHOO.widget.AutoComplete.prototype._elContent=null;YAHOO.widget.AutoComplete.prototype._elHeader=null;YAHOO.widget.AutoComplete.prototype._elBody=null;YAHOO.widget.AutoComplete.prototype._elFooter=null;YAHOO.widget.AutoComplete.prototype._elShadow=null;YAHOO.widget.AutoComplete.prototype._elIFrame=null;YAHOO.widget.AutoComplete.prototype._bFocused=true;YAHOO.widget.AutoComplete.prototype._oAnim=null;YAHOO.widget.AutoComplete.prototype._bContainerOpen=false;YAHOO.widget.AutoComplete.prototype._bOverContainer=false;YAHOO.widget.AutoComplete.prototype._aListItems=null;YAHOO.widget.AutoComplete.prototype._nDisplayedItems=0;YAHOO.widget.AutoComplete.prototype._maxResultsDisplayed=0;YAHOO.widget.AutoComplete.prototype._sCurQuery=null;YAHOO.widget.AutoComplete.prototype._sSavedQuery=null;YAHOO.widget.AutoComplete.prototype._oCurItem=null;YAHOO.widget.AutoComplete.prototype._bItemSelected=false;YAHOO.widget.AutoComplete.prototype._nKeyCode=null;YAHOO.widget.AutoComplete.prototype._nDelayID=-1;YAHOO.widget.AutoComplete.prototype._iFrameSrc="javascript:false;";YAHOO.widget.AutoComplete.prototype._queryInterval=null;YAHOO.widget.AutoComplete.prototype._sLastTextboxValue=null;YAHOO.widget.AutoComplete.prototype._initProps=function(){var B=this.minQueryLength;if(!YAHOO.lang.isNumber(B)){this.minQueryLength=1;}var D=this.maxResultsDisplayed;if(!YAHOO.lang.isNumber(D)||(D<1)){this.maxResultsDisplayed=10;}var E=this.queryDelay;if(!YAHOO.lang.isNumber(E)||(E<0)){this.queryDelay=0.2;}var A=this.delimChar;if(YAHOO.lang.isString(A)&&(A.length>0)){this.delimChar=[A];}else{if(!YAHOO.lang.isArray(A)){this.delimChar=null;}}var C=this.animSpeed;if((this.animHoriz||this.animVert)&&YAHOO.util.Anim){if(!YAHOO.lang.isNumber(C)||(C<0)){this.animSpeed=0.3;}if(!this._oAnim){this._oAnim=new YAHOO.util.Anim(this._elContent,{},this.animSpeed);}else{this._oAnim.duration=this.animSpeed;}}if(this.forceSelection&&A){}};YAHOO.widget.AutoComplete.prototype._initContainerHelpers=function(){if(this.useShadow&&!this._elShadow){var A=document.createElement("div");A.className="yui-ac-shadow";this._elShadow=this._elContainer.appendChild(A);}if(this.useIFrame&&!this._elIFrame){var B=document.createElement("iframe");B.src=this._iFrameSrc;B.frameBorder=0;B.scrolling="no";B.style.position="absolute";B.style.width="100%";B.style.height="100%";B.tabIndex=-1;this._elIFrame=this._elContainer.appendChild(B);}};YAHOO.widget.AutoComplete.prototype._initContainer=function(){YAHOO.util.Dom.addClass(this._elContainer,"yui-ac-container");if(!this._elContent){var C=document.createElement("div");C.className="yui-ac-content";C.style.display="none";this._elContent=this._elContainer.appendChild(C);var B=document.createElement("div");B.className="yui-ac-hd";B.style.display="none";this._elHeader=this._elContent.appendChild(B);var D=document.createElement("div");D.className="yui-ac-bd";this._elBody=this._elContent.appendChild(D);var A=document.createElement("div");A.className="yui-ac-ft";A.style.display="none";this._elFooter=this._elContent.appendChild(A);}else{}};YAHOO.widget.AutoComplete.prototype._initList=function(){this._aListItems=[];while(this._elBody.hasChildNodes()){var B=this.getListItems();if(B){for(var A=B.length-1;A>=0;A--){B[A]=null;}}this._elBody.innerHTML="";}var E=document.createElement("ul");E=this._elBody.appendChild(E);for(var C=0;C<this.maxResultsDisplayed;C++){var D=document.createElement("li");D=E.appendChild(D);this._aListItems[C]=D;this._initListItem(D,C);}this._maxResultsDisplayed=this.maxResultsDisplayed;};YAHOO.widget.AutoComplete.prototype._initListItem=function(C,B){var A=this;C.style.display="none";C._nItemIndex=B;C.mouseover=C.mouseout=C.onclick=null;YAHOO.util.Event.addListener(C,"mouseover",A._onItemMouseover,A);YAHOO.util.Event.addListener(C,"mouseout",A._onItemMouseout,A);YAHOO.util.Event.addListener(C,"click",A._onItemMouseclick,A);};YAHOO.widget.AutoComplete.prototype._onIMEDetected=function(A){A._enableIntervalDetection();};YAHOO.widget.AutoComplete.prototype._enableIntervalDetection=function(){var A=this._elTextbox.value;var B=this._sLastTextboxValue;if(A!=B){this._sLastTextboxValue=A;this._sendQuery(A);}};YAHOO.widget.AutoComplete.prototype._cancelIntervalDetection=function(A){if(A._queryInterval){clearInterval(A._queryInterval);}};YAHOO.widget.AutoComplete.prototype._isIgnoreKey=function(A){if((A==9)||(A==13)||(A==16)||(A==17)||(A>=18&&A<=20)||(A==27)||(A>=33&&A<=35)||(A>=36&&A<=40)||(A>=44&&A<=45)){return true;}return false;};YAHOO.widget.AutoComplete.prototype._sendQuery=function(G){if(this.minQueryLength==-1){this._toggleContainer(false);return ;}var C=(this.delimChar)?this.delimChar:null;if(C){var E=-1;for(var B=C.length-1;B>=0;B--){var F=G.lastIndexOf(C[B]);if(F>E){E=F;
-}}if(C[B]==" "){for(var A=C.length-1;A>=0;A--){if(G[E-1]==C[A]){E--;break;}}}if(E>-1){var D=E+1;while(G.charAt(D)==" "){D+=1;}this._sSavedQuery=G.substring(0,D);G=G.substr(D);}else{if(G.indexOf(this._sSavedQuery)<0){this._sSavedQuery=null;}}}if((G&&(G.length<this.minQueryLength))||(!G&&this.minQueryLength>0)){if(this._nDelayID!=-1){clearTimeout(this._nDelayID);}this._toggleContainer(false);return ;}G=encodeURIComponent(G);this._nDelayID=-1;G=this.doBeforeSendQuery(G);this.dataRequestEvent.fire(this,G);this.dataSource.getResults(this._populateList,G,this);};YAHOO.widget.AutoComplete.prototype._populateList=function(K,L,I){if(L===null){I.dataErrorEvent.fire(I,K);}if(!I._bFocused||!L){return ;}var A=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);var O=I._elContent.style;O.width=(!A)?null:"";O.height=(!A)?null:"";var H=decodeURIComponent(K);I._sCurQuery=H;I._bItemSelected=false;if(I._maxResultsDisplayed!=I.maxResultsDisplayed){I._initList();}var C=Math.min(L.length,I.maxResultsDisplayed);I._nDisplayedItems=C;if(C>0){I._initContainerHelpers();var D=I._aListItems;for(var G=C-1;G>=0;G--){var N=D[G];var B=L[G];N.innerHTML=I.formatResult(B,H);N.style.display="list-item";N._sResultKey=B[0];N._oResultData=B;}for(var F=D.length-1;F>=C;F--){var M=D[F];M.innerHTML=null;M.style.display="none";M._sResultKey=null;M._oResultData=null;}var J=I.doBeforeExpandContainer(I._elTextbox,I._elContainer,K,L);I._toggleContainer(J);if(I.autoHighlight){var E=D[0];I._toggleHighlight(E,"to");I.itemArrowToEvent.fire(I,E);I._typeAhead(E,K);}else{I._oCurItem=null;}}else{I._toggleContainer(false);}I.dataReturnEvent.fire(I,K,L);};YAHOO.widget.AutoComplete.prototype._clearSelection=function(){var C=this._elTextbox.value;var B=(this.delimChar)?this.delimChar[0]:null;var A=(B)?C.lastIndexOf(B,C.length-2):-1;if(A>-1){this._elTextbox.value=C.substring(0,A);}else{this._elTextbox.value="";}this._sSavedQuery=this._elTextbox.value;this.selectionEnforceEvent.fire(this);};YAHOO.widget.AutoComplete.prototype._textMatchesOption=function(){var D=null;for(var A=this._nDisplayedItems-1;A>=0;A--){var C=this._aListItems[A];var B=C._sResultKey.toLowerCase();if(B==this._sCurQuery.toLowerCase()){D=C;break;}}return(D);};YAHOO.widget.AutoComplete.prototype._typeAhead=function(D,G){if(!this.typeAhead||(this._nKeyCode==8)){return ;}var F=this._elTextbox;var E=this._elTextbox.value;if(!F.setSelectionRange&&!F.createTextRange){return ;}var B=E.length;this._updateValue(D);var C=F.value.length;this._selectText(F,B,C);var A=F.value.substr(B,C);this.typeAheadEvent.fire(this,G,A);};YAHOO.widget.AutoComplete.prototype._selectText=function(D,A,B){if(D.setSelectionRange){D.setSelectionRange(A,B);}else{if(D.createTextRange){var C=D.createTextRange();C.moveStart("character",A);C.moveEnd("character",B-D.value.length);C.select();}else{D.select();}}};YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers=function(B){var D=false;var C=this._elContent.offsetWidth+"px";var A=this._elContent.offsetHeight+"px";if(this.useIFrame&&this._elIFrame){D=true;if(B){this._elIFrame.style.width=C;this._elIFrame.style.height=A;}else{this._elIFrame.style.width=0;this._elIFrame.style.height=0;}}if(this.useShadow&&this._elShadow){D=true;if(B){this._elShadow.style.width=C;this._elShadow.style.height=A;}else{this._elShadow.style.width=0;this._elShadow.style.height=0;}}};YAHOO.widget.AutoComplete.prototype._toggleContainer=function(K){var E=this._elContainer;if(this.alwaysShowContainer&&this._bContainerOpen){return ;}if(!K){this._elContent.scrollTop=0;var C=this._aListItems;if(C&&(C.length>0)){for(var H=C.length-1;H>=0;H--){C[H].style.display="none";}}if(this._oCurItem){this._toggleHighlight(this._oCurItem,"from");}this._oCurItem=null;this._nDisplayedItems=0;this._sCurQuery=null;}if(!K&&!this._bContainerOpen){this._elContent.style.display="none";return ;}var B=this._oAnim;if(B&&B.getEl()&&(this.animHoriz||this.animVert)){if(!K){this._toggleContainerHelpers(K);}if(B.isAnimated()){B.stop();}var I=this._elContent.cloneNode(true);E.appendChild(I);I.style.top="-9000px";I.style.display="block";var G=I.offsetWidth;var D=I.offsetHeight;var A=(this.animHoriz)?0:G;var F=(this.animVert)?0:D;B.attributes=(K)?{width:{to:G},height:{to:D}}:{width:{to:A},height:{to:F}};if(K&&!this._bContainerOpen){this._elContent.style.width=A+"px";this._elContent.style.height=F+"px";}else{this._elContent.style.width=G+"px";this._elContent.style.height=D+"px";}E.removeChild(I);I=null;var J=this;var L=function(){B.onComplete.unsubscribeAll();if(K){J.containerExpandEvent.fire(J);}else{J._elContent.style.display="none";J.containerCollapseEvent.fire(J);}J._toggleContainerHelpers(K);};this._elContent.style.display="block";B.onComplete.subscribe(L);B.animate();this._bContainerOpen=K;}else{if(K){this._elContent.style.display="block";this.containerExpandEvent.fire(this);}else{this._elContent.style.display="none";this.containerCollapseEvent.fire(this);}this._toggleContainerHelpers(K);this._bContainerOpen=K;}};YAHOO.widget.AutoComplete.prototype._toggleHighlight=function(A,C){var B=this.highlightClassName;if(this._oCurItem){YAHOO.util.Dom.removeClass(this._oCurItem,B);}if((C=="to")&&B){YAHOO.util.Dom.addClass(A,B);this._oCurItem=A;}};YAHOO.widget.AutoComplete.prototype._togglePrehighlight=function(A,C){if(A==this._oCurItem){return ;}var B=this.prehighlightClassName;if((C=="mouseover")&&B){YAHOO.util.Dom.addClass(A,B);}else{YAHOO.util.Dom.removeClass(A,B);}};YAHOO.widget.AutoComplete.prototype._updateValue=function(E){var F=this._elTextbox;var D=(this.delimChar)?(this.delimChar[0]||this.delimChar):null;var B=this._sSavedQuery;var C=E._sResultKey;F.focus();F.value="";if(D){if(B){F.value=B;}F.value+=C+D;if(D!=" "){F.value+=" ";}}else{F.value=C;}if(F.type=="textarea"){F.scrollTop=F.scrollHeight;}var A=F.value.length;this._selectText(F,A,A);this._oCurItem=E;};YAHOO.widget.AutoComplete.prototype._selectItem=function(A){this._bItemSelected=true;this._updateValue(A);this._cancelIntervalDetection(this);this.itemSelectEvent.fire(this,A,A._oResultData);
-this._toggleContainer(false);};YAHOO.widget.AutoComplete.prototype._jumpSelection=function(){if(this._oCurItem){this._selectItem(this._oCurItem);}else{this._toggleContainer(false);}};YAHOO.widget.AutoComplete.prototype._moveSelection=function(G){if(this._bContainerOpen){var E=this._oCurItem;var F=-1;if(E){F=E._nItemIndex;}var D=(G==40)?(F+1):(F-1);if(D<-2||D>=this._nDisplayedItems){return ;}if(E){this._toggleHighlight(E,"from");this.itemArrowFromEvent.fire(this,E);}if(D==-1){if(this.delimChar&&this._sSavedQuery){if(!this._textMatchesOption()){this._elTextbox.value=this._sSavedQuery;}else{this._elTextbox.value=this._sSavedQuery+this._sCurQuery;}}else{this._elTextbox.value=this._sCurQuery;}this._oCurItem=null;return ;}if(D==-2){this._toggleContainer(false);return ;}var C=this._aListItems[D];var A=this._elContent;var B=((YAHOO.util.Dom.getStyle(A,"overflow")=="auto")||(YAHOO.util.Dom.getStyle(A,"overflowY")=="auto"));if(B&&(D>-1)&&(D<this._nDisplayedItems)){if(G==40){if((C.offsetTop+C.offsetHeight)>(A.scrollTop+A.offsetHeight)){A.scrollTop=(C.offsetTop+C.offsetHeight)-A.offsetHeight;}else{if((C.offsetTop+C.offsetHeight)<A.scrollTop){A.scrollTop=C.offsetTop;}}}else{if(C.offsetTop<A.scrollTop){this._elContent.scrollTop=C.offsetTop;}else{if(C.offsetTop>(A.scrollTop+A.offsetHeight)){this._elContent.scrollTop=(C.offsetTop+C.offsetHeight)-A.offsetHeight;}}}}this._toggleHighlight(C,"to");this.itemArrowToEvent.fire(this,C);if(this.typeAhead){this._updateValue(C);}}};YAHOO.widget.AutoComplete.prototype._onItemMouseover=function(A,B){if(B.prehighlightClassName){B._togglePrehighlight(this,"mouseover");}else{B._toggleHighlight(this,"to");}B.itemMouseOverEvent.fire(B,this);};YAHOO.widget.AutoComplete.prototype._onItemMouseout=function(A,B){if(B.prehighlightClassName){B._togglePrehighlight(this,"mouseout");}else{B._toggleHighlight(this,"from");}B.itemMouseOutEvent.fire(B,this);};YAHOO.widget.AutoComplete.prototype._onItemMouseclick=function(A,B){B._toggleHighlight(this,"to");B._selectItem(this);};YAHOO.widget.AutoComplete.prototype._onContainerMouseover=function(A,B){B._bOverContainer=true;};YAHOO.widget.AutoComplete.prototype._onContainerMouseout=function(A,B){B._bOverContainer=false;if(B._oCurItem){B._toggleHighlight(B._oCurItem,"to");}};YAHOO.widget.AutoComplete.prototype._onContainerScroll=function(A,B){B._elTextbox.focus();};YAHOO.widget.AutoComplete.prototype._onContainerResize=function(A,B){B._toggleContainerHelpers(B._bContainerOpen);};YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown=function(A,B){var C=A.keyCode;switch(C){case 9:if(B._oCurItem){if(B.delimChar&&(B._nKeyCode!=C)){if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);}}B._selectItem(B._oCurItem);}else{B._toggleContainer(false);}break;case 13:if(!YAHOO.env.ua.webkit){if(B._oCurItem){if(B._nKeyCode!=C){if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);}}B._selectItem(B._oCurItem);}else{B._toggleContainer(false);}}break;case 27:B._toggleContainer(false);return ;case 39:B._jumpSelection();break;case 38:YAHOO.util.Event.stopEvent(A);B._moveSelection(C);break;case 40:YAHOO.util.Event.stopEvent(A);B._moveSelection(C);break;default:break;}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress=function(A,B){var C=A.keyCode;if(YAHOO.env.ua.webkit){switch(C){case 9:if(B._oCurItem){if(B.delimChar&&(B._nKeyCode!=C)){YAHOO.util.Event.stopEvent(A);}}break;case 13:if(B._oCurItem){if(B._nKeyCode!=C){if(B._bContainerOpen){YAHOO.util.Event.stopEvent(A);}}B._selectItem(B._oCurItem);}else{B._toggleContainer(false);}break;default:break;}}else{if(C==229){B._queryInterval=setInterval(function(){B._onIMEDetected(B);},500);}}};YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp=function(B,D){D._initProps();var E=B.keyCode;D._nKeyCode=E;var C=this.value;if(D._isIgnoreKey(E)||(C.toLowerCase()==D._sCurQuery)){return ;}else{D._bItemSelected=false;YAHOO.util.Dom.removeClass(D._oCurItem,D.highlightClassName);D._oCurItem=null;D.textboxKeyEvent.fire(D,E);}if(D.queryDelay>0){var A=setTimeout(function(){D._sendQuery(C);},(D.queryDelay*1000));if(D._nDelayID!=-1){clearTimeout(D._nDelayID);}D._nDelayID=A;}else{D._sendQuery(C);}};YAHOO.widget.AutoComplete.prototype._onTextboxFocus=function(A,B){B._elTextbox.setAttribute("autocomplete","off");B._bFocused=true;if(!B._bItemSelected){B.textboxFocusEvent.fire(B);}};YAHOO.widget.AutoComplete.prototype._onTextboxBlur=function(A,B){if(!B._bOverContainer||(B._nKeyCode==9)){if(!B._bItemSelected){var C=B._textMatchesOption();if(!B._bContainerOpen||(B._bContainerOpen&&(C===null))){if(B.forceSelection){B._clearSelection();}else{B.unmatchedItemSelectEvent.fire(B);}}else{if(B.forceSelection){B._selectItem(C);}}}if(B._bContainerOpen){B._toggleContainer(false);}B._cancelIntervalDetection(B);B._bFocused=false;B.textboxBlurEvent.fire(B);}};YAHOO.widget.AutoComplete.prototype._onWindowUnload=function(A,B){if(B&&B._elTextbox&&B.allowBrowserAutocomplete){B._elTextbox.setAttribute("autocomplete","on");}};YAHOO.widget.DataSource=function(){};YAHOO.widget.DataSource.ERROR_DATANULL="Response data was null";YAHOO.widget.DataSource.ERROR_DATAPARSE="Response data could not be parsed";YAHOO.widget.DataSource.prototype.maxCacheEntries=15;YAHOO.widget.DataSource.prototype.queryMatchContains=false;YAHOO.widget.DataSource.prototype.queryMatchSubset=false;YAHOO.widget.DataSource.prototype.queryMatchCase=false;YAHOO.widget.DataSource.prototype.toString=function(){return"DataSource "+this._sName;};YAHOO.widget.DataSource.prototype.getResults=function(A,D,B){var C=this._doQueryCache(A,D,B);if(C.length===0){this.queryEvent.fire(this,B,D);this.doQuery(A,D,B);}};YAHOO.widget.DataSource.prototype.doQuery=function(A,C,B){};YAHOO.widget.DataSource.prototype.flushCache=function(){if(this._aCache){this._aCache=[];}if(this._aCacheHelper){this._aCacheHelper=[];}this.cacheFlushEvent.fire(this);};YAHOO.widget.DataSource.prototype.queryEvent=null;YAHOO.widget.DataSource.prototype.cacheQueryEvent=null;YAHOO.widget.DataSource.prototype.getResultsEvent=null;YAHOO.widget.DataSource.prototype.getCachedResultsEvent=null;
-YAHOO.widget.DataSource.prototype.dataErrorEvent=null;YAHOO.widget.DataSource.prototype.cacheFlushEvent=null;YAHOO.widget.DataSource._nIndex=0;YAHOO.widget.DataSource.prototype._sName=null;YAHOO.widget.DataSource.prototype._aCache=null;YAHOO.widget.DataSource.prototype._init=function(){var A=this.maxCacheEntries;if(!YAHOO.lang.isNumber(A)||(A<0)){A=0;}if(A>0&&!this._aCache){this._aCache=[];}this._sName="instance"+YAHOO.widget.DataSource._nIndex;YAHOO.widget.DataSource._nIndex++;this.queryEvent=new YAHOO.util.CustomEvent("query",this);this.cacheQueryEvent=new YAHOO.util.CustomEvent("cacheQuery",this);this.getResultsEvent=new YAHOO.util.CustomEvent("getResults",this);this.getCachedResultsEvent=new YAHOO.util.CustomEvent("getCachedResults",this);this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this);this.cacheFlushEvent=new YAHOO.util.CustomEvent("cacheFlush",this);};YAHOO.widget.DataSource.prototype._addCacheElem=function(B){var A=this._aCache;if(!A||!B||!B.query||!B.results){return ;}if(A.length>=this.maxCacheEntries){A.shift();}A.push(B);};YAHOO.widget.DataSource.prototype._doQueryCache=function(A,I,N){var H=[];var G=false;var J=this._aCache;var F=(J)?J.length:0;var K=this.queryMatchContains;var D;if((this.maxCacheEntries>0)&&J&&(F>0)){this.cacheQueryEvent.fire(this,N,I);if(!this.queryMatchCase){D=I;I=I.toLowerCase();}for(var P=F-1;P>=0;P--){var E=J[P];var B=E.results;var C=(!this.queryMatchCase)?encodeURIComponent(E.query).toLowerCase():encodeURIComponent(E.query);if(C==I){G=true;H=B;if(P!=F-1){J.splice(P,1);this._addCacheElem(E);}break;}else{if(this.queryMatchSubset){for(var O=I.length-1;O>=0;O--){var R=I.substr(0,O);if(C==R){G=true;for(var M=B.length-1;M>=0;M--){var Q=B[M];var L=(this.queryMatchCase)?encodeURIComponent(Q[0]).indexOf(I):encodeURIComponent(Q[0]).toLowerCase().indexOf(I);if((!K&&(L===0))||(K&&(L>-1))){H.unshift(Q);}}E={};E.query=I;E.results=H;this._addCacheElem(E);break;}}if(G){break;}}}}if(G){this.getCachedResultsEvent.fire(this,N,D,H);A(D,H,N);}}return H;};YAHOO.widget.DS_XHR=function(C,A,D){if(D&&(D.constructor==Object)){for(var B in D){this[B]=D[B];}}if(!YAHOO.lang.isArray(A)||!YAHOO.lang.isString(C)){return ;}this.schema=A;this.scriptURI=C;this._init();};YAHOO.widget.DS_XHR.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_XHR.TYPE_JSON=0;YAHOO.widget.DS_XHR.TYPE_XML=1;YAHOO.widget.DS_XHR.TYPE_FLAT=2;YAHOO.widget.DS_XHR.ERROR_DATAXHR="XHR response failed";YAHOO.widget.DS_XHR.prototype.connMgr=YAHOO.util.Connect;YAHOO.widget.DS_XHR.prototype.connTimeout=0;YAHOO.widget.DS_XHR.prototype.scriptURI=null;YAHOO.widget.DS_XHR.prototype.scriptQueryParam="query";YAHOO.widget.DS_XHR.prototype.scriptQueryAppend="";YAHOO.widget.DS_XHR.prototype.responseType=YAHOO.widget.DS_XHR.TYPE_JSON;YAHOO.widget.DS_XHR.prototype.responseStripAfter="\n<!-";YAHOO.widget.DS_XHR.prototype.doQuery=function(E,G,B){var J=(this.responseType==YAHOO.widget.DS_XHR.TYPE_XML);var D=this.scriptURI+"?"+this.scriptQueryParam+"="+G;if(this.scriptQueryAppend.length>0){D+="&"+this.scriptQueryAppend;}var C=null;var F=this;var I=function(K){if(!F._oConn||(K.tId!=F._oConn.tId)){F.dataErrorEvent.fire(F,B,G,YAHOO.widget.DataSource.ERROR_DATANULL);return ;}for(var N in K){}if(!J){K=K.responseText;}else{K=K.responseXML;}if(K===null){F.dataErrorEvent.fire(F,B,G,YAHOO.widget.DataSource.ERROR_DATANULL);return ;}var M=F.parseResponse(G,K,B);var L={};L.query=decodeURIComponent(G);L.results=M;if(M===null){F.dataErrorEvent.fire(F,B,G,YAHOO.widget.DataSource.ERROR_DATAPARSE);M=[];}else{F.getResultsEvent.fire(F,B,G,M);F._addCacheElem(L);}E(G,M,B);};var A=function(K){F.dataErrorEvent.fire(F,B,G,YAHOO.widget.DS_XHR.ERROR_DATAXHR);return ;};var H={success:I,failure:A};if(YAHOO.lang.isNumber(this.connTimeout)&&(this.connTimeout>0)){H.timeout=this.connTimeout;}if(this._oConn){this.connMgr.abort(this._oConn);}F._oConn=this.connMgr.asyncRequest("GET",D,H,null);};YAHOO.widget.DS_XHR.prototype.parseResponse=function(sQuery,oResponse,oParent){var aSchema=this.schema;var aResults=[];var bError=false;var nEnd=((this.responseStripAfter!=="")&&(oResponse.indexOf))?oResponse.indexOf(this.responseStripAfter):-1;if(nEnd!=-1){oResponse=oResponse.substring(0,nEnd);}switch(this.responseType){case YAHOO.widget.DS_XHR.TYPE_JSON:var jsonList,jsonObjParsed;if(YAHOO.lang.JSON){jsonObjParsed=YAHOO.lang.JSON.parse(oResponse);if(!jsonObjParsed){bError=true;break;}else{try{jsonList=eval("jsonObjParsed."+aSchema[0]);}catch(e){bError=true;break;}}}else{if(oResponse.parseJSON){jsonObjParsed=oResponse.parseJSON();if(!jsonObjParsed){bError=true;}else{try{jsonList=eval("jsonObjParsed."+aSchema[0]);}catch(e){bError=true;break;}}}else{if(window.JSON){jsonObjParsed=JSON.parse(oResponse);if(!jsonObjParsed){bError=true;break;}else{try{jsonList=eval("jsonObjParsed."+aSchema[0]);}catch(e){bError=true;break;}}}else{try{while(oResponse.substring(0,1)==" "){oResponse=oResponse.substring(1,oResponse.length);}if(oResponse.indexOf("{")<0){bError=true;break;}if(oResponse.indexOf("{}")===0){break;}var jsonObjRaw=eval("("+oResponse+")");if(!jsonObjRaw){bError=true;break;}jsonList=eval("(jsonObjRaw."+aSchema[0]+")");}catch(e){bError=true;break;}}}}if(!jsonList){bError=true;break;}if(!YAHOO.lang.isArray(jsonList)){jsonList=[jsonList];}for(var i=jsonList.length-1;i>=0;i--){var aResultItem=[];var jsonResult=jsonList[i];for(var j=aSchema.length-1;j>=1;j--){var dataFieldValue=jsonResult[aSchema[j]];if(!dataFieldValue){dataFieldValue="";}aResultItem.unshift(dataFieldValue);}if(aResultItem.length==1){aResultItem.push(jsonResult);}aResults.unshift(aResultItem);}break;case YAHOO.widget.DS_XHR.TYPE_XML:var xmlList=oResponse.getElementsByTagName(aSchema[0]);if(!xmlList){bError=true;break;}for(var k=xmlList.length-1;k>=0;k--){var result=xmlList.item(k);var aFieldSet=[];for(var m=aSchema.length-1;m>=1;m--){var sValue=null;var xmlAttr=result.attributes.getNamedItem(aSchema[m]);if(xmlAttr){sValue=xmlAttr.value;}else{var xmlNode=result.getElementsByTagName(aSchema[m]);if(xmlNode&&xmlNode.item(0)&&xmlNode.item(0).firstChild){sValue=xmlNode.item(0).firstChild.nodeValue;
-}else{sValue="";}}aFieldSet.unshift(sValue);}aResults.unshift(aFieldSet);}break;case YAHOO.widget.DS_XHR.TYPE_FLAT:if(oResponse.length>0){var newLength=oResponse.length-aSchema[0].length;if(oResponse.substr(newLength)==aSchema[0]){oResponse=oResponse.substr(0,newLength);}var aRecords=oResponse.split(aSchema[0]);for(var n=aRecords.length-1;n>=0;n--){aResults[n]=aRecords[n].split(aSchema[1]);}}break;default:break;}sQuery=null;oResponse=null;oParent=null;if(bError){return null;}else{return aResults;}};YAHOO.widget.DS_XHR.prototype._oConn=null;YAHOO.widget.DS_ScriptNode=function(D,A,C){if(C&&(C.constructor==Object)){for(var B in C){this[B]=C[B];}}if(!YAHOO.lang.isArray(A)||!YAHOO.lang.isString(D)){return ;}this.schema=A;this.scriptURI=D;this._init();};YAHOO.widget.DS_ScriptNode.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_ScriptNode.prototype.getUtility=YAHOO.util.Get;YAHOO.widget.DS_ScriptNode.prototype.scriptURI=null;YAHOO.widget.DS_ScriptNode.prototype.scriptQueryParam="query";YAHOO.widget.DS_ScriptNode.prototype.asyncMode="allowAll";YAHOO.widget.DS_ScriptNode.prototype.scriptCallbackParam="callback";YAHOO.widget.DS_ScriptNode.callbacks=[];YAHOO.widget.DS_ScriptNode._nId=0;YAHOO.widget.DS_ScriptNode._nPending=0;YAHOO.widget.DS_ScriptNode.prototype.doQuery=function(A,F,C){var B=this;if(YAHOO.widget.DS_ScriptNode._nPending===0){YAHOO.widget.DS_ScriptNode.callbacks=[];YAHOO.widget.DS_ScriptNode._nId=0;}var E=YAHOO.widget.DS_ScriptNode._nId;YAHOO.widget.DS_ScriptNode._nId++;YAHOO.widget.DS_ScriptNode.callbacks[E]=function(G){if((B.asyncMode!=="ignoreStaleResponses")||(E===YAHOO.widget.DS_ScriptNode.callbacks.length-1)){B.handleResponse(G,A,F,C);}else{}delete YAHOO.widget.DS_ScriptNode.callbacks[E];};YAHOO.widget.DS_ScriptNode._nPending++;var D=this.scriptURI+"&"+this.scriptQueryParam+"="+F+"&"+this.scriptCallbackParam+"=YAHOO.widget.DS_ScriptNode.callbacks["+E+"]";this.getUtility.script(D,{autopurge:true,onsuccess:YAHOO.widget.DS_ScriptNode._bumpPendingDown,onfail:YAHOO.widget.DS_ScriptNode._bumpPendingDown});};YAHOO.widget.DS_ScriptNode.prototype.handleResponse=function(oResponse,oCallbackFn,sQuery,oParent){var aSchema=this.schema;var aResults=[];var bError=false;var jsonList,jsonObjParsed;try{jsonList=eval("(oResponse."+aSchema[0]+")");}catch(e){bError=true;}if(!jsonList){bError=true;jsonList=[];}else{if(!YAHOO.lang.isArray(jsonList)){jsonList=[jsonList];}}for(var i=jsonList.length-1;i>=0;i--){var aResultItem=[];var jsonResult=jsonList[i];for(var j=aSchema.length-1;j>=1;j--){var dataFieldValue=jsonResult[aSchema[j]];if(!dataFieldValue){dataFieldValue="";}aResultItem.unshift(dataFieldValue);}if(aResultItem.length==1){aResultItem.push(jsonResult);}aResults.unshift(aResultItem);}if(bError){aResults=null;}if(aResults===null){this.dataErrorEvent.fire(this,oParent,sQuery,YAHOO.widget.DataSource.ERROR_DATAPARSE);aResults=[];}else{var resultObj={};resultObj.query=decodeURIComponent(sQuery);resultObj.results=aResults;this._addCacheElem(resultObj);this.getResultsEvent.fire(this,oParent,sQuery,aResults);}oCallbackFn(sQuery,aResults,oParent);};YAHOO.widget.DS_ScriptNode._bumpPendingDown=function(){YAHOO.widget.DS_ScriptNode._nPending--;};YAHOO.widget.DS_JSFunction=function(A,C){if(C&&(C.constructor==Object)){for(var B in C){this[B]=C[B];}}if(!YAHOO.lang.isFunction(A)){return ;}else{this.dataFunction=A;this._init();}};YAHOO.widget.DS_JSFunction.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_JSFunction.prototype.dataFunction=null;YAHOO.widget.DS_JSFunction.prototype.doQuery=function(C,F,D){var B=this.dataFunction;var E=[];E=B(F);if(E===null){this.dataErrorEvent.fire(this,D,F,YAHOO.widget.DataSource.ERROR_DATANULL);return ;}var A={};A.query=decodeURIComponent(F);A.results=E;this._addCacheElem(A);this.getResultsEvent.fire(this,D,F,E);C(F,E,D);return ;};YAHOO.widget.DS_JSArray=function(A,C){if(C&&(C.constructor==Object)){for(var B in C){this[B]=C[B];}}if(!YAHOO.lang.isArray(A)){return ;}else{this.data=A;this._init();}};YAHOO.widget.DS_JSArray.prototype=new YAHOO.widget.DataSource();YAHOO.widget.DS_JSArray.prototype.data=null;YAHOO.widget.DS_JSArray.prototype.doQuery=function(E,I,A){var F;var C=this.data;var J=[];var D=false;var B=this.queryMatchContains;if(I){if(!this.queryMatchCase){I=I.toLowerCase();}for(F=C.length-1;F>=0;F--){var H=[];if(YAHOO.lang.isString(C[F])){H[0]=C[F];}else{if(YAHOO.lang.isArray(C[F])){H=C[F];}}if(YAHOO.lang.isString(H[0])){var G=(this.queryMatchCase)?encodeURIComponent(H[0]).indexOf(I):encodeURIComponent(H[0]).toLowerCase().indexOf(I);if((!B&&(G===0))||(B&&(G>-1))){J.unshift(H);}}}}else{for(F=C.length-1;F>=0;F--){if(YAHOO.lang.isString(C[F])){J.unshift([C[F]]);}else{if(YAHOO.lang.isArray(C[F])){J.unshift(C[F]);}}}}this.getResultsEvent.fire(this,A,I,J);E(I,J,A);};YAHOO.register("autocomplete",YAHOO.widget.AutoComplete,{version:"2.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/autocomplete/autocomplete.js b/lib/yui/autocomplete/autocomplete.js
deleted file mode 100755 (executable)
index d435e87..0000000
+++ /dev/null
@@ -1,3545 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
- /**
- * The AutoComplete control provides the front-end logic for text-entry suggestion and
- * completion functionality.
- *
- * @module autocomplete
- * @requires yahoo, dom, event, datasource
- * @optional animation, connection, get
- * @namespace YAHOO.widget
- * @title AutoComplete Widget
- */
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The AutoComplete class provides the customizable functionality of a plug-and-play DHTML
- * auto completion widget.  Some key features:
- * <ul>
- * <li>Navigate with up/down arrow keys and/or mouse to pick a selection</li>
- * <li>The drop down container can "roll down" or "fly out" via configurable
- * animation</li>
- * <li>UI look-and-feel customizable through CSS, including container
- * attributes, borders, position, fonts, etc</li>
- * </ul>
- *
- * @class AutoComplete
- * @constructor
- * @param elInput {HTMLElement} DOM element reference of an input field.
- * @param elInput {String} String ID of an input field.
- * @param elContainer {HTMLElement} DOM element reference of an existing DIV.
- * @param elContainer {String} String ID of an existing DIV.
- * @param oDataSource {YAHOO.widget.DataSource} DataSource instance.
- * @param oConfigs {Object} (optional) Object literal of configuration params.
- */
-YAHOO.widget.AutoComplete = function(elInput,elContainer,oDataSource,oConfigs) {
-    if(elInput && elContainer && oDataSource) {
-        // Validate DataSource
-        if(oDataSource instanceof YAHOO.widget.DataSource) {
-            this.dataSource = oDataSource;
-        }
-        else {
-            return;
-        }
-
-        // Validate input element
-        if(YAHOO.util.Dom.inDocument(elInput)) {
-            if(YAHOO.lang.isString(elInput)) {
-                    this._sName = "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput;
-                    this._elTextbox = document.getElementById(elInput);
-            }
-            else {
-                this._sName = (elInput.id) ?
-                    "instance" + YAHOO.widget.AutoComplete._nIndex + " " + elInput.id:
-                    "instance" + YAHOO.widget.AutoComplete._nIndex;
-                this._elTextbox = elInput;
-            }
-            YAHOO.util.Dom.addClass(this._elTextbox, "yui-ac-input");
-        }
-        else {
-            return;
-        }
-
-        // Validate container element
-        if(YAHOO.util.Dom.inDocument(elContainer)) {
-            if(YAHOO.lang.isString(elContainer)) {
-                    this._elContainer = document.getElementById(elContainer);
-            }
-            else {
-                this._elContainer = elContainer;
-            }
-            if(this._elContainer.style.display == "none") {
-            }
-            
-            // For skinning
-            var elParent = this._elContainer.parentNode;
-            var elTag = elParent.tagName.toLowerCase();
-            if(elTag == "div") {
-                YAHOO.util.Dom.addClass(elParent, "yui-ac");
-            }
-            else {
-            }
-        }
-        else {
-            return;
-        }
-
-        // Set any config params passed in to override defaults
-        if(oConfigs && (oConfigs.constructor == Object)) {
-            for(var sConfig in oConfigs) {
-                if(sConfig) {
-                    this[sConfig] = oConfigs[sConfig];
-                }
-            }
-        }
-
-        // Initialization sequence
-        this._initContainer();
-        this._initProps();
-        this._initList();
-        this._initContainerHelpers();
-
-        // Set up events
-        var oSelf = this;
-        var elTextbox = this._elTextbox;
-        // Events are actually for the content module within the container
-        var elContent = this._elContent;
-
-        // Dom events
-        YAHOO.util.Event.addListener(elTextbox,"keyup",oSelf._onTextboxKeyUp,oSelf);
-        YAHOO.util.Event.addListener(elTextbox,"keydown",oSelf._onTextboxKeyDown,oSelf);
-        YAHOO.util.Event.addListener(elTextbox,"focus",oSelf._onTextboxFocus,oSelf);
-        YAHOO.util.Event.addListener(elTextbox,"blur",oSelf._onTextboxBlur,oSelf);
-        YAHOO.util.Event.addListener(elContent,"mouseover",oSelf._onContainerMouseover,oSelf);
-        YAHOO.util.Event.addListener(elContent,"mouseout",oSelf._onContainerMouseout,oSelf);
-        YAHOO.util.Event.addListener(elContent,"scroll",oSelf._onContainerScroll,oSelf);
-        YAHOO.util.Event.addListener(elContent,"resize",oSelf._onContainerResize,oSelf);
-        YAHOO.util.Event.addListener(elTextbox,"keypress",oSelf._onTextboxKeyPress,oSelf);
-        YAHOO.util.Event.addListener(window,"unload",oSelf._onWindowUnload,oSelf);
-
-        // Custom events
-        this.textboxFocusEvent = new YAHOO.util.CustomEvent("textboxFocus", this);
-        this.textboxKeyEvent = new YAHOO.util.CustomEvent("textboxKey", this);
-        this.dataRequestEvent = new YAHOO.util.CustomEvent("dataRequest", this);
-        this.dataReturnEvent = new YAHOO.util.CustomEvent("dataReturn", this);
-        this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this);
-        this.containerExpandEvent = new YAHOO.util.CustomEvent("containerExpand", this);
-        this.typeAheadEvent = new YAHOO.util.CustomEvent("typeAhead", this);
-        this.itemMouseOverEvent = new YAHOO.util.CustomEvent("itemMouseOver", this);
-        this.itemMouseOutEvent = new YAHOO.util.CustomEvent("itemMouseOut", this);
-        this.itemArrowToEvent = new YAHOO.util.CustomEvent("itemArrowTo", this);
-        this.itemArrowFromEvent = new YAHOO.util.CustomEvent("itemArrowFrom", this);
-        this.itemSelectEvent = new YAHOO.util.CustomEvent("itemSelect", this);
-        this.unmatchedItemSelectEvent = new YAHOO.util.CustomEvent("unmatchedItemSelect", this);
-        this.selectionEnforceEvent = new YAHOO.util.CustomEvent("selectionEnforce", this);
-        this.containerCollapseEvent = new YAHOO.util.CustomEvent("containerCollapse", this);
-        this.textboxBlurEvent = new YAHOO.util.CustomEvent("textboxBlur", this);
-        
-        // Finish up
-        elTextbox.setAttribute("autocomplete","off");
-        YAHOO.widget.AutoComplete._nIndex++;
-    }
-    // Required arguments were not found
-    else {
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * The DataSource object that encapsulates the data used for auto completion.
- * This object should be an inherited object from YAHOO.widget.DataSource.
- *
- * @property dataSource
- * @type YAHOO.widget.DataSource
- */
-YAHOO.widget.AutoComplete.prototype.dataSource = null;
-
-/**
- * Number of characters that must be entered before querying for results. A negative value
- * effectively turns off the widget. A value of 0 allows queries of null or empty string
- * values.
- *
- * @property minQueryLength
- * @type Number
- * @default 1
- */
-YAHOO.widget.AutoComplete.prototype.minQueryLength = 1;
-
-/**
- * Maximum number of results to display in results container.
- *
- * @property maxResultsDisplayed
- * @type Number
- * @default 10
- */
-YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed = 10;
-
-/**
- * Number of seconds to delay before submitting a query request.  If a query
- * request is received before a previous one has completed its delay, the
- * previous request is cancelled and the new request is set to the delay.
- * Implementers should take care when setting this value very low (i.e., less
- * than 0.2) with low latency DataSources and the typeAhead feature enabled, as
- * fast typers may see unexpected behavior.
- *
- * @property queryDelay
- * @type Number
- * @default 0.2
- */
-YAHOO.widget.AutoComplete.prototype.queryDelay = 0.2;
-
-/**
- * Class name of a highlighted item within results container.
- *
- * @property highlightClassName
- * @type String
- * @default "yui-ac-highlight"
- */
-YAHOO.widget.AutoComplete.prototype.highlightClassName = "yui-ac-highlight";
-
-/**
- * Class name of a pre-highlighted item within results container.
- *
- * @property prehighlightClassName
- * @type String
- */
-YAHOO.widget.AutoComplete.prototype.prehighlightClassName = null;
-
-/**
- * Query delimiter. A single character separator for multiple delimited
- * selections. Multiple delimiter characteres may be defined as an array of
- * strings. A null value or empty string indicates that query results cannot
- * be delimited. This feature is not recommended if you need forceSelection to
- * be true.
- *
- * @property delimChar
- * @type String | String[]
- */
-YAHOO.widget.AutoComplete.prototype.delimChar = null;
-
-/**
- * Whether or not the first item in results container should be automatically highlighted
- * on expand.
- *
- * @property autoHighlight
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.autoHighlight = true;
-
-/**
- * Whether or not the input field should be automatically updated
- * with the first query result as the user types, auto-selecting the substring
- * that the user has not typed.
- *
- * @property typeAhead
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.typeAhead = false;
-
-/**
- * Whether or not to animate the expansion/collapse of the results container in the
- * horizontal direction.
- *
- * @property animHoriz
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.animHoriz = false;
-
-/**
- * Whether or not to animate the expansion/collapse of the results container in the
- * vertical direction.
- *
- * @property animVert
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.animVert = true;
-
-/**
- * Speed of container expand/collapse animation, in seconds..
- *
- * @property animSpeed
- * @type Number
- * @default 0.3
- */
-YAHOO.widget.AutoComplete.prototype.animSpeed = 0.3;
-
-/**
- * Whether or not to force the user's selection to match one of the query
- * results. Enabling this feature essentially transforms the input field into a
- * &lt;select&gt; field. This feature is not recommended with delimiter character(s)
- * defined.
- *
- * @property forceSelection
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.forceSelection = false;
-
-/**
- * Whether or not to allow browsers to cache user-typed input in the input
- * field. Disabling this feature will prevent the widget from setting the
- * autocomplete="off" on the input field. When autocomplete="off"
- * and users click the back button after form submission, user-typed input can
- * be prefilled by the browser from its cache. This caching of user input may
- * not be desired for sensitive data, such as credit card numbers, in which
- * case, implementers should consider setting allowBrowserAutocomplete to false.
- *
- * @property allowBrowserAutocomplete
- * @type Boolean
- * @default true
- */
-YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete = true;
-
-/**
- * Whether or not the results container should always be displayed.
- * Enabling this feature displays the container when the widget is instantiated
- * and prevents the toggling of the container to a collapsed state.
- *
- * @property alwaysShowContainer
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.alwaysShowContainer = false;
-
-/**
- * Whether or not to use an iFrame to layer over Windows form elements in
- * IE. Set to true only when the results container will be on top of a
- * &lt;select&gt; field in IE and thus exposed to the IE z-index bug (i.e.,
- * 5.5 < IE < 7).
- *
- * @property useIFrame
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.useIFrame = false;
-
-/**
- * Whether or not the results container should have a shadow.
- *
- * @property useShadow
- * @type Boolean
- * @default false
- */
-YAHOO.widget.AutoComplete.prototype.useShadow = false;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
- /**
- * Public accessor to the unique name of the AutoComplete instance.
- *
- * @method toString
- * @return {String} Unique name of the AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.toString = function() {
-    return "AutoComplete " + this._sName;
-};
-
- /**
- * Returns true if container is in an expanded state, false otherwise.
- *
- * @method isContainerOpen
- * @return {Boolean} Returns true if container is in an expanded state, false otherwise.
- */
-YAHOO.widget.AutoComplete.prototype.isContainerOpen = function() {
-    return this._bContainerOpen;
-};
-
-/**
- * Public accessor to the internal array of DOM &lt;li&gt; elements that
- * display query results within the results container.
- *
- * @method getListItems
- * @return {HTMLElement[]} Array of &lt;li&gt; elements within the results container.
- */
-YAHOO.widget.AutoComplete.prototype.getListItems = function() {
-    return this._aListItems;
-};
-
-/**
- * Public accessor to the data held in an &lt;li&gt; element of the
- * results container.
- *
- * @method getListItemData
- * @return {Object | Object[]} Object or array of result data or null
- */
-YAHOO.widget.AutoComplete.prototype.getListItemData = function(oListItem) {
-    if(oListItem._oResultData) {
-        return oListItem._oResultData;
-    }
-    else {
-        return false;
-    }
-};
-
-/**
- * Sets HTML markup for the results container header. This markup will be
- * inserted within a &lt;div&gt; tag with a class of "yui-ac-hd".
- *
- * @method setHeader
- * @param sHeader {String} HTML markup for results container header.
- */
-YAHOO.widget.AutoComplete.prototype.setHeader = function(sHeader) {
-    if(this._elHeader) {
-        var elHeader = this._elHeader;
-        if(sHeader) {
-            elHeader.innerHTML = sHeader;
-            elHeader.style.display = "block";
-        }
-        else {
-            elHeader.innerHTML = "";
-            elHeader.style.display = "none";
-        }
-    }
-};
-
-/**
- * Sets HTML markup for the results container footer. This markup will be
- * inserted within a &lt;div&gt; tag with a class of "yui-ac-ft".
- *
- * @method setFooter
- * @param sFooter {String} HTML markup for results container footer.
- */
-YAHOO.widget.AutoComplete.prototype.setFooter = function(sFooter) {
-    if(this._elFooter) {
-        var elFooter = this._elFooter;
-        if(sFooter) {
-                elFooter.innerHTML = sFooter;
-                elFooter.style.display = "block";
-        }
-        else {
-            elFooter.innerHTML = "";
-            elFooter.style.display = "none";
-        }
-    }
-};
-
-/**
- * Sets HTML markup for the results container body. This markup will be
- * inserted within a &lt;div&gt; tag with a class of "yui-ac-bd".
- *
- * @method setBody
- * @param sBody {String} HTML markup for results container body.
- */
-YAHOO.widget.AutoComplete.prototype.setBody = function(sBody) {
-    if(this._elBody) {
-        var elBody = this._elBody;
-        if(sBody) {
-                elBody.innerHTML = sBody;
-                elBody.style.display = "block";
-                elBody.style.display = "block";
-        }
-        else {
-            elBody.innerHTML = "";
-            elBody.style.display = "none";
-        }
-        this._maxResultsDisplayed = 0;
-    }
-};
-
-/**
- * Overridable method that converts a result item object into HTML markup
- * for display. Return data values are accessible via the oResultItem object,
- * and the key return value will always be oResultItem[0]. Markup will be
- * displayed within &lt;li&gt; element tags in the container.
- *
- * @method formatResult
- * @param oResultItem {Object} Result item representing one query result. Data is held in an array.
- * @param sQuery {String} The current query string.
- * @return {String} HTML markup of formatted result data.
- */
-YAHOO.widget.AutoComplete.prototype.formatResult = function(oResultItem, sQuery) {
-    var sResult = oResultItem[0];
-    if(sResult) {
-        return sResult;
-    }
-    else {
-        return "";
-    }
-};
-
-/**
- * Overridable method called before container expands allows implementers to access data
- * and DOM elements.
- *
- * @method doBeforeExpandContainer
- * @param elTextbox {HTMLElement} The text input box.
- * @param elContainer {HTMLElement} The container element.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]}  An array of query results.
- * @return {Boolean} Return true to continue expanding container, false to cancel the expand.
- */
-YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer = function(elTextbox, elContainer, sQuery, aResults) {
-    return true;
-};
-
-/**
- * Makes query request to the DataSource.
- *
- * @method sendQuery
- * @param sQuery {String} Query string.
- */
-YAHOO.widget.AutoComplete.prototype.sendQuery = function(sQuery) {
-    this._sendQuery(sQuery);
-};
-
-/**
- * Overridable method gives implementers access to the query before it gets sent.
- *
- * @method doBeforeSendQuery
- * @param sQuery {String} Query string.
- * @return {String} Query string.
- */
-YAHOO.widget.AutoComplete.prototype.doBeforeSendQuery = function(sQuery) {
-    return sQuery;
-};
-
-/**
- * Nulls out the entire AutoComplete 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
- */
-YAHOO.widget.AutoComplete.prototype.destroy = function() {
-    var instanceName = this.toString();
-    var elInput = this._elTextbox;
-    var elContainer = this._elContainer;
-
-    // Unhook custom events
-    this.textboxFocusEvent.unsubscribeAll();
-    this.textboxKeyEvent.unsubscribeAll();
-    this.dataRequestEvent.unsubscribeAll();
-    this.dataReturnEvent.unsubscribeAll();
-    this.dataErrorEvent.unsubscribeAll();
-    this.containerExpandEvent.unsubscribeAll();
-    this.typeAheadEvent.unsubscribeAll();
-    this.itemMouseOverEvent.unsubscribeAll();
-    this.itemMouseOutEvent.unsubscribeAll();
-    this.itemArrowToEvent.unsubscribeAll();
-    this.itemArrowFromEvent.unsubscribeAll();
-    this.itemSelectEvent.unsubscribeAll();
-    this.unmatchedItemSelectEvent.unsubscribeAll();
-    this.selectionEnforceEvent.unsubscribeAll();
-    this.containerCollapseEvent.unsubscribeAll();
-    this.textboxBlurEvent.unsubscribeAll();
-
-    // Unhook DOM events
-    YAHOO.util.Event.purgeElement(elInput, true);
-    YAHOO.util.Event.purgeElement(elContainer, true);
-
-    // Remove DOM elements
-    elContainer.innerHTML = "";
-
-    // Null out objects
-    for(var key in this) {
-        if(YAHOO.lang.hasOwnProperty(this, key)) {
-            this[key] = null;
-        }
-    }
-
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Fired when the input field receives focus.
- *
- * @event textboxFocusEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.textboxFocusEvent = null;
-
-/**
- * Fired when the input field receives key input.
- *
- * @event textboxKeyEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param nKeycode {Number} The keycode number.
- */
-YAHOO.widget.AutoComplete.prototype.textboxKeyEvent = null;
-
-/**
- * Fired when the AutoComplete instance makes a query to the DataSource.
- * 
- * @event dataRequestEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.AutoComplete.prototype.dataRequestEvent = null;
-
-/**
- * Fired when the AutoComplete instance receives query results from the data
- * source.
- *
- * @event dataReturnEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Results array.
- */
-YAHOO.widget.AutoComplete.prototype.dataReturnEvent = null;
-
-/**
- * Fired when the AutoComplete instance does not receive query results from the
- * DataSource due to an error.
- *
- * @event dataErrorEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.AutoComplete.prototype.dataErrorEvent = null;
-
-/**
- * Fired when the results container is expanded.
- *
- * @event containerExpandEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.containerExpandEvent = null;
-
-/**
- * Fired when the input field has been prefilled by the type-ahead
- * feature. 
- *
- * @event typeAheadEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param sQuery {String} The query string.
- * @param sPrefill {String} The prefill string.
- */
-YAHOO.widget.AutoComplete.prototype.typeAheadEvent = null;
-
-/**
- * Fired when result item has been moused over.
- *
- * @event itemMouseOverEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The &lt;li&gt element item moused to.
- */
-YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent = null;
-
-/**
- * Fired when result item has been moused out.
- *
- * @event itemMouseOutEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The &lt;li&gt; element item moused from.
- */
-YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent = null;
-
-/**
- * Fired when result item has been arrowed to. 
- *
- * @event itemArrowToEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The &lt;li&gt; element item arrowed to.
- */
-YAHOO.widget.AutoComplete.prototype.itemArrowToEvent = null;
-
-/**
- * Fired when result item has been arrowed away from.
- *
- * @event itemArrowFromEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The &lt;li&gt; element item arrowed from.
- */
-YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent = null;
-
-/**
- * Fired when an item is selected via mouse click, ENTER key, or TAB key.
- *
- * @event itemSelectEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @param elItem {HTMLElement} The selected &lt;li&gt; element item.
- * @param oData {Object} The data returned for the item, either as an object,
- * or mapped from the schema into an array.
- */
-YAHOO.widget.AutoComplete.prototype.itemSelectEvent = null;
-
-/**
- * Fired when a user selection does not match any of the displayed result items.
- *
- * @event unmatchedItemSelectEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent = null;
-
-/**
- * Fired if forceSelection is enabled and the user's input has been cleared
- * because it did not match one of the returned query results.
- *
- * @event selectionEnforceEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent = null;
-
-/**
- * Fired when the results container is collapsed.
- *
- * @event containerCollapseEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.containerCollapseEvent = null;
-
-/**
- * Fired when the input field loses focus.
- *
- * @event textboxBlurEvent
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- */
-YAHOO.widget.AutoComplete.prototype.textboxBlurEvent = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple AutoComplete instances.
- *
- * @property _nIndex
- * @type Number
- * @default 0
- * @private
- */
-YAHOO.widget.AutoComplete._nIndex = 0;
-
-/**
- * Name of AutoComplete instance.
- *
- * @property _sName
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sName = null;
-
-/**
- * Text input field DOM element.
- *
- * @property _elTextbox
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elTextbox = null;
-
-/**
- * Container DOM element.
- *
- * @property _elContainer
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elContainer = null;
-
-/**
- * Reference to content element within container element.
- *
- * @property _elContent
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elContent = null;
-
-/**
- * Reference to header element within content element.
- *
- * @property _elHeader
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elHeader = null;
-
-/**
- * Reference to body element within content element.
- *
- * @property _elBody
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elBody = null;
-
-/**
- * Reference to footer element within content element.
- *
- * @property _elFooter
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elFooter = null;
-
-/**
- * Reference to shadow element within container element.
- *
- * @property _elShadow
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elShadow = null;
-
-/**
- * Reference to iframe element within container element.
- *
- * @property _elIFrame
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._elIFrame = null;
-
-/**
- * Whether or not the input field is currently in focus. If query results come back
- * but the user has already moved on, do not proceed with auto complete behavior.
- *
- * @property _bFocused
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bFocused = true;
-
-/**
- * Animation instance for container expand/collapse.
- *
- * @property _oAnim
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oAnim = null;
-
-/**
- * Whether or not the results container is currently open.
- *
- * @property _bContainerOpen
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bContainerOpen = false;
-
-/**
- * Whether or not the mouse is currently over the results
- * container. This is necessary in order to prevent clicks on container items
- * from being text input field blur events.
- *
- * @property _bOverContainer
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bOverContainer = false;
-
-/**
- * Array of &lt;li&gt; elements references that contain query results within the
- * results container.
- *
- * @property _aListItems
- * @type HTMLElement[]
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._aListItems = null;
-
-/**
- * Number of &lt;li&gt; elements currently displayed in results container.
- *
- * @property _nDisplayedItems
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nDisplayedItems = 0;
-
-/**
- * Internal count of &lt;li&gt; elements displayed and hidden in results container.
- *
- * @property _maxResultsDisplayed
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._maxResultsDisplayed = 0;
-
-/**
- * Current query string
- *
- * @property _sCurQuery
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sCurQuery = null;
-
-/**
- * Past queries this session (for saving delimited queries).
- *
- * @property _sSavedQuery
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sSavedQuery = null;
-
-/**
- * Pointer to the currently highlighted &lt;li&gt; element in the container.
- *
- * @property _oCurItem
- * @type HTMLElement
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._oCurItem = null;
-
-/**
- * Whether or not an item has been selected since the container was populated
- * with results. Reset to false by _populateList, and set to true when item is
- * selected.
- *
- * @property _bItemSelected
- * @type Boolean
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._bItemSelected = false;
-
-/**
- * Key code of the last key pressed in textbox.
- *
- * @property _nKeyCode
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nKeyCode = null;
-
-/**
- * Delay timeout ID.
- *
- * @property _nDelayID
- * @type Number
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._nDelayID = -1;
-
-/**
- * Src to iFrame used when useIFrame = true. Supports implementations over SSL
- * as well.
- *
- * @property _iFrameSrc
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._iFrameSrc = "javascript:false;";
-
-/**
- * For users typing via certain IMEs, queries must be triggered by intervals,
- * since key events yet supported across all browsers for all IMEs.
- *
- * @property _queryInterval
- * @type Object
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._queryInterval = null;
-
-/**
- * Internal tracker to last known textbox value, used to determine whether or not
- * to trigger a query via interval for certain IME users.
- *
- * @event _sLastTextboxValue
- * @type String
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sLastTextboxValue = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Updates and validates latest public config properties.
- *
- * @method __initProps
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initProps = function() {
-    // Correct any invalid values
-    var minQueryLength = this.minQueryLength;
-    if(!YAHOO.lang.isNumber(minQueryLength)) {
-        this.minQueryLength = 1;
-    }
-    var maxResultsDisplayed = this.maxResultsDisplayed;
-    if(!YAHOO.lang.isNumber(maxResultsDisplayed) || (maxResultsDisplayed < 1)) {
-        this.maxResultsDisplayed = 10;
-    }
-    var queryDelay = this.queryDelay;
-    if(!YAHOO.lang.isNumber(queryDelay) || (queryDelay < 0)) {
-        this.queryDelay = 0.2;
-    }
-    var delimChar = this.delimChar;
-    if(YAHOO.lang.isString(delimChar) && (delimChar.length > 0)) {
-        this.delimChar = [delimChar];
-    }
-    else if(!YAHOO.lang.isArray(delimChar)) {
-        this.delimChar = null;
-    }
-    var animSpeed = this.animSpeed;
-    if((this.animHoriz || this.animVert) && YAHOO.util.Anim) {
-        if(!YAHOO.lang.isNumber(animSpeed) || (animSpeed < 0)) {
-            this.animSpeed = 0.3;
-        }
-        if(!this._oAnim ) {
-            this._oAnim = new YAHOO.util.Anim(this._elContent, {}, this.animSpeed);
-        }
-        else {
-            this._oAnim.duration = this.animSpeed;
-        }
-    }
-    if(this.forceSelection && delimChar) {
-    }
-};
-
-/**
- * Initializes the results container helpers if they are enabled and do
- * not exist
- *
- * @method _initContainerHelpers
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initContainerHelpers = function() {
-    if(this.useShadow && !this._elShadow) {
-        var elShadow = document.createElement("div");
-        elShadow.className = "yui-ac-shadow";
-        this._elShadow = this._elContainer.appendChild(elShadow);
-    }
-    if(this.useIFrame && !this._elIFrame) {
-        var elIFrame = document.createElement("iframe");
-        elIFrame.src = this._iFrameSrc;
-        elIFrame.frameBorder = 0;
-        elIFrame.scrolling = "no";
-        elIFrame.style.position = "absolute";
-        elIFrame.style.width = "100%";
-        elIFrame.style.height = "100%";
-        elIFrame.tabIndex = -1;
-        this._elIFrame = this._elContainer.appendChild(elIFrame);
-    }
-};
-
-/**
- * Initializes the results container once at object creation
- *
- * @method _initContainer
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initContainer = function() {
-    YAHOO.util.Dom.addClass(this._elContainer, "yui-ac-container");
-    
-    if(!this._elContent) {
-        // The elContent div helps size the iframe and shadow properly
-        var elContent = document.createElement("div");
-        elContent.className = "yui-ac-content";
-        elContent.style.display = "none";
-        this._elContent = this._elContainer.appendChild(elContent);
-
-        var elHeader = document.createElement("div");
-        elHeader.className = "yui-ac-hd";
-        elHeader.style.display = "none";
-        this._elHeader = this._elContent.appendChild(elHeader);
-
-        var elBody = document.createElement("div");
-        elBody.className = "yui-ac-bd";
-        this._elBody = this._elContent.appendChild(elBody);
-
-        var elFooter = document.createElement("div");
-        elFooter.className = "yui-ac-ft";
-        elFooter.style.display = "none";
-        this._elFooter = this._elContent.appendChild(elFooter);
-    }
-    else {
-    }
-};
-
-/**
- * Clears out contents of container body and creates up to
- * YAHOO.widget.AutoComplete#maxResultsDisplayed &lt;li&gt; elements in an
- * &lt;ul&gt; element.
- *
- * @method _initList
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initList = function() {
-    this._aListItems = [];
-    while(this._elBody.hasChildNodes()) {
-        var oldListItems = this.getListItems();
-        if(oldListItems) {
-            for(var oldi = oldListItems.length-1; oldi >= 0; oldi--) {
-                oldListItems[oldi] = null;
-            }
-        }
-        this._elBody.innerHTML = "";
-    }
-
-    var oList = document.createElement("ul");
-    oList = this._elBody.appendChild(oList);
-    for(var i=0; i<this.maxResultsDisplayed; i++) {
-        var oItem = document.createElement("li");
-        oItem = oList.appendChild(oItem);
-        this._aListItems[i] = oItem;
-        this._initListItem(oItem, i);
-    }
-    this._maxResultsDisplayed = this.maxResultsDisplayed;
-};
-
-/**
- * Initializes each &lt;li&gt; element in the container list.
- *
- * @method _initListItem
- * @param oItem {HTMLElement} The &lt;li&gt; DOM element.
- * @param nItemIndex {Number} The index of the element.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._initListItem = function(oItem, nItemIndex) {
-    var oSelf = this;
-    oItem.style.display = "none";
-    oItem._nItemIndex = nItemIndex;
-
-    oItem.mouseover = oItem.mouseout = oItem.onclick = null;
-    YAHOO.util.Event.addListener(oItem,"mouseover",oSelf._onItemMouseover,oSelf);
-    YAHOO.util.Event.addListener(oItem,"mouseout",oSelf._onItemMouseout,oSelf);
-    YAHOO.util.Event.addListener(oItem,"click",oSelf._onItemMouseclick,oSelf);
-};
-
-/**
- * Enables interval detection for  Korean IME support.
- *
- * @method _onIMEDetected
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onIMEDetected = function(oSelf) {
-    oSelf._enableIntervalDetection();
-};
-
-/**
- * Enables query triggers based on text input detection by intervals (rather
- * than by key events).
- *
- * @method _enableIntervalDetection
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._enableIntervalDetection = function() {
-    var currValue = this._elTextbox.value;
-    var lastValue = this._sLastTextboxValue;
-    if(currValue != lastValue) {
-        this._sLastTextboxValue = currValue;
-        this._sendQuery(currValue);
-    }
-};
-
-
-/**
- * Cancels text input detection by intervals.
- *
- * @method _cancelIntervalDetection
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._cancelIntervalDetection = function(oSelf) {
-    if(oSelf._queryInterval) {
-        clearInterval(oSelf._queryInterval);
-    }
-};
-
-
-/**
- * Whether or not key is functional or should be ignored. Note that the right
- * arrow key is NOT an ignored key since it triggers queries for certain intl
- * charsets.
- *
- * @method _isIgnoreKey
- * @param nKeycode {Number} Code of key pressed.
- * @return {Boolean} True if key should be ignored, false otherwise.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._isIgnoreKey = function(nKeyCode) {
-    if((nKeyCode == 9) || (nKeyCode == 13)  || // tab, enter
-            (nKeyCode == 16) || (nKeyCode == 17) || // shift, ctl
-            (nKeyCode >= 18 && nKeyCode <= 20) || // alt,pause/break,caps lock
-            (nKeyCode == 27) || // esc
-            (nKeyCode >= 33 && nKeyCode <= 35) || // page up,page down,end
-            /*(nKeyCode >= 36 && nKeyCode <= 38) || // home,left,up
-            (nKeyCode == 40) || // down*/
-            (nKeyCode >= 36 && nKeyCode <= 40) || // home,left,up, right, down
-            (nKeyCode >= 44 && nKeyCode <= 45)) { // print screen,insert
-        return true;
-    }
-    return false;
-};
-
-/**
- * Makes query request to the DataSource.
- *
- * @method _sendQuery
- * @param sQuery {String} Query string.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._sendQuery = function(sQuery) {
-    // Widget has been effectively turned off
-    if(this.minQueryLength == -1) {
-        this._toggleContainer(false);
-        return;
-    }
-    // Delimiter has been enabled
-    var aDelimChar = (this.delimChar) ? this.delimChar : null;
-    if(aDelimChar) {
-        // Loop through all possible delimiters and find the latest one
-        // A " " may be a false positive if they are defined as delimiters AND
-        // are used to separate delimited queries
-        var nDelimIndex = -1;
-        for(var i = aDelimChar.length-1; i >= 0; i--) {
-            var nNewIndex = sQuery.lastIndexOf(aDelimChar[i]);
-            if(nNewIndex > nDelimIndex) {
-                nDelimIndex = nNewIndex;
-            }
-        }
-        // If we think the last delimiter is a space (" "), make sure it is NOT
-        // a false positive by also checking the char directly before it
-        if(aDelimChar[i] == " ") {
-            for (var j = aDelimChar.length-1; j >= 0; j--) {
-                if(sQuery[nDelimIndex - 1] == aDelimChar[j]) {
-                    nDelimIndex--;
-                    break;
-                }
-            }
-        }
-        // A delimiter has been found so extract the latest query
-        if(nDelimIndex > -1) {
-            var nQueryStart = nDelimIndex + 1;
-            // Trim any white space from the beginning...
-            while(sQuery.charAt(nQueryStart) == " ") {
-                nQueryStart += 1;
-            }
-            // ...and save the rest of the string for later
-            this._sSavedQuery = sQuery.substring(0,nQueryStart);
-            // Here is the query itself
-            sQuery = sQuery.substr(nQueryStart);
-        }
-        else if(sQuery.indexOf(this._sSavedQuery) < 0){
-            this._sSavedQuery = null;
-        }
-    }
-
-    // Don't search queries that are too short
-    if((sQuery && (sQuery.length < this.minQueryLength)) || (!sQuery && this.minQueryLength > 0)) {
-        if(this._nDelayID != -1) {
-            clearTimeout(this._nDelayID);
-        }
-        this._toggleContainer(false);
-        return;
-    }
-
-    sQuery = encodeURIComponent(sQuery);
-    this._nDelayID = -1;    // Reset timeout ID because request has been made
-    sQuery = this.doBeforeSendQuery(sQuery);
-    this.dataRequestEvent.fire(this, sQuery);
-    this.dataSource.getResults(this._populateList, sQuery, this);
-};
-
-/**
- * Populates the array of &lt;li&gt; elements in the container with query
- * results. This method is passed to YAHOO.widget.DataSource#getResults as a
- * callback function so results from the DataSource instance are returned to the
- * AutoComplete instance.
- *
- * @method _populateList
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} An array of query result objects from the DataSource.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._populateList = function(sQuery, aResults, oSelf) {
-    if(aResults === null) {
-        oSelf.dataErrorEvent.fire(oSelf, sQuery);
-    }
-    if(!oSelf._bFocused || !aResults) {
-        return;
-    }
-
-    var isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") != -1);
-    var contentStyle = oSelf._elContent.style;
-    contentStyle.width = (!isOpera) ? null : "";
-    contentStyle.height = (!isOpera) ? null : "";
-
-    var sCurQuery = decodeURIComponent(sQuery);
-    oSelf._sCurQuery = sCurQuery;
-    oSelf._bItemSelected = false;
-
-    if(oSelf._maxResultsDisplayed != oSelf.maxResultsDisplayed) {
-        oSelf._initList();
-    }
-
-    var nItems = Math.min(aResults.length,oSelf.maxResultsDisplayed);
-    oSelf._nDisplayedItems = nItems;
-    if(nItems > 0) {
-        oSelf._initContainerHelpers();
-        var aItems = oSelf._aListItems;
-
-        // Fill items with data
-        for(var i = nItems-1; i >= 0; i--) {
-            var oItemi = aItems[i];
-            var oResultItemi = aResults[i];
-            oItemi.innerHTML = oSelf.formatResult(oResultItemi, sCurQuery);
-            oItemi.style.display = "list-item";
-            oItemi._sResultKey = oResultItemi[0];
-            oItemi._oResultData = oResultItemi;
-
-        }
-
-        // Empty out remaining items if any
-        for(var j = aItems.length-1; j >= nItems ; j--) {
-            var oItemj = aItems[j];
-            oItemj.innerHTML = null;
-            oItemj.style.display = "none";
-            oItemj._sResultKey = null;
-            oItemj._oResultData = null;
-        }
-
-        // Expand the container
-        var ok = oSelf.doBeforeExpandContainer(oSelf._elTextbox, oSelf._elContainer, sQuery, aResults);
-        oSelf._toggleContainer(ok);
-        
-        if(oSelf.autoHighlight) {
-            // Go to the first item
-            var oFirstItem = aItems[0];
-            oSelf._toggleHighlight(oFirstItem,"to");
-            oSelf.itemArrowToEvent.fire(oSelf, oFirstItem);
-            oSelf._typeAhead(oFirstItem,sQuery);
-        }
-        else {
-            oSelf._oCurItem = null;
-        }
-    }
-    else {
-        oSelf._toggleContainer(false);
-    }
-    oSelf.dataReturnEvent.fire(oSelf, sQuery, aResults);
-    
-};
-
-/**
- * When forceSelection is true and the user attempts
- * leave the text input box without selecting an item from the query results,
- * the user selection is cleared.
- *
- * @method _clearSelection
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._clearSelection = function() {
-    var sValue = this._elTextbox.value;
-    var sChar = (this.delimChar) ? this.delimChar[0] : null;
-    var nIndex = (sChar) ? sValue.lastIndexOf(sChar, sValue.length-2) : -1;
-    if(nIndex > -1) {
-        this._elTextbox.value = sValue.substring(0,nIndex);
-    }
-    else {
-         this._elTextbox.value = "";
-    }
-    this._sSavedQuery = this._elTextbox.value;
-
-    // Fire custom event
-    this.selectionEnforceEvent.fire(this);
-};
-
-/**
- * Whether or not user-typed value in the text input box matches any of the
- * query results.
- *
- * @method _textMatchesOption
- * @return {HTMLElement} Matching list item element if user-input text matches
- * a result, null otherwise.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._textMatchesOption = function() {
-    var foundMatch = null;
-
-    for(var i = this._nDisplayedItems-1; i >= 0 ; i--) {
-        var oItem = this._aListItems[i];
-        var sMatch = oItem._sResultKey.toLowerCase();
-        if(sMatch == this._sCurQuery.toLowerCase()) {
-            foundMatch = oItem;
-            break;
-        }
-    }
-    return(foundMatch);
-};
-
-/**
- * Updates in the text input box with the first query result as the user types,
- * selecting the substring that the user has not typed.
- *
- * @method _typeAhead
- * @param oItem {HTMLElement} The &lt;li&gt; element item whose data populates the input field.
- * @param sQuery {String} Query string.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._typeAhead = function(oItem, sQuery) {
-    // Don't update if turned off
-    if(!this.typeAhead || (this._nKeyCode == 8)) {
-        return;
-    }
-
-    var elTextbox = this._elTextbox;
-    var sValue = this._elTextbox.value; // any saved queries plus what user has typed
-
-    // Don't update with type-ahead if text selection is not supported
-    if(!elTextbox.setSelectionRange && !elTextbox.createTextRange) {
-        return;
-    }
-
-    // Select the portion of text that the user has not typed
-    var nStart = sValue.length;
-    this._updateValue(oItem);
-    var nEnd = elTextbox.value.length;
-    this._selectText(elTextbox,nStart,nEnd);
-    var sPrefill = elTextbox.value.substr(nStart,nEnd);
-    this.typeAheadEvent.fire(this,sQuery,sPrefill);
-};
-
-/**
- * Selects text in the input field.
- *
- * @method _selectText
- * @param elTextbox {HTMLElement} Text input box element in which to select text.
- * @param nStart {Number} Starting index of text string to select.
- * @param nEnd {Number} Ending index of text selection.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._selectText = function(elTextbox, nStart, nEnd) {
-    if(elTextbox.setSelectionRange) { // For Mozilla
-        elTextbox.setSelectionRange(nStart,nEnd);
-    }
-    else if(elTextbox.createTextRange) { // For IE
-        var oTextRange = elTextbox.createTextRange();
-        oTextRange.moveStart("character", nStart);
-        oTextRange.moveEnd("character", nEnd-elTextbox.value.length);
-        oTextRange.select();
-    }
-    else {
-        elTextbox.select();
-    }
-};
-
-/**
- * Syncs results container with its helpers.
- *
- * @method _toggleContainerHelpers
- * @param bShow {Boolean} True if container is expanded, false if collapsed
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers = function(bShow) {
-    var bFireEvent = false;
-    var width = this._elContent.offsetWidth + "px";
-    var height = this._elContent.offsetHeight + "px";
-
-    if(this.useIFrame && this._elIFrame) {
-        bFireEvent = true;
-        if(bShow) {
-            this._elIFrame.style.width = width;
-            this._elIFrame.style.height = height;
-        }
-        else {
-            this._elIFrame.style.width = 0;
-            this._elIFrame.style.height = 0;
-        }
-    }
-    if(this.useShadow && this._elShadow) {
-        bFireEvent = true;
-        if(bShow) {
-            this._elShadow.style.width = width;
-            this._elShadow.style.height = height;
-        }
-        else {
-           this._elShadow.style.width = 0;
-            this._elShadow.style.height = 0;
-        }
-    }
-};
-
-/**
- * Animates expansion or collapse of the container.
- *
- * @method _toggleContainer
- * @param bShow {Boolean} True if container should be expanded, false if container should be collapsed
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleContainer = function(bShow) {
-    var elContainer = this._elContainer;
-
-    // Implementer has container always open so don't mess with it
-    if(this.alwaysShowContainer && this._bContainerOpen) {
-        return;
-    }
-    
-    // Clear contents of container
-    if(!bShow) {
-        this._elContent.scrollTop = 0;
-        var aItems = this._aListItems;
-
-        if(aItems && (aItems.length > 0)) {
-            for(var i = aItems.length-1; i >= 0 ; i--) {
-                aItems[i].style.display = "none";
-            }
-        }
-
-        if(this._oCurItem) {
-            this._toggleHighlight(this._oCurItem,"from");
-        }
-
-        this._oCurItem = null;
-        this._nDisplayedItems = 0;
-        this._sCurQuery = null;
-    }
-
-    // Container is already closed
-    if(!bShow && !this._bContainerOpen) {
-        this._elContent.style.display = "none";
-        return;
-    }
-
-    // If animation is enabled...
-    var oAnim = this._oAnim;
-    if(oAnim && oAnim.getEl() && (this.animHoriz || this.animVert)) {
-        // If helpers need to be collapsed, do it right away...
-        // but if helpers need to be expanded, wait until after the container expands
-        if(!bShow) {
-            this._toggleContainerHelpers(bShow);
-        }
-
-        if(oAnim.isAnimated()) {
-            oAnim.stop();
-        }
-
-        // Clone container to grab current size offscreen
-        var oClone = this._elContent.cloneNode(true);
-        elContainer.appendChild(oClone);
-        oClone.style.top = "-9000px";
-        oClone.style.display = "block";
-
-        // Current size of the container is the EXPANDED size
-        var wExp = oClone.offsetWidth;
-        var hExp = oClone.offsetHeight;
-
-        // Calculate COLLAPSED sizes based on horiz and vert anim
-        var wColl = (this.animHoriz) ? 0 : wExp;
-        var hColl = (this.animVert) ? 0 : hExp;
-
-        // Set animation sizes
-        oAnim.attributes = (bShow) ?
-            {width: { to: wExp }, height: { to: hExp }} :
-            {width: { to: wColl}, height: { to: hColl }};
-
-        // If opening anew, set to a collapsed size...
-        if(bShow && !this._bContainerOpen) {
-            this._elContent.style.width = wColl+"px";
-            this._elContent.style.height = hColl+"px";
-        }
-        // Else, set it to its last known size.
-        else {
-            this._elContent.style.width = wExp+"px";
-            this._elContent.style.height = hExp+"px";
-        }
-
-        elContainer.removeChild(oClone);
-        oClone = null;
-
-       var oSelf = this;
-       var onAnimComplete = function() {
-            // Finish the collapse
-               oAnim.onComplete.unsubscribeAll();
-
-            if(bShow) {
-                oSelf.containerExpandEvent.fire(oSelf);
-            }
-            else {
-                oSelf._elContent.style.display = "none";
-                oSelf.containerCollapseEvent.fire(oSelf);
-            }
-            oSelf._toggleContainerHelpers(bShow);
-       };
-
-        // Display container and animate it
-        this._elContent.style.display = "block";
-        oAnim.onComplete.subscribe(onAnimComplete);
-        oAnim.animate();
-        this._bContainerOpen = bShow;
-    }
-    // Else don't animate, just show or hide
-    else {
-        if(bShow) {
-            this._elContent.style.display = "block";
-            this.containerExpandEvent.fire(this);
-        }
-        else {
-            this._elContent.style.display = "none";
-            this.containerCollapseEvent.fire(this);
-        }
-        this._toggleContainerHelpers(bShow);
-        this._bContainerOpen = bShow;
-   }
-
-};
-
-/**
- * Toggles the highlight on or off for an item in the container, and also cleans
- * up highlighting of any previous item.
- *
- * @method _toggleHighlight
- * @param oNewItem {HTMLElement} The &lt;li&gt; element item to receive highlight behavior.
- * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._toggleHighlight = function(oNewItem, sType) {
-    var sHighlight = this.highlightClassName;
-    if(this._oCurItem) {
-        // Remove highlight from old item
-        YAHOO.util.Dom.removeClass(this._oCurItem, sHighlight);
-    }
-
-    if((sType == "to") && sHighlight) {
-        // Apply highlight to new item
-        YAHOO.util.Dom.addClass(oNewItem, sHighlight);
-        this._oCurItem = oNewItem;
-    }
-};
-
-/**
- * Toggles the pre-highlight on or off for an item in the container.
- *
- * @method _togglePrehighlight
- * @param oNewItem {HTMLElement} The &lt;li&gt; element item to receive highlight behavior.
- * @param sType {String} Type "mouseover" will toggle highlight on, and "mouseout" will toggle highlight off.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._togglePrehighlight = function(oNewItem, sType) {
-    if(oNewItem == this._oCurItem) {
-        return;
-    }
-
-    var sPrehighlight = this.prehighlightClassName;
-    if((sType == "mouseover") && sPrehighlight) {
-        // Apply prehighlight to new item
-        YAHOO.util.Dom.addClass(oNewItem, sPrehighlight);
-    }
-    else {
-        // Remove prehighlight from old item
-        YAHOO.util.Dom.removeClass(oNewItem, sPrehighlight);
-    }
-};
-
-/**
- * Updates the text input box value with selected query result. If a delimiter
- * has been defined, then the value gets appended with the delimiter.
- *
- * @method _updateValue
- * @param oItem {HTMLElement} The &lt;li&gt; element item with which to update the value.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._updateValue = function(oItem) {
-    var elTextbox = this._elTextbox;
-    var sDelimChar = (this.delimChar) ? (this.delimChar[0] || this.delimChar) : null;
-    var sSavedQuery = this._sSavedQuery;
-    var sResultKey = oItem._sResultKey;
-    elTextbox.focus();
-
-    // First clear text field
-    elTextbox.value = "";
-    // Grab data to put into text field
-    if(sDelimChar) {
-        if(sSavedQuery) {
-            elTextbox.value = sSavedQuery;
-        }
-        elTextbox.value += sResultKey + sDelimChar;
-        if(sDelimChar != " ") {
-            elTextbox.value += " ";
-        }
-    }
-    else { elTextbox.value = sResultKey; }
-
-    // scroll to bottom of textarea if necessary
-    if(elTextbox.type == "textarea") {
-        elTextbox.scrollTop = elTextbox.scrollHeight;
-    }
-
-    // move cursor to end
-    var end = elTextbox.value.length;
-    this._selectText(elTextbox,end,end);
-
-    this._oCurItem = oItem;
-};
-
-/**
- * Selects a result item from the container
- *
- * @method _selectItem
- * @param oItem {HTMLElement} The selected &lt;li&gt; element item.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._selectItem = function(oItem) {
-    this._bItemSelected = true;
-    this._updateValue(oItem);
-    this._cancelIntervalDetection(this);
-    this.itemSelectEvent.fire(this, oItem, oItem._oResultData);
-    this._toggleContainer(false);
-};
-
-/**
- * If an item is highlighted in the container, the right arrow key jumps to the
- * end of the textbox and selects the highlighted item, otherwise the container
- * is closed.
- *
- * @method _jumpSelection
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._jumpSelection = function() {
-    if(this._oCurItem) {
-        this._selectItem(this._oCurItem);
-    }
-    else {
-        this._toggleContainer(false);
-    }
-};
-
-/**
- * Triggered by up and down arrow keys, changes the current highlighted
- * &lt;li&gt; element item. Scrolls container if necessary.
- *
- * @method _moveSelection
- * @param nKeyCode {Number} Code of key pressed.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._moveSelection = function(nKeyCode) {
-    if(this._bContainerOpen) {
-        // Determine current item's id number
-        var oCurItem = this._oCurItem;
-        var nCurItemIndex = -1;
-
-        if(oCurItem) {
-            nCurItemIndex = oCurItem._nItemIndex;
-        }
-
-        var nNewItemIndex = (nKeyCode == 40) ?
-                (nCurItemIndex + 1) : (nCurItemIndex - 1);
-
-        // Out of bounds
-        if(nNewItemIndex < -2 || nNewItemIndex >= this._nDisplayedItems) {
-            return;
-        }
-
-        if(oCurItem) {
-            // Unhighlight current item
-            this._toggleHighlight(oCurItem, "from");
-            this.itemArrowFromEvent.fire(this, oCurItem);
-        }
-        if(nNewItemIndex == -1) {
-           // Go back to query (remove type-ahead string)
-            if(this.delimChar && this._sSavedQuery) {
-                if(!this._textMatchesOption()) {
-                    this._elTextbox.value = this._sSavedQuery;
-                }
-                else {
-                    this._elTextbox.value = this._sSavedQuery + this._sCurQuery;
-                }
-            }
-            else {
-                this._elTextbox.value = this._sCurQuery;
-            }
-            this._oCurItem = null;
-            return;
-        }
-        if(nNewItemIndex == -2) {
-            // Close container
-            this._toggleContainer(false);
-            return;
-        }
-
-        var oNewItem = this._aListItems[nNewItemIndex];
-
-        // Scroll the container if necessary
-        var elContent = this._elContent;
-        var scrollOn = ((YAHOO.util.Dom.getStyle(elContent,"overflow") == "auto") ||
-            (YAHOO.util.Dom.getStyle(elContent,"overflowY") == "auto"));
-        if(scrollOn && (nNewItemIndex > -1) &&
-        (nNewItemIndex < this._nDisplayedItems)) {
-            // User is keying down
-            if(nKeyCode == 40) {
-                // Bottom of selected item is below scroll area...
-                if((oNewItem.offsetTop+oNewItem.offsetHeight) > (elContent.scrollTop + elContent.offsetHeight)) {
-                    // Set bottom of scroll area to bottom of selected item
-                    elContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - elContent.offsetHeight;
-                }
-                // Bottom of selected item is above scroll area...
-                else if((oNewItem.offsetTop+oNewItem.offsetHeight) < elContent.scrollTop) {
-                    // Set top of selected item to top of scroll area
-                    elContent.scrollTop = oNewItem.offsetTop;
-
-                }
-            }
-            // User is keying up
-            else {
-                // Top of selected item is above scroll area
-                if(oNewItem.offsetTop < elContent.scrollTop) {
-                    // Set top of scroll area to top of selected item
-                    this._elContent.scrollTop = oNewItem.offsetTop;
-                }
-                // Top of selected item is below scroll area
-                else if(oNewItem.offsetTop > (elContent.scrollTop + elContent.offsetHeight)) {
-                    // Set bottom of selected item to bottom of scroll area
-                    this._elContent.scrollTop = (oNewItem.offsetTop+oNewItem.offsetHeight) - elContent.offsetHeight;
-                }
-            }
-        }
-
-        this._toggleHighlight(oNewItem, "to");
-        this.itemArrowToEvent.fire(this, oNewItem);
-        if(this.typeAhead) {
-            this._updateValue(oNewItem);
-        }
-    }
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private event handlers
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Handles &lt;li&gt; element mouseover events in the container.
- *
- * @method _onItemMouseover
- * @param v {HTMLEvent} The mouseover event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseover = function(v,oSelf) {
-    if(oSelf.prehighlightClassName) {
-        oSelf._togglePrehighlight(this,"mouseover");
-    }
-    else {
-        oSelf._toggleHighlight(this,"to");
-    }
-
-    oSelf.itemMouseOverEvent.fire(oSelf, this);
-};
-
-/**
- * Handles &lt;li&gt; element mouseout events in the container.
- *
- * @method _onItemMouseout
- * @param v {HTMLEvent} The mouseout event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseout = function(v,oSelf) {
-    if(oSelf.prehighlightClassName) {
-        oSelf._togglePrehighlight(this,"mouseout");
-    }
-    else {
-        oSelf._toggleHighlight(this,"from");
-    }
-
-    oSelf.itemMouseOutEvent.fire(oSelf, this);
-};
-
-/**
- * Handles &lt;li&gt; element click events in the container.
- *
- * @method _onItemMouseclick
- * @param v {HTMLEvent} The click event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onItemMouseclick = function(v,oSelf) {
-    // In case item has not been moused over
-    oSelf._toggleHighlight(this,"to");
-    oSelf._selectItem(this);
-};
-
-/**
- * Handles container mouseover events.
- *
- * @method _onContainerMouseover
- * @param v {HTMLEvent} The mouseover event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerMouseover = function(v,oSelf) {
-    oSelf._bOverContainer = true;
-};
-
-/**
- * Handles container mouseout events.
- *
- * @method _onContainerMouseout
- * @param v {HTMLEvent} The mouseout event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerMouseout = function(v,oSelf) {
-    oSelf._bOverContainer = false;
-    // If container is still active
-    if(oSelf._oCurItem) {
-        oSelf._toggleHighlight(oSelf._oCurItem,"to");
-    }
-};
-
-/**
- * Handles container scroll events.
- *
- * @method _onContainerScroll
- * @param v {HTMLEvent} The scroll event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerScroll = function(v,oSelf) {
-    oSelf._elTextbox.focus();
-};
-
-/**
- * Handles container resize events.
- *
- * @method _onContainerResize
- * @param v {HTMLEvent} The resize event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onContainerResize = function(v,oSelf) {
-    oSelf._toggleContainerHelpers(oSelf._bContainerOpen);
-};
-
-
-/**
- * Handles textbox keydown events of functional keys, mainly for UI behavior.
- *
- * @method _onTextboxKeyDown
- * @param v {HTMLEvent} The keydown event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown = function(v,oSelf) {
-    var nKeyCode = v.keyCode;
-
-    switch (nKeyCode) {
-        case 9: // tab
-            // select an item or clear out
-            if(oSelf._oCurItem) {
-                if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) {
-                    if(oSelf._bContainerOpen) {
-                        YAHOO.util.Event.stopEvent(v);
-                    }
-                }
-                oSelf._selectItem(oSelf._oCurItem);
-            }
-            else {
-                oSelf._toggleContainer(false);
-            }
-            break;
-        case 13: // enter
-            if(!YAHOO.env.ua.webkit) {
-                if(oSelf._oCurItem) {
-                    if(oSelf._nKeyCode != nKeyCode) {
-                        if(oSelf._bContainerOpen) {
-                            YAHOO.util.Event.stopEvent(v);
-                        }
-                    }
-                    oSelf._selectItem(oSelf._oCurItem);
-                }
-                else {
-                    oSelf._toggleContainer(false);
-                }
-            }
-            break;
-        case 27: // esc
-            oSelf._toggleContainer(false);
-            return;
-        case 39: // right
-            oSelf._jumpSelection();
-            break;
-        case 38: // up
-            YAHOO.util.Event.stopEvent(v);
-            oSelf._moveSelection(nKeyCode);
-            break;
-        case 40: // down
-            YAHOO.util.Event.stopEvent(v);
-            oSelf._moveSelection(nKeyCode);
-            break;
-        default:
-            break;
-    }
-};
-
-/**
- * Handles textbox keypress events.
- * @method _onTextboxKeyPress
- * @param v {HTMLEvent} The keypress event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress = function(v,oSelf) {
-    var nKeyCode = v.keyCode;
-
-        //Expose only to Mac browsers, where stopEvent is ineffective on keydown events (bug 790337)
-        if(YAHOO.env.ua.webkit) {
-            switch (nKeyCode) {
-            case 9: // tab
-                if(oSelf._oCurItem) {
-                    if(oSelf.delimChar && (oSelf._nKeyCode != nKeyCode)) {
-                        YAHOO.util.Event.stopEvent(v);
-                    }
-                }
-                break;
-            case 13: // enter
-                if(oSelf._oCurItem) {
-                    if(oSelf._nKeyCode != nKeyCode) {
-                        if(oSelf._bContainerOpen) {
-                            YAHOO.util.Event.stopEvent(v);
-                        }
-                    }
-                    oSelf._selectItem(oSelf._oCurItem);
-                }
-                else {
-                    oSelf._toggleContainer(false);
-                }
-                break;
-            default:
-                break;
-            }
-        }
-
-        //TODO: (?) limit only to non-IE, non-Mac-FF for Korean IME support (bug 811948)
-        // Korean IME detected
-        else if(nKeyCode == 229) {
-            oSelf._queryInterval = setInterval(function() { oSelf._onIMEDetected(oSelf); },500);
-        }
-};
-
-/**
- * Handles textbox keyup events that trigger queries.
- *
- * @method _onTextboxKeyUp
- * @param v {HTMLEvent} The keyup event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp = function(v,oSelf) {
-    // Check to see if any of the public properties have been updated
-    oSelf._initProps();
-
-    var nKeyCode = v.keyCode;
-
-    oSelf._nKeyCode = nKeyCode;
-    var sText = this.value; //string in textbox
-
-    // Filter out chars that don't trigger queries
-    if(oSelf._isIgnoreKey(nKeyCode) || (sText.toLowerCase() == oSelf._sCurQuery)) {
-        return;
-    }
-    else {
-        oSelf._bItemSelected = false;
-        YAHOO.util.Dom.removeClass(oSelf._oCurItem,  oSelf.highlightClassName);
-        oSelf._oCurItem = null;
-
-        oSelf.textboxKeyEvent.fire(oSelf, nKeyCode);
-    }
-
-    // Set timeout on the request
-    if(oSelf.queryDelay > 0) {
-        var nDelayID =
-            setTimeout(function(){oSelf._sendQuery(sText);},(oSelf.queryDelay * 1000));
-
-        if(oSelf._nDelayID != -1) {
-            clearTimeout(oSelf._nDelayID);
-        }
-
-        oSelf._nDelayID = nDelayID;
-    }
-    else {
-        // No delay so send request immediately
-        oSelf._sendQuery(sText);
-    }
-};
-
-/**
- * Handles text input box receiving focus.
- *
- * @method _onTextboxFocus
- * @param v {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxFocus = function (v,oSelf) {
-    oSelf._elTextbox.setAttribute("autocomplete","off");
-    oSelf._bFocused = true;
-    if(!oSelf._bItemSelected) {
-        oSelf.textboxFocusEvent.fire(oSelf);
-    }
-};
-
-/**
- * Handles text input box losing focus.
- *
- * @method _onTextboxBlur
- * @param v {HTMLEvent} The focus event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onTextboxBlur = function (v,oSelf) {
-    // Don't treat as a blur if it was a selection via mouse click
-    if(!oSelf._bOverContainer || (oSelf._nKeyCode == 9)) {
-        // Current query needs to be validated as a selection
-        if(!oSelf._bItemSelected) {
-            var oMatch = oSelf._textMatchesOption();
-            // Container is closed or current query doesn't match any result
-            if(!oSelf._bContainerOpen || (oSelf._bContainerOpen && (oMatch === null))) {
-                // Force selection is enabled so clear the current query
-                if(oSelf.forceSelection) {
-                    oSelf._clearSelection();
-                }
-                // Treat current query as a valid selection
-                else {
-                    oSelf.unmatchedItemSelectEvent.fire(oSelf);
-                }
-            }
-            // Container is open and current query matches a result
-            else {
-                // Force a selection when textbox is blurred with a match
-                if(oSelf.forceSelection) {
-                    oSelf._selectItem(oMatch);
-                }
-            }
-        }
-
-        if(oSelf._bContainerOpen) {
-            oSelf._toggleContainer(false);
-        }
-        oSelf._cancelIntervalDetection(oSelf);
-        oSelf._bFocused = false;
-        oSelf.textboxBlurEvent.fire(oSelf);
-    }
-};
-
-/**
- * Handles window unload event.
- *
- * @method _onWindowUnload
- * @param v {HTMLEvent} The unload event.
- * @param oSelf {YAHOO.widget.AutoComplete} The AutoComplete instance.
- * @private
- */
-YAHOO.widget.AutoComplete.prototype._onWindowUnload = function(v,oSelf) {
-    if(oSelf && oSelf._elTextbox && oSelf.allowBrowserAutocomplete) {
-        oSelf._elTextbox.setAttribute("autocomplete","on");
-    }
-};
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * The DataSource classes manages sending a request and returning response from a live
- * database. Supported data include local JavaScript arrays and objects and databases
- * accessible via XHR connections. Supported response formats include JavaScript arrays,
- * JSON, XML, and flat-file textual data.
- *  
- * @class DataSource
- * @constructor
- */
-YAHOO.widget.DataSource = function() { 
-    /* abstract class */
-};
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Error message for null data responses.
- *
- * @property ERROR_DATANULL
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DataSource.ERROR_DATANULL = "Response data was null";
-
-/**
- * Error message for data responses with parsing errors.
- *
- * @property ERROR_DATAPARSE
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DataSource.ERROR_DATAPARSE = "Response data could not be parsed";
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Max size of the local cache.  Set to 0 to turn off caching.  Caching is
- * useful to reduce the number of server connections.  Recommended only for data
- * sources that return comprehensive results for queries or when stale data is
- * not an issue.
- *
- * @property maxCacheEntries
- * @type Number
- * @default 15
- */
-YAHOO.widget.DataSource.prototype.maxCacheEntries = 15;
-
-/**
- * Use this to fine-tune the matching algorithm used against JS Array types of
- * DataSource and DataSource caches. If queryMatchContains is true, then the JS
- * Array or cache returns results that "contain" the query string. By default,
- * queryMatchContains is set to false, so that only results that "start with"
- * the query string are returned.
- *
- * @property queryMatchContains
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataSource.prototype.queryMatchContains = false;
-
-/**
- * Enables query subset matching. If caching is on and queryMatchSubset is
- * true, substrings of queries will return matching cached results. For
- * instance, if the first query is for "abc" susequent queries that start with
- * "abc", like "abcd", will be queried against the cache, and not the live data
- * source. Recommended only for DataSources that return comprehensive results
- * for queries with very few characters.
- *
- * @property queryMatchSubset
- * @type Boolean
- * @default false
- *
- */
-YAHOO.widget.DataSource.prototype.queryMatchSubset = false;
-
-/**
- * Enables case-sensitivity in the matching algorithm used against JS Array
- * types of DataSources and DataSource caches. If queryMatchCase is true, only
- * case-sensitive matches will return.
- *
- * @property queryMatchCase
- * @type Boolean
- * @default false
- */
-YAHOO.widget.DataSource.prototype.queryMatchCase = false;
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
- /**
- * Public accessor to the unique name of the DataSource instance.
- *
- * @method toString
- * @return {String} Unique name of the DataSource instance
- */
-YAHOO.widget.DataSource.prototype.toString = function() {
-    return "DataSource " + this._sName;
-};
-
-/**
- * Retrieves query results, first checking the local cache, then making the
- * query request to the live data source as defined by the function doQuery.
- *
- * @method getResults
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DataSource.prototype.getResults = function(oCallbackFn, sQuery, oParent) {
-    
-    // First look in cache
-    var aResults = this._doQueryCache(oCallbackFn,sQuery,oParent);
-    // Not in cache, so get results from server
-    if(aResults.length === 0) {
-        this.queryEvent.fire(this, oParent, sQuery);
-        this.doQuery(oCallbackFn, sQuery, oParent);
-    }
-};
-
-/**
- * Abstract method implemented by subclasses to make a query to the live data
- * source. Must call the callback function with the response returned from the
- * query. Populates cache (if enabled).
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function implemented by oParent to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DataSource.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
-    /* override this */ 
-};
-
-/**
- * Flushes cache.
- *
- * @method flushCache
- */
-YAHOO.widget.DataSource.prototype.flushCache = function() {
-    if(this._aCache) {
-        this._aCache = [];
-    }
-    if(this._aCacheHelper) {
-        this._aCacheHelper = [];
-    }
-    this.cacheFlushEvent.fire(this);
-
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public events
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Fired when a query is made to the live data source.
- *
- * @event queryEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.DataSource.prototype.queryEvent = null;
-
-/**
- * Fired when a query is made to the local cache.
- *
- * @event cacheQueryEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- */
-YAHOO.widget.DataSource.prototype.cacheQueryEvent = null;
-
-/**
- * Fired when data is retrieved from the live data source.
- *
- * @event getResultsEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Array of result objects.
- */
-YAHOO.widget.DataSource.prototype.getResultsEvent = null;
-    
-/**
- * Fired when data is retrieved from the local cache.
- *
- * @event getCachedResultsEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param aResults {Object[]} Array of result objects.
- */
-YAHOO.widget.DataSource.prototype.getCachedResultsEvent = null;
-
-/**
- * Fired when an error is encountered with the live data source.
- *
- * @event dataErrorEvent
- * @param oSelf {Object} The DataSource instance.
- * @param oParent {Object} The requesting object.
- * @param sQuery {String} The query string.
- * @param sMsg {String} Error message string
- */
-YAHOO.widget.DataSource.prototype.dataErrorEvent = null;
-
-/**
- * Fired when the local cache is flushed.
- *
- * @event cacheFlushEvent
- * @param oSelf {Object} The DataSource instance
- */
-YAHOO.widget.DataSource.prototype.cacheFlushEvent = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Internal class variable to index multiple DataSource instances.
- *
- * @property _nIndex
- * @type Number
- * @private
- * @static
- */
-YAHOO.widget.DataSource._nIndex = 0;
-
-/**
- * Name of DataSource instance.
- *
- * @property _sName
- * @type String
- * @private
- */
-YAHOO.widget.DataSource.prototype._sName = null;
-
-/**
- * Local cache of data result objects indexed chronologically.
- *
- * @property _aCache
- * @type Object[]
- * @private
- */
-YAHOO.widget.DataSource.prototype._aCache = null;
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Initializes DataSource instance.
- *  
- * @method _init
- * @private
- */
-YAHOO.widget.DataSource.prototype._init = function() {
-    // Validate and initialize public configs
-    var maxCacheEntries = this.maxCacheEntries;
-    if(!YAHOO.lang.isNumber(maxCacheEntries) || (maxCacheEntries < 0)) {
-        maxCacheEntries = 0;
-    }
-    // Initialize local cache
-    if(maxCacheEntries > 0 && !this._aCache) {
-        this._aCache = [];
-    }
-    
-    this._sName = "instance" + YAHOO.widget.DataSource._nIndex;
-    YAHOO.widget.DataSource._nIndex++;
-    
-    this.queryEvent = new YAHOO.util.CustomEvent("query", this);
-    this.cacheQueryEvent = new YAHOO.util.CustomEvent("cacheQuery", this);
-    this.getResultsEvent = new YAHOO.util.CustomEvent("getResults", this);
-    this.getCachedResultsEvent = new YAHOO.util.CustomEvent("getCachedResults", this);
-    this.dataErrorEvent = new YAHOO.util.CustomEvent("dataError", this);
-    this.cacheFlushEvent = new YAHOO.util.CustomEvent("cacheFlush", this);
-};
-
-/**
- * Adds a result object to the local cache, evicting the oldest element if the 
- * cache is full. Newer items will have higher indexes, the oldest item will have
- * index of 0. 
- *
- * @method _addCacheElem
- * @param oResult {Object} Data result object, including array of results.
- * @private
- */
-YAHOO.widget.DataSource.prototype._addCacheElem = function(oResult) {
-    var aCache = this._aCache;
-    // Don't add if anything important is missing.
-    if(!aCache || !oResult || !oResult.query || !oResult.results) {
-        return;
-    }
-    
-    // If the cache is full, make room by removing from index=0
-    if(aCache.length >= this.maxCacheEntries) {
-        aCache.shift();
-    }
-        
-    // Add to cache, at the end of the array
-    aCache.push(oResult);
-};
-
-/**
- * Queries the local cache for results. If query has been cached, the callback
- * function is called with the results, and the cached is refreshed so that it
- * is now the newest element.  
- *
- * @method _doQueryCache
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- * @return aResults {Object[]} Array of results from local cache if found, otherwise null.
- * @private 
- */
-YAHOO.widget.DataSource.prototype._doQueryCache = function(oCallbackFn, sQuery, oParent) {
-    var aResults = [];
-    var bMatchFound = false;
-    var aCache = this._aCache;
-    var nCacheLength = (aCache) ? aCache.length : 0;
-    var bMatchContains = this.queryMatchContains;
-    var sOrigQuery;
-    
-    // If cache is enabled...
-    if((this.maxCacheEntries > 0) && aCache && (nCacheLength > 0)) {
-        this.cacheQueryEvent.fire(this, oParent, sQuery);
-        // If case is unimportant, normalize query now instead of in loops
-        if(!this.queryMatchCase) {
-            sOrigQuery = sQuery;
-            sQuery = sQuery.toLowerCase();
-        }
-
-        // Loop through each cached element's query property...
-        for(var i = nCacheLength-1; i >= 0; i--) {
-            var resultObj = aCache[i];
-            var aAllResultItems = resultObj.results;
-            // If case is unimportant, normalize match key for comparison
-            var matchKey = (!this.queryMatchCase) ?
-                encodeURIComponent(resultObj.query).toLowerCase():
-                encodeURIComponent(resultObj.query);
-            
-            // If a cached match key exactly matches the query...
-            if(matchKey == sQuery) {
-                    // Stash all result objects into aResult[] and stop looping through the cache.
-                    bMatchFound = true;
-                    aResults = aAllResultItems;
-                    
-                    // The matching cache element was not the most recent,
-                    // so now we need to refresh the cache.
-                    if(i != nCacheLength-1) {                        
-                        // Remove element from its original location
-                        aCache.splice(i,1);
-                        // Add element as newest
-                        this._addCacheElem(resultObj);
-                    }
-                    break;
-            }
-            // Else if this query is not an exact match and subset matching is enabled...
-            else if(this.queryMatchSubset) {
-                // Loop through substrings of each cached element's query property...
-                for(var j = sQuery.length-1; j >= 0 ; j--) {
-                    var subQuery = sQuery.substr(0,j);
-                    
-                    // If a substring of a cached sQuery exactly matches the query...
-                    if(matchKey == subQuery) {                    
-                        bMatchFound = true;
-                        
-                        // Go through each cached result object to match against the query...
-                        for(var k = aAllResultItems.length-1; k >= 0; k--) {
-                            var aRecord = aAllResultItems[k];
-                            var sKeyIndex = (this.queryMatchCase) ?
-                                encodeURIComponent(aRecord[0]).indexOf(sQuery):
-                                encodeURIComponent(aRecord[0]).toLowerCase().indexOf(sQuery);
-                            
-                            // A STARTSWITH match is when the query is found at the beginning of the key string...
-                            if((!bMatchContains && (sKeyIndex === 0)) ||
-                            // A CONTAINS match is when the query is found anywhere within the key string...
-                            (bMatchContains && (sKeyIndex > -1))) {
-                                // Stash a match into aResults[].
-                                aResults.unshift(aRecord);
-                            }
-                        }
-                        
-                        // Add the subset match result set object as the newest element to cache,
-                        // and stop looping through the cache.
-                        resultObj = {};
-                        resultObj.query = sQuery;
-                        resultObj.results = aResults;
-                        this._addCacheElem(resultObj);
-                        break;
-                    }
-                }
-                if(bMatchFound) {
-                    break;
-                }
-            }
-        }
-        
-        // If there was a match, send along the results.
-        if(bMatchFound) {
-            this.getCachedResultsEvent.fire(this, oParent, sOrigQuery, aResults);
-            oCallbackFn(sOrigQuery, aResults, oParent);
-        }
-    }
-    return aResults;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using XML HTTP requests that return
- * query results.
- *  
- * @class DS_XHR
- * @extends YAHOO.widget.DataSource
- * @requires connection
- * @constructor
- * @param sScriptURI {String} Absolute or relative URI to script that returns query
- * results as JSON, XML, or delimited flat-file data.
- * @param aSchema {String[]} Data schema definition of results.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_XHR = function(sScriptURI, aSchema, oConfigs) {
-    // Set any config params passed in to override defaults
-    if(oConfigs && (oConfigs.constructor == Object)) {
-        for(var sConfig in oConfigs) {
-            this[sConfig] = oConfigs[sConfig];
-        }
-    }
-
-    // Initialization sequence
-    if(!YAHOO.lang.isArray(aSchema) || !YAHOO.lang.isString(sScriptURI)) {
-        return;
-    }
-
-    this.schema = aSchema;
-    this.scriptURI = sScriptURI;
-    
-    this._init();
-};
-
-YAHOO.widget.DS_XHR.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public constants
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * JSON data type.
- *
- * @property TYPE_JSON
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_JSON = 0;
-
-/**
- * XML data type.
- *
- * @property TYPE_XML
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_XML = 1;
-
-/**
- * Flat-file data type.
- *
- * @property TYPE_FLAT
- * @type Number
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.TYPE_FLAT = 2;
-
-/**
- * Error message for XHR failure.
- *
- * @property ERROR_DATAXHR
- * @type String
- * @static
- * @final
- */
-YAHOO.widget.DS_XHR.ERROR_DATAXHR = "XHR response failed";
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Alias to YUI Connection Manager, to allow implementers to customize the utility.
- *
- * @property connMgr
- * @type Object
- * @default YAHOO.util.Connect
- */
-YAHOO.widget.DS_XHR.prototype.connMgr = YAHOO.util.Connect;
-
-/**
- * Number of milliseconds the XHR connection will wait for a server response. A
- * a value of zero indicates the XHR connection will wait forever. Any value
- * greater than zero will use the Connection utility's Auto-Abort feature.
- *
- * @property connTimeout
- * @type Number
- * @default 0
- */
-YAHOO.widget.DS_XHR.prototype.connTimeout = 0;
-
-/**
- * Absolute or relative URI to script that returns query results. For instance,
- * queries will be sent to &#60;scriptURI&#62;?&#60;scriptQueryParam&#62;=userinput
- *
- * @property scriptURI
- * @type String
- */
-YAHOO.widget.DS_XHR.prototype.scriptURI = null;
-
-/**
- * Query string parameter name sent to scriptURI. For instance, queries will be
- * sent to &#60;scriptURI&#62;?&#60;scriptQueryParam&#62;=userinput
- *
- * @property scriptQueryParam
- * @type String
- * @default "query"
- */
-YAHOO.widget.DS_XHR.prototype.scriptQueryParam = "query";
-
-/**
- * String of key/value pairs to append to requests made to scriptURI. Define
- * this string when you want to send additional query parameters to your script.
- * When defined, queries will be sent to
- * &#60;scriptURI&#62;?&#60;scriptQueryParam&#62;=userinput&#38;&#60;scriptQueryAppend&#62;
- *
- * @property scriptQueryAppend
- * @type String
- * @default ""
- */
-YAHOO.widget.DS_XHR.prototype.scriptQueryAppend = "";
-
-/**
- * XHR response data type. Other types that may be defined are YAHOO.widget.DS_XHR.TYPE_XML
- * and YAHOO.widget.DS_XHR.TYPE_FLAT.
- *
- * @property responseType
- * @type String
- * @default YAHOO.widget.DS_XHR.TYPE_JSON
- */
-YAHOO.widget.DS_XHR.prototype.responseType = YAHOO.widget.DS_XHR.TYPE_JSON;
-
-/**
- * String after which to strip results. If the results from the XHR are sent
- * back as HTML, the gzip HTML comment appears at the end of the data and should
- * be ignored.
- *
- * @property responseStripAfter
- * @type String
- * @default "\n&#60;!-"
- */
-YAHOO.widget.DS_XHR.prototype.responseStripAfter = "\n<!-";
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source defined by scriptURI for results. Results are
- * passed back to a callback function.
- *  
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_XHR.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
-    var isXML = (this.responseType == YAHOO.widget.DS_XHR.TYPE_XML);
-    var sUri = this.scriptURI+"?"+this.scriptQueryParam+"="+sQuery;
-    if(this.scriptQueryAppend.length > 0) {
-        sUri += "&" + this.scriptQueryAppend;
-    }
-    var oResponse = null;
-    
-    var oSelf = this;
-    /*
-     * Sets up ajax request callback
-     *
-     * @param {object} oReq          HTTPXMLRequest object
-     * @private
-     */
-    var responseSuccess = function(oResp) {
-        // Response ID does not match last made request ID.
-        if(!oSelf._oConn || (oResp.tId != oSelf._oConn.tId)) {
-            oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
-            return;
-        }
-//DEBUG
-for(var foo in oResp) {
-}
-        if(!isXML) {
-            oResp = oResp.responseText;
-        }
-        else { 
-            oResp = oResp.responseXML;
-        }
-        if(oResp === null) {
-            oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
-            return;
-        }
-
-        var aResults = oSelf.parseResponse(sQuery, oResp, oParent);
-        var resultObj = {};
-        resultObj.query = decodeURIComponent(sQuery);
-        resultObj.results = aResults;
-        if(aResults === null) {
-            oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATAPARSE);
-            aResults = [];
-        }
-        else {
-            oSelf.getResultsEvent.fire(oSelf, oParent, sQuery, aResults);
-            oSelf._addCacheElem(resultObj);
-        }
-        oCallbackFn(sQuery, aResults, oParent);
-    };
-
-    var responseFailure = function(oResp) {
-        oSelf.dataErrorEvent.fire(oSelf, oParent, sQuery, YAHOO.widget.DS_XHR.ERROR_DATAXHR);
-        return;
-    };
-    
-    var oCallback = {
-        success:responseSuccess,
-        failure:responseFailure
-    };
-    
-    if(YAHOO.lang.isNumber(this.connTimeout) && (this.connTimeout > 0)) {
-        oCallback.timeout = this.connTimeout;
-    }
-    
-    if(this._oConn) {
-        this.connMgr.abort(this._oConn);
-    }
-    
-    oSelf._oConn = this.connMgr.asyncRequest("GET", sUri, oCallback, null);
-};
-
-/**
- * Parses raw response data into an array of result objects. The result data key
- * is always stashed in the [0] element of each result object. 
- *
- * @method parseResponse
- * @param sQuery {String} Query string.
- * @param oResponse {Object} The raw response data to parse.
- * @param oParent {Object} The object instance that has requested data.
- * @returns {Object[]} Array of result objects.
- */
-YAHOO.widget.DS_XHR.prototype.parseResponse = function(sQuery, oResponse, oParent) {
-    var aSchema = this.schema;
-    var aResults = [];
-    var bError = false;
-
-    // Strip out comment at the end of results
-    var nEnd = ((this.responseStripAfter !== "") && (oResponse.indexOf)) ?
-        oResponse.indexOf(this.responseStripAfter) : -1;
-    if(nEnd != -1) {
-        oResponse = oResponse.substring(0,nEnd);
-    }
-
-    switch (this.responseType) {
-        case YAHOO.widget.DS_XHR.TYPE_JSON:
-            var jsonList, jsonObjParsed;
-            // Check for YUI JSON
-            if(YAHOO.lang.JSON) {
-                // Use the JSON utility if available
-                jsonObjParsed = YAHOO.lang.JSON.parse(oResponse);
-                if(!jsonObjParsed) {
-                    bError = true;
-                    break;
-                }
-                else {
-                    try {
-                        // eval is necessary here since aSchema[0] is of unknown depth
-                        jsonList = eval("jsonObjParsed." + aSchema[0]);
-                    }
-                    catch(e) {
-                        bError = true;
-                        break;
-                   }
-                }
-            }
-            // Check for JSON lib
-            else if(oResponse.parseJSON) {
-                // Use the new JSON utility if available
-                jsonObjParsed = oResponse.parseJSON();
-                if(!jsonObjParsed) {
-                    bError = true;
-                }
-                else {
-                    try {
-                        // eval is necessary here since aSchema[0] is of unknown depth
-                        jsonList = eval("jsonObjParsed." + aSchema[0]);
-                    }
-                    catch(e) {
-                        bError = true;
-                        break;
-                   }
-                }
-            }
-            // Use older JSON lib if available
-            else if(window.JSON) {
-                jsonObjParsed = JSON.parse(oResponse);
-                if(!jsonObjParsed) {
-                    bError = true;
-                    break;
-                }
-                else {
-                    try {
-                        // eval is necessary here since aSchema[0] is of unknown depth
-                        jsonList = eval("jsonObjParsed." + aSchema[0]);
-                    }
-                    catch(e) {
-                        bError = true;
-                        break;
-                   }
-                }
-            }
-            else {
-                // Parse the JSON response as a string
-                try {
-                    // Trim leading spaces
-                    while (oResponse.substring(0,1) == " ") {
-                        oResponse = oResponse.substring(1, oResponse.length);
-                    }
-
-                    // Invalid JSON response
-                    if(oResponse.indexOf("{") < 0) {
-                        bError = true;
-                        break;
-                    }
-
-                    // Empty (but not invalid) JSON response
-                    if(oResponse.indexOf("{}") === 0) {
-                        break;
-                    }
-
-                    // Turn the string into an object literal...
-                    // ...eval is necessary here
-                    var jsonObjRaw = eval("(" + oResponse + ")");
-                    if(!jsonObjRaw) {
-                        bError = true;
-                        break;
-                    }
-
-                    // Grab the object member that contains an array of all reponses...
-                    // ...eval is necessary here since aSchema[0] is of unknown depth
-                    jsonList = eval("(jsonObjRaw." + aSchema[0]+")");
-                }
-                catch(e) {
-                    bError = true;
-                    break;
-               }
-            }
-
-            if(!jsonList) {
-                bError = true;
-                break;
-            }
-
-            if(!YAHOO.lang.isArray(jsonList)) {
-                jsonList = [jsonList];
-            }
-
-            // Loop through the array of all responses...
-            for(var i = jsonList.length-1; i >= 0 ; i--) {
-                var aResultItem = [];
-                var jsonResult = jsonList[i];
-                // ...and loop through each data field value of each response
-                for(var j = aSchema.length-1; j >= 1 ; j--) {
-                    // ...and capture data into an array mapped according to the schema...
-                    var dataFieldValue = jsonResult[aSchema[j]];
-                    if(!dataFieldValue) {
-                        dataFieldValue = "";
-                    }
-                    aResultItem.unshift(dataFieldValue);
-                }
-                // If schema isn't well defined, pass along the entire result object
-                if(aResultItem.length == 1) {
-                    aResultItem.push(jsonResult);
-                }
-                // Capture the array of data field values in an array of results
-                aResults.unshift(aResultItem);
-            }
-            break;
-        case YAHOO.widget.DS_XHR.TYPE_XML:
-            // Get the collection of results
-            var xmlList = oResponse.getElementsByTagName(aSchema[0]);
-            if(!xmlList) {
-                bError = true;
-                break;
-            }
-            // Loop through each result
-            for(var k = xmlList.length-1; k >= 0 ; k--) {
-                var result = xmlList.item(k);
-                var aFieldSet = [];
-                // Loop through each data field in each result using the schema
-                for(var m = aSchema.length-1; m >= 1 ; m--) {
-                    var sValue = null;
-                    // Values may be held in an attribute...
-                    var xmlAttr = result.attributes.getNamedItem(aSchema[m]);
-                    if(xmlAttr) {
-                        sValue = xmlAttr.value;
-                    }
-                    // ...or in a node
-                    else{
-                        var xmlNode = result.getElementsByTagName(aSchema[m]);
-                        if(xmlNode && xmlNode.item(0) && xmlNode.item(0).firstChild) {
-                            sValue = xmlNode.item(0).firstChild.nodeValue;
-                        }
-                        else {
-                            sValue = "";
-                        }
-                    }
-                    // Capture the schema-mapped data field values into an array
-                    aFieldSet.unshift(sValue);
-                }
-                // Capture each array of values into an array of results
-                aResults.unshift(aFieldSet);
-            }
-            break;
-        case YAHOO.widget.DS_XHR.TYPE_FLAT:
-            if(oResponse.length > 0) {
-                // Delete the last line delimiter at the end of the data if it exists
-                var newLength = oResponse.length-aSchema[0].length;
-                if(oResponse.substr(newLength) == aSchema[0]) {
-                    oResponse = oResponse.substr(0, newLength);
-                }
-                var aRecords = oResponse.split(aSchema[0]);
-                for(var n = aRecords.length-1; n >= 0; n--) {
-                    aResults[n] = aRecords[n].split(aSchema[1]);
-                }
-            }
-            break;
-        default:
-            break;
-    }
-    sQuery = null;
-    oResponse = null;
-    oParent = null;
-    if(bError) {
-        return null;
-    }
-    else {
-        return aResults;
-    }
-};            
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * XHR connection object.
- *
- * @property _oConn
- * @type Object
- * @private
- */
-YAHOO.widget.DS_XHR.prototype._oConn = null;
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using the Get Utility to generate
- * dynamic SCRIPT nodes for data retrieval.
- *
- * @class DS_ScriptNode
- * @constructor
- * @extends YAHOO.widget.DataSource
- * @param sUri {String} URI to the script location that will return data.
- * @param aSchema {String[]} Data schema definition of results.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_ScriptNode = function(sUri, aSchema, oConfigs) {
-    // Set any config params passed in to override defaults
-    if(oConfigs && (oConfigs.constructor == Object)) {
-        for(var sConfig in oConfigs) {
-            this[sConfig] = oConfigs[sConfig];
-        }
-    }
-
-    // Initialization sequence
-    if(!YAHOO.lang.isArray(aSchema) || !YAHOO.lang.isString(sUri)) {
-        return;
-    }
-
-    this.schema = aSchema;
-    this.scriptURI = sUri;
-
-    this._init();
-};
-
-YAHOO.widget.DS_ScriptNode.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Alias to YUI Get Utility. Allows implementers to specify their own
- * subclasses of the YUI Get Utility.
- *
- * @property getUtility
- * @type Object
- * @default YAHOO.util.Get
- */
-YAHOO.widget.DS_ScriptNode.prototype.getUtility = YAHOO.util.Get;
-
-/**
- * URI to the script that returns data.
- *
- * @property scriptURI
- * @type String
- */
-YAHOO.widget.DS_ScriptNode.prototype.scriptURI = null;
-
-/**
- * Query string parameter name sent to scriptURI. For instance, requests will be
- * sent to &#60;scriptURI&#62;?&#60;scriptQueryParam&#62;=queryString
- *
- * @property scriptQueryParam
- * @type String
- * @default "query"
- */
-YAHOO.widget.DS_ScriptNode.prototype.scriptQueryParam = "query";
-
-/**
- * Defines request/response management in the following manner:
- * <dl>
- *     <!--<dt>queueRequests</dt>
- *     <dd>If a request is already in progress, wait until response is returned before sending the next request.</dd>
- *     <dt>cancelStaleRequests</dt>
- *     <dd>If a request is already in progress, cancel it before sending the next request.</dd>-->
- *     <dt>ignoreStaleResponses</dt>
- *     <dd>Send all requests, but handle only the response for the most recently sent request.</dd>
- *     <dt>allowAll</dt>
- *     <dd>Send all requests and handle all responses.</dd>
- * </dl>
- *
- * @property asyncMode
- * @type String
- * @default "allowAll"
- */
-YAHOO.widget.DS_ScriptNode.prototype.asyncMode = "allowAll";
-
-/**
- * Callback string parameter name sent to scriptURI. For instance, requests will be
- * sent to &#60;scriptURI&#62;?&#60;scriptCallbackParam&#62;=callbackFunction
- *
- * @property scriptCallbackParam
- * @type String
- * @default "callback"
- */
-YAHOO.widget.DS_ScriptNode.prototype.scriptCallbackParam = "callback";
-
-/**
- * Global array of callback functions, one for each request sent.
- *
- * @property callbacks
- * @type Function[]
- * @static
- */
-YAHOO.widget.DS_ScriptNode.callbacks = [];
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Unique ID to track requests.
- *
- * @property _nId
- * @type Number
- * @private
- * @static
- */
-YAHOO.widget.DS_ScriptNode._nId = 0;
-
-/**
- * Counter for pending requests. When this is 0, it is safe to purge callbacks
- * array.
- *
- * @property _nPending
- * @type Number
- * @private
- * @static
- */
-YAHOO.widget.DS_ScriptNode._nPending = 0;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source. Results are passed back to a callback function.
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_ScriptNode.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
-    var oSelf = this;
-    
-    // If there are no global pending requests, it is safe to purge global callback stack and global counter
-    if(YAHOO.widget.DS_ScriptNode._nPending === 0) {
-        YAHOO.widget.DS_ScriptNode.callbacks = [];
-        YAHOO.widget.DS_ScriptNode._nId = 0;
-    }
-    
-    // ID for this request
-    var id = YAHOO.widget.DS_ScriptNode._nId;
-    YAHOO.widget.DS_ScriptNode._nId++;
-
-    // Dynamically add handler function with a closure to the callback stack
-    YAHOO.widget.DS_ScriptNode.callbacks[id] = function(oResponse) {
-        if((oSelf.asyncMode !== "ignoreStaleResponses")||
-                (id === YAHOO.widget.DS_ScriptNode.callbacks.length-1)) { // Must ignore stale responses
-            oSelf.handleResponse(oResponse, oCallbackFn, sQuery, oParent);
-        }
-        else {
-        }
-
-        delete YAHOO.widget.DS_ScriptNode.callbacks[id];
-    };
-
-    // We are now creating a request
-    YAHOO.widget.DS_ScriptNode._nPending++;
-
-    var sUri = this.scriptURI+"&"+ this.scriptQueryParam+"="+sQuery+"&"+
-            this.scriptCallbackParam+"=YAHOO.widget.DS_ScriptNode.callbacks["+id+"]";
-    this.getUtility.script(sUri,
-            {autopurge:true,
-            onsuccess:YAHOO.widget.DS_ScriptNode._bumpPendingDown,
-            onfail:YAHOO.widget.DS_ScriptNode._bumpPendingDown});
-};
-
-/**
- * Parses JSON response data into an array of result objects and passes it to
- * the callback function.
- *
- * @method handleResponse
- * @param oResponse {Object} The raw response data to parse.
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_ScriptNode.prototype.handleResponse = function(oResponse, oCallbackFn, sQuery, oParent) {
-    var aSchema = this.schema;
-    var aResults = [];
-    var bError = false;
-
-    var jsonList, jsonObjParsed;
-
-    // Parse the JSON response as a string
-    try {
-        // Grab the object member that contains an array of all reponses...
-        // ...eval is necessary here since aSchema[0] is of unknown depth
-        jsonList = eval("(oResponse." + aSchema[0]+")");
-    }
-    catch(e) {
-        bError = true;
-   }
-
-    if(!jsonList) {
-        bError = true;
-        jsonList = [];
-    }
-
-    else if(!YAHOO.lang.isArray(jsonList)) {
-        jsonList = [jsonList];
-    }
-
-    // Loop through the array of all responses...
-    for(var i = jsonList.length-1; i >= 0 ; i--) {
-        var aResultItem = [];
-        var jsonResult = jsonList[i];
-        // ...and loop through each data field value of each response
-        for(var j = aSchema.length-1; j >= 1 ; j--) {
-            // ...and capture data into an array mapped according to the schema...
-            var dataFieldValue = jsonResult[aSchema[j]];
-            if(!dataFieldValue) {
-                dataFieldValue = "";
-            }
-            aResultItem.unshift(dataFieldValue);
-        }
-        // If schema isn't well defined, pass along the entire result object
-        if(aResultItem.length == 1) {
-            aResultItem.push(jsonResult);
-        }
-        // Capture the array of data field values in an array of results
-        aResults.unshift(aResultItem);
-    }
-
-    if(bError) {
-        aResults = null;
-    }
-
-    if(aResults === null) {
-        this.dataErrorEvent.fire(this, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATAPARSE);
-        aResults = [];
-    }
-    else {
-        var resultObj = {};
-        resultObj.query = decodeURIComponent(sQuery);
-        resultObj.results = aResults;
-        this._addCacheElem(resultObj);
-        
-        this.getResultsEvent.fire(this, oParent, sQuery, aResults);
-    }
-
-    oCallbackFn(sQuery, aResults, oParent);
-};
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Private methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Any success/failure response should decrement counter.
- *
- * @method _bumpPendingDown
- * @private
- */
-YAHOO.widget.DS_ScriptNode._bumpPendingDown = function() {
-    YAHOO.widget.DS_ScriptNode._nPending--;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using a native Javascript function as
- * its live data source.
- *  
- * @class DS_JSFunction
- * @constructor
- * @extends YAHOO.widget.DataSource
- * @param oFunction {HTMLFunction} In-memory Javascript function that returns query results as an array of objects.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_JSFunction = function(oFunction, oConfigs) {
-    // Set any config params passed in to override defaults
-    if(oConfigs && (oConfigs.constructor == Object)) {
-        for(var sConfig in oConfigs) {
-            this[sConfig] = oConfigs[sConfig];
-        }
-    }
-
-    // Initialization sequence
-    if(!YAHOO.lang.isFunction(oFunction)) {
-        return;
-    }
-    else {
-        this.dataFunction = oFunction;
-        this._init();
-    }
-};
-
-YAHOO.widget.DS_JSFunction.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * In-memory Javascript function that returns query results.
- *
- * @property dataFunction
- * @type HTMLFunction
- */
-YAHOO.widget.DS_JSFunction.prototype.dataFunction = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source defined by function for results. Results are
- * passed back to a callback function.
- *  
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_JSFunction.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
-    var oFunction = this.dataFunction;
-    var aResults = [];
-    
-    aResults = oFunction(sQuery);
-    if(aResults === null) {
-        this.dataErrorEvent.fire(this, oParent, sQuery, YAHOO.widget.DataSource.ERROR_DATANULL);
-        return;
-    }
-    
-    var resultObj = {};
-    resultObj.query = decodeURIComponent(sQuery);
-    resultObj.results = aResults;
-    this._addCacheElem(resultObj);
-    
-    this.getResultsEvent.fire(this, oParent, sQuery, aResults);
-    oCallbackFn(sQuery, aResults, oParent);
-    return;
-};
-
-
-/****************************************************************************/
-/****************************************************************************/
-/****************************************************************************/
-
-/**
- * Implementation of YAHOO.widget.DataSource using a native Javascript array as
- * its live data source.
- *
- * @class DS_JSArray
- * @constructor
- * @extends YAHOO.widget.DataSource
- * @param aData {String[]} In-memory Javascript array of simple string data.
- * @param oConfigs {Object} (optional) Object literal of config params.
- */
-YAHOO.widget.DS_JSArray = function(aData, oConfigs) {
-    // Set any config params passed in to override defaults
-    if(oConfigs && (oConfigs.constructor == Object)) {
-        for(var sConfig in oConfigs) {
-            this[sConfig] = oConfigs[sConfig];
-        }
-    }
-
-    // Initialization sequence
-    if(!YAHOO.lang.isArray(aData)) {
-        return;
-    }
-    else {
-        this.data = aData;
-        this._init();
-    }
-};
-
-YAHOO.widget.DS_JSArray.prototype = new YAHOO.widget.DataSource();
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public member variables
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * In-memory Javascript array of strings.
- *
- * @property data
- * @type Array
- */
-YAHOO.widget.DS_JSArray.prototype.data = null;
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Public methods
-//
-/////////////////////////////////////////////////////////////////////////////
-
-/**
- * Queries the live data source defined by data for results. Results are passed
- * back to a callback function.
- *
- * @method doQuery
- * @param oCallbackFn {HTMLFunction} Callback function defined by oParent object to which to return results.
- * @param sQuery {String} Query string.
- * @param oParent {Object} The object instance that has requested data.
- */
-YAHOO.widget.DS_JSArray.prototype.doQuery = function(oCallbackFn, sQuery, oParent) {
-    var i;
-    var aData = this.data; // the array
-    var aResults = []; // container for results
-    var bMatchFound = false;
-    var bMatchContains = this.queryMatchContains;
-    if(sQuery) {
-        if(!this.queryMatchCase) {
-            sQuery = sQuery.toLowerCase();
-        }
-
-        // Loop through each element of the array...
-        // which can be a string or an array of strings
-        for(i = aData.length-1; i >= 0; i--) {
-            var aDataset = [];
-
-            if(YAHOO.lang.isString(aData[i])) {
-                aDataset[0] = aData[i];
-            }
-            else if(YAHOO.lang.isArray(aData[i])) {
-                aDataset = aData[i];
-            }
-
-            if(YAHOO.lang.isString(aDataset[0])) {
-                var sKeyIndex = (this.queryMatchCase) ?
-                encodeURIComponent(aDataset[0]).indexOf(sQuery):
-                encodeURIComponent(aDataset[0]).toLowerCase().indexOf(sQuery);
-
-                // A STARTSWITH match is when the query is found at the beginning of the key string...
-                if((!bMatchContains && (sKeyIndex === 0)) ||
-                // A CONTAINS match is when the query is found anywhere within the key string...
-                (bMatchContains && (sKeyIndex > -1))) {
-                    // Stash a match into aResults[].
-                    aResults.unshift(aDataset);
-                }
-            }
-        }
-    }
-    else {
-        for(i = aData.length-1; i >= 0; i--) {
-            if(YAHOO.lang.isString(aData[i])) {
-                aResults.unshift([aData[i]]);
-            }
-            else if(YAHOO.lang.isArray(aData[i])) {
-                aResults.unshift(aData[i]);
-            }
-        }
-    }
-    
-    this.getResultsEvent.fire(this, oParent, sQuery, aResults);
-    oCallbackFn(sQuery, aResults, oParent);
-};
-
-YAHOO.register("autocomplete", YAHOO.widget.AutoComplete, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/calendar/README b/lib/yui/calendar/README
deleted file mode 100755 (executable)
index 9de8465..0000000
+++ /dev/null
@@ -1,357 +0,0 @@
-Calendar Release Notes
-
-*** version 2.5.0 *** 
-
-+ Prevent default event handling in CalendarNavigator enter key 
-  listener, to prevent automatic form submission when using Calendar
-  inside a form.
-
-+ Added workaround to DateMath.add and subtract for Safari 2 (webkit) 
-  bug in Date.setDate(n) which doesn't handle value of n less than -128 
-  or greater than 127 correctly.
-
-  See: http://brianary.blogspot.com/2006/03/safari-date-bug.html
-
-+ Added border, padding and margin rules to Calendar Sam Skin to 
-  protect Sam Skin's look and feel when Calendar is used with 
-  YUI base.css
-
-*** version 2.4.0 *** 
-
-+ Added CalendarNavigator (year selector) feature to allow the user to 
-  jump to a year/month directly without having to scroll through months
-  sequentially. 
-
-  The feature is enabled/configured using the "navigator" configuration
-  property.
-
-+ Added Custom Events: 
-
-    showNav/beforeShowNav
-    hideNav/beforeHideNav, 
-    renderNav/beforeRenderNav 
-
-  To Calendar/CalendarGroup, in support of the CalendarNavigator 
-  functionality. 
-
-+ Added Custom Events:
-
-    show/beforeShow
-    hide/beforeHide 
-
-  To Calendar and CalendarGroup. Returning false from a 
-  beforeShow/beforeHide listener can be used to prevent the Calendar 
-  from being shown/hidden respectively. 
-
-+ Added Public Methods: 
-
-    getCellIndex(date)    [ Calendar ]
-    getCalendarPage(date) [ CalendarGroup ]
-    toDate(dateArray)     [ Calendar/CalendarGroup ]
-    removeRenderers()     [ Calendar/CalendarGroup ]
-    
-+ The Calendar/CalendarGroup constructor is now more flexible: 
-
-    * It no longer requires an "id" argument. 
-
-      In it's simplest form, a Calendar/CalendarGroup can be 
-      constructed by simply providing a container id or reference.
-
-          var cal = new YAHOO.widget.Calendar("container"); 
-          -or-
-          var containerDiv = YAHOO.util.Dom.get("container");
-          var cal = new YAHOO.widget.Calendar(containerDiv); 
-
-      An id for the Calendar does not need to be provided, and will be 
-      generated from the container id by appending an "_t" suffix to the
-      container id if only the container is provided. 
-
-    * The container argument can be either a string, representing the 
-      id of the container, or an HTMLElement referring to the container 
-      element itself, as suggested in the example above. 
-
-    * If an HTMLElement is provided for the container argument and the 
-      element does not have an id, one will be generated for it using 
-      YAHOO.util.Dom.generateId(). 
-
-    * The older form of Calendar/CalendarGroup signature, expecting 
-      both an id and containerId is still supported and works as it did 
-      prior to 2.4.0. 
-
-+ Fixed performance issue, where the same custom renderer was being 
-  applied multiple times to the same cell.
-
-+ Added getDate(year, month, date) factory method to the DateMath utility, 
-  which can be used to create JavaScript Date instances for years less 
-  than 100.
-
-  The default Date(year, month, date) constructor implementations across 
-  browsers, assume that if year < 100, the caller is referring to the 
-  nineteen hundreds, and the year is set to 19xx instead of xx (as with
-  the deprecated setYear method). However Date.setFullYear(xx) can 
-  be used to set dates below 100. The above factory method provides a 
-  construction mechanism consistent with setFullYear.
-
-+ Changed Calendar/CalendarGroup/DateMath code to use the DateMath.getDate
-  method, so that 2 digit years are  not assumed to be in the 1900's. 
-
-  NOTE: Calendar's API already expects 4 digit date strings when referring 
-  to years after 999.
-
-*** version 2.3.1 *** 
-
-+ Changed Calendar/CalendarGroup to render an empty title bar element 
-  when "close" is set to true, but "title" has not been set, to allow Sam 
-  Skin to render a title bar correctly. 
-
-*** version 2.3.0 *** 
-
-+ Added checks to select, selectCell, deselect and deselectCell methods 
-  to ensure the Calendar/Calendar group was not set to an invalid state 
-  by programmatically selecting unselectable dates or cells.
-  
-+ Added new locale configuration properties for the Month/Year label 
-  used in the Calendar header (MY_LABEL_MONTH_POSITION, 
-  MY_LABEL_YEAR_POSITION, MY_LABEL_YEAR_SUFFIX, MY_LABEL_MONTH_SUFFIX). 
-  Japan is an example locale, where customization of the Month/Year 
-  label is required.
-  
-+ Changed "first", "last" class names to "first-of-type", "last-of-type", 
-  to avoid collision with YUI Grids' use of the "first" class name.
-  
-+ Added public isDateOOB method, to check if a given date is outside of 
-  the minimum/maximum configuration dates of the Calendar.
-  
-+ Deprecated YAHOO.widget.Calendar.browser, refactored to use 
-  YAHOO.env.ua instead. 
-  
-+ Removed overflow:hidden from default Calendar/CalendarGroup container 
-  for non-IE6 browsers to fix clipping issue with IE7 when CalendarGroup 
-  was inside a box with a specific width. overflow:hidden is still 
-  required for IE6 with an iframe shim.
-
-+ Added Opera container width calculation fix to CalendarGroup.show 
-  method, to fix incorrect wrapping when using a CalendarGroup which is 
-  initially rendered hidden (display:none). Previously this fix was 
-  only applied on render. 
-
-*** version 2.2.2 *** 
-
-+ Fixed problem with selected dates being shared across instances, when 
-  more than one Calendar/CalendarGroup was on the page 
-
-*** version 2.2.1 *** 
-
-+ Fixed problem with selectCell adding duplicate selected date entries 
-  for dates which were already selected
-
-+ Fixed problem with CalendarGroup iframe shim not covering the 
-  CalendarGroup title area
-  
-+ Removed javascript:void(null) from close button and cell links which 
-  was interrupting form submission and firing onbeforeunload in IE
-  
-+ Fixed problem with CalendarGroup getSelectedDates returning invalid 
-  results, when used in conjunction with the "selected" Config property 
-  (either passed in the constructor config argument or set seperately 
-  after construction)
-  
-+ Refactored Calendar and CalendarGroup to improve performance, 
-  especially when working with a large number of instances in 
-  IE6 
-
-*** version 2.2.0 *** 
-
-+ Image customization can now be done through CSS. Images for Close, 
-  Left and Right Arrows are now pulled in using CSS defined in 
-  calendar.css and by default use relative paths to the images in 
-  the same directory as calendar.css.
-  
-+ Deprecated Calendar.IMG_ROOT and NAV_ARROW_LEFT, NAV_ARROW_RIGHT 
-  configuration properties. Customizations based on older releases 
-  which set these properties will still function as expected.
-
-+ Deprecated CalendarGroup.CSS_2UPCLOSE. Calendar's Style.CSS_CLOSE 
-  property now represents the new default CSS class (calclose) for 
-  the close button. CSS_2UPCLOSE is still applied along with 
-  CSS_CLOSE to the new markup for the close button to support existing
-  customizations of the CSS_2UPCLOSE CSS class (close-icon)
-
-+ Fixed problem with Safari setting Calendar pages to incorrect dates 
-  if the pages spanned a year boundary in CalendarGroups with 3 or more 
-  pages, due to a bug in Safari's implementation of Date setMonth
-
-+ Fixed problem with CalendarGroup setMonth rendering Calendar pages 
-  with incorrect dates in all browsers if current pages spanned year 
-  boundary 
-
-+ Fixed incorrect CalendarGroup logging statement in calendar-debug.js
-
-+ Fixed domEventMap support for Safari versions prior to 2.0.2, 
-  caused by hasOwnProperty not being supported
-  
-+ Removed unused private property : _pageDate from Calendar class 
-
-*** version 0.12.2 *** 
-
-+ Corrected documentation for clearTime function to reflect the 
-  change from midnight to noon 
-
-*** version 0.12.1 *** 
-
-+ Calendar and CalendarGroup now automatically parse the argument 
-  passed to setMonth and setYear into an integer, eliminating 
-  potential concatenation bugs. 
-
-*** version 0.12 *** 
-
-+ New documentation format implemented
-
-+ Calendar2up and Calendar_Core are now deprecated. Now, Calendar alone
-  represents the single Calendar instance, and CalendarGroup represents 
-  an n-up instance, defaulting to 2up
-  
-+ Added semantic style classes to Calendar elements to allow for 
-  custom styling solely using CSS.
-  
-+ Remapped all configuration properties to use the Config object 
- (familiar to those who use the Container collection of controls). 
- Property names are the same as their previous counterparts, but 
- wrapped into Calendar.cfg, allowing for runtime reconfiguration of 
- most properties
-+ Added "title" property for setting the Calendar title
-
-+ Added "close" property for enabling and disabling the close icon
-
-+ Added "iframe" property for enabling an iframe shim in Internet 
-  Explorer 6 and below to fix the select bleed-through bug
-  
-+ pageDate moved to property: "pagedate"
-
-+ selectedDates moved to property: "selected"
-
-+ minDate moved to property : "mindate", which accepts a JavaScript 
-  Date object like its predecessor, but also supports string dates
-  
-+ maxDate moved to property : "maxdate", which accepts a JavaScript 
-  Date object like its predecessor, but also supports string dates
-  
-+ Moved style declarations to initStyles function
-
-+ Optimized event handling in doSelectCell/doCellMouseOver/
-  doCellMouseOut by only attaching the listener to the outer 
-  Calendar container, and only reacting to events on cells with 
-  the "selectable" CSS class.
-  
-+ Added domEventMap field for applying DOM event listeners to cells 
-  containing specific class and tag combinations.
-  
-+ Moved all cell DOM event attachment to applyListeners function
-
-+ Added getDateByCellId / getDateFieldsByCellId helper functions
-
-+ Corrected DateMath.getWeekNumber to comply with ISO week number 
-  handling
-  
-+ Separated renderCellDefault style portions into styleCellDefault 
-  function for easy extension
-  
-+ Deprecated onBeforeSelect. Created beforeSelectEvent which 
-  automatically subscribes to its deprecated predecessor.
-  
-+ Deprecated onSelect. Created selectEvent, which automatically 
-  subscribes to its deprecated predecessor.
-  
-+ Deprecated onBeforeDeselect. Created beforeSelectEvent which 
-  automatically subscribes to its deprecated predecessor.
-  
-+ Deprecated onDeselect. Created beforeDeselectEvent, which 
-  automatically subscribes to its deprecated predecessor.
-  
-+ Deprecated onChangePage. Created changePageEvent, which automatically
-  subscribes to its deprecated predecessor.
-  
-+ Deprecated onRender. Created renderEvent, which automatically 
-  subscribes to its deprecated predecessor.
-  
-+ Deprecated onReset. Created resetEvent, which automatically 
-  subscribes to its deprecated predecessor.
-  
-+ Deprecated onClear. Created clearEvent, which automatically 
-  subscribes to its deprecated predecessor.
-  
-+ Corrected setMonth documentation to refer to 0-11 indexed months.
-
-+ Added show and hide methods to Calendar for setting the Calendar's 
-  display property.
-  
-+ Optimized internal render classes to use innerHTML and string buffers
-+ Removed wireCustomEvents function
-
-+ Removed wireDefaultEvents function 
-
-+ Removed doNextMonth / doPreviousMonth
-
-+ Removed all buildShell (header, body, footer) functions, since 
-  the Calendar shell is now built dynamically on each render
-  
-+ Wired all CalendarGroup events and configuration properties to 
-  be properly delegated to Calendar
-  
-+ Augmented CalendarGroup with all built-in renderers, label functions, 
-  hide, show, and initStyles, creating API transparency between Calendar 
-  and CalendarGroup.
-  
-+ Made all tagName, createElement, and entity references XHTML compliant
-
-+ Fixed Daylight Saving Time bug for Brazilian time zone 
-
-*** version 0.11.3 *** 
-
-+ Calendar_Core: Added arguments for selected/deselected dates to 
-  onSelect/onDeselect
-  
-+ CalendarGroup: Fixed bug where selected dates passed to constructor 
-  were not represented in selectedDates
-  
-+ Calendar2up: Now displays correctly in Opera 9 
-
-*** version 0.11.0 *** 
-
-+ DateMath: DateMath.add now properly adds weeks
-
-+ DateMath: between() function added
-
-+ DateMath: getWeekNumber() fixed to take starting day of week into
-  account
-  
-+ All references to Calendar's built in CSS class handlers are 
-  removed, replaced with calls to Dom utility (addClass, removeClass)
-  
-+ Several CSS class constants now have clearer names
-
-+ All CSS classes are now properly namespaced to avoid CSS conflicts
-
-+ Fixed table:hover bug in CSS
-
-+ Calendar no longer requires the container ID and variable name to 
-  match in order for month navigation to function properly
-
-+ Calendar month navigation arrows are now represented as 
-  background images 
-
-*** version 0.10.0 *** 
-
-+ Major performance improvements from attaching DOM events to 
-  associated table cells only once, when the Calendar shell is built
-  
-+ DOM events for mouseover/mouseout are now fired for all browsers 
- (not just Internet Explorer)
-+ Reset functionality bug fixed for 2-up Calendar view 
-
-*** version 0.9.0 *** 
-
-* Initial release
\ No newline at end of file
diff --git a/lib/yui/calendar/calendar-debug.js b/lib/yui/calendar/calendar-debug.js
deleted file mode 100755 (executable)
index 621b403..0000000
+++ /dev/null
@@ -1,6821 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-(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 = {},
-                prop,
-                property;
-                
-            for (prop in this.config) {
-                property = this.config[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) {
-                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;
-        
-                    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} override 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, override) {
-    
-            var property = this.config[key.toLowerCase()];
-    
-            if (property && property.event) {
-                if (!Config.alreadySubscribed(property.event, handler, obj)) {
-                    property.event.subscribe(handler, obj, override);
-                }
-                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);
-
-}());
-
-/**
-* 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,
-
-       /**
-       * 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. This function assumes that week 1 is the
-       * week in which January 1 appears, regardless of whether the week consists of a full 7 days.
-       * The calendar year can be specified to help find what a the week number would be for a given
-       * date if the date overlaps years. For instance, a week may be considered week 1 of 2005, or
-       * week 53 of 2004. Specifying the optional calendarYear allows one to make this distinction
-       * easily.
-       * @method getWeekNumber
-       * @param {Date} date    The JavaScript date for which to find the week number
-       * @param {Number} calendarYear  OPTIONAL - The calendar year to use for determining the week number. Default is
-       *                                                                                       the calendar year of parameter "date".
-       * @return {Number}      The week number of the given date.
-       */
-       getWeekNumber : function(date, calendarYear) {
-               date = this.clearTime(date);
-               var nearestThurs = new Date(date.getTime() + (4 * this.ONE_DAY_MS) - ((date.getDay()) * this.ONE_DAY_MS));
-
-               var jan1 = this.getDate(nearestThurs.getFullYear(),0,1);
-               var dayOfYear = ((nearestThurs.getTime() - jan1.getTime()) / this.ONE_DAY_MS) - 1;
-
-               var weekNum = Math.ceil((dayOfYear)/ 7);
-               return weekNum;
-       },
-
-       /**
-       * 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
-*/
-
-/**
-* 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.
-*/
-YAHOO.widget.Calendar = function(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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.Calendar.MONTH_DAY = "MD";
-
-/**
-* Type constant used for renderers to represent a weekday
-* @property YAHOO.widget.Calendar.WEEKDAY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.Calendar.RANGE = "R";
-
-/**
-* Type constant used for renderers to represent a month across any year
-* @property YAHOO.widget.Calendar.MONTH
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.Calendar.LONG = "long";
-
-/**
-* Constant used to represent medium date field string formats (e.g. Mon)
-* @property YAHOO.widget.Calendar.MEDIUM
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.Calendar.ONE_CHAR = "1char";
-
-/**
-* The set of default Config property keys and values for the Calendar
-* @property YAHOO.widget.Calendar._DEFAULT_CONFIG
-* @final
-* @static
-* @private
-* @type Object
-*/
-YAHOO.widget.Calendar._DEFAULT_CONFIG = {
-       // Default values for pagedate and selected are not class level constants - they are set during instance creation 
-       PAGEDATE : {key:"pagedate", value:null},
-       SELECTED : {key:"selected", value:null},
-       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}
-};
-
-/**
-* The set of Custom Event types supported by the Calendar
-* @property YAHOO.widget.Calendar._EVENT_TYPES
-* @final
-* @static
-* @private
-* @type Object
-*/
-YAHOO.widget.Calendar._EVENT_TYPES = {
-       BEFORE_SELECT : "beforeSelect", 
-       SELECT : "select",
-       BEFORE_DESELECT : "beforeDeselect",
-       DESELECT : "deselect",
-       CHANGE_PAGE : "changePage",
-       BEFORE_RENDER : "beforeRender",
-       RENDER : "render",
-       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
-* @final
-* @static
-* @private
-* @type Object
-*/
-YAHOO.widget.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"
-};
-
-YAHOO.widget.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.
-       * @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 (YAHOO.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 = YAHOO.util.Dom.get(container);
-               if (!this.oDomContainer) { this.logger.log("Container not found in document.", "error"); }
-
-               if (!this.oDomContainer.id) {
-                       this.oDomContainer.id = YAHOO.util.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();
-
-               this.today = new Date();
-               YAHOO.widget.DateMath.clearTime(this.today);
-
-               /**
-               * 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();
-
-               YAHOO.util.Dom.addClass(this.oDomContainer, this.Style.CSS_CONTAINER);
-               YAHOO.util.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();
-       },
-
-       /**
-       * 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 (YAHOO.util.Dom.inDocument(this.oDomContainer)) {
-                               if (useIframe) {
-                                       var pos = YAHOO.util.Dom.getStyle(this.oDomContainer, "position");
-                                       
-                                       if (pos == "absolute" || pos == "relative") {
-                                               
-                                               if (!YAHOO.util.Dom.inDocument(this.iframe)) {
-                                                       this.iframe = document.createElement("iframe");
-                                                       this.iframe.src = "javascript:false;";
-       
-                                                       YAHOO.util.Dom.setStyle(this.iframe, "opacity", "0");
-       
-                                                       if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
-                                                               YAHOO.util.Dom.addClass(this.iframe, "fixedsize");
-                                                       }
-       
-                                                       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(YAHOO.widget.Calendar._DEFAULT_CONFIG.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(YAHOO.widget.Calendar._DEFAULT_CONFIG.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 = YAHOO.widget.Calendar._EVENT_TYPES;
-       
-               /**
-               * Fired before a selection is made
-               * @event beforeSelectEvent
-               */
-               this.beforeSelectEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SELECT); 
-       
-               /**
-               * Fired when a selection is made
-               * @event selectEvent
-               * @param {Array}        Array of Date field arrays in the format [YYYY, MM, DD].
-               */
-               this.selectEvent = new YAHOO.util.CustomEvent(defEvents.SELECT);
-       
-               /**
-               * Fired before a selection is made
-               * @event beforeDeselectEvent
-               */
-               this.beforeDeselectEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_DESELECT);
-       
-               /**
-               * Fired when a selection is made
-               * @event deselectEvent
-               * @param {Array}        Array of Date field arrays in the format [YYYY, MM, DD].
-               */
-               this.deselectEvent = new YAHOO.util.CustomEvent(defEvents.DESELECT);
-       
-               /**
-               * Fired when the Calendar page is changed
-               * @event changePageEvent
-               */
-               this.changePageEvent = new YAHOO.util.CustomEvent(defEvents.CHANGE_PAGE);
-       
-               /**
-               * Fired before the Calendar is rendered
-               * @event beforeRenderEvent
-               */
-               this.beforeRenderEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_RENDER);
-       
-               /**
-               * Fired when the Calendar is rendered
-               * @event renderEvent
-               */
-               this.renderEvent = new YAHOO.util.CustomEvent(defEvents.RENDER);
-       
-               /**
-               * Fired when the Calendar is reset
-               * @event resetEvent
-               */
-               this.resetEvent = new YAHOO.util.CustomEvent(defEvents.RESET);
-       
-               /**
-               * Fired when the Calendar is cleared
-               * @event clearEvent
-               */
-               this.clearEvent = new YAHOO.util.CustomEvent(defEvents.CLEAR);
-       
-               /**
-               * Fired just before the Calendar is to be shown
-               * @event beforeShowEvent
-               */
-               this.beforeShowEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SHOW);
-       
-               /**
-               * Fired after the Calendar is shown
-               * @event showEvent
-               */
-               this.showEvent = new YAHOO.util.CustomEvent(defEvents.SHOW);
-       
-               /**
-               * Fired just before the Calendar is to be hidden
-               * @event beforeHideEvent
-               */
-               this.beforeHideEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_HIDE);
-       
-               /**
-               * Fired after the Calendar is hidden
-               * @event hideEvent
-               */
-               this.hideEvent = new YAHOO.util.CustomEvent(defEvents.HIDE);
-
-               /**
-               * Fired just before the CalendarNavigator is to be shown
-               * @event beforeShowNavEvent
-               */
-               this.beforeShowNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SHOW_NAV);
-       
-               /**
-               * Fired after the CalendarNavigator is shown
-               * @event showNavEvent
-               */
-               this.showNavEvent = new YAHOO.util.CustomEvent(defEvents.SHOW_NAV);
-       
-               /**
-               * Fired just before the CalendarNavigator is to be hidden
-               * @event beforeHideNavEvent
-               */
-               this.beforeHideNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_HIDE_NAV);
-       
-               /**
-               * Fired after the CalendarNavigator is hidden
-               * @event hideNavEvent
-               */
-               this.hideNavEvent = new YAHOO.util.CustomEvent(defEvents.HIDE_NAV);
-
-               /**
-               * Fired just before the CalendarNavigator is to be rendered
-               * @event beforeRenderNavEvent
-               */
-               this.beforeRenderNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_RENDER_NAV);
-
-               /**
-               * Fired after the CalendarNavigator is rendered
-               * @event renderNavEvent
-               */
-               this.renderNavEvent = new YAHOO.util.CustomEvent(defEvents.RENDER_NAV);
-
-               this.beforeSelectEvent.subscribe(this.onBeforeSelect, this, true);
-               this.selectEvent.subscribe(this.onSelect, this, true);
-               this.beforeDeselectEvent.subscribe(this.onBeforeDeselect, this, true);
-               this.deselectEvent.subscribe(this.onDeselect, this, true);
-               this.changePageEvent.subscribe(this.onChangePage, this, true);
-               this.renderEvent.subscribe(this.onRender, this, true);
-               this.resetEvent.subscribe(this.onReset, this, true);
-               this.clearEvent.subscribe(this.onClear, this, true);
-       },
-       
-       /**
-       * The default event function that is attached to a date link within a calendar cell
-       * when the calendar is rendered.
-       * @method doSelectCell
-       * @param {DOMEvent} e   The event
-       * @param {Calendar} cal A reference to the calendar passed by the Event utility
-       */
-       doSelectCell : function(e, cal) {
-               var cell,index,d,date;
-
-               var target = YAHOO.util.Event.getTarget(e);
-               var tagName = target.tagName.toLowerCase();
-               var defSelector = false;
-
-               while (tagName != "td" && ! YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-
-                       if (!defSelector && tagName == "a" && YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTOR)) {
-                               defSelector = true;     
-                       }
-
-                       target = target.parentNode;
-                       tagName = target.tagName.toLowerCase();
-                       // TODO: No need to go all the way up to html.
-                       if (tagName == "html") {
-                               return;
-                       }
-               }
-
-               if (defSelector) {
-                       // Stop link href navigation for default renderer
-                       YAHOO.util.Event.preventDefault(e);
-               }
-       
-               cell = target;
-
-               if (YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) {
-                       index = cell.id.split("cell")[1];
-                       d = cal.cellDates[index];
-                       date = YAHOO.widget.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 = YAHOO.util.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 (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-                       YAHOO.util.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 = YAHOO.util.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 (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-                       YAHOO.util.Dom.removeClass(target, cal.Style.CSS_CELL_HOVER);
-               }
-       },
-       
-       setupConfig : function() {
-       
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-
-               /**
-               * The month/year representing the current visible Calendar date (mm/yyyy)
-               * @config pagedate
-               * @type String
-               * @default today's date
-               */
-               this.cfg.addProperty(defCfg.PAGEDATE.key, { value:new Date(), handler:this.configPageDate } );
-
-               /**
-               * The date or range of dates representing the current Calendar selection
-               * @config selected
-               * @type String
-               * @default []
-               */
-               this.cfg.addProperty(defCfg.SELECTED.key, { value:[], handler:this.configSelected } );
-
-               /**
-               * The title to display above the Calendar's month header
-               * @config title
-               * @type String
-               * @default ""
-               */
-               this.cfg.addProperty(defCfg.TITLE.key, { value:defCfg.TITLE.value, handler:this.configTitle } );
-
-               /**
-               * Whether or not a close button should be displayed for this Calendar
-               * @config close
-               * @type Boolean
-               * @default false
-               */
-               this.cfg.addProperty(defCfg.CLOSE.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.IFRAME.key, { value:defCfg.IFRAME.value, handler:this.configIframe, validator:this.cfg.checkBoolean } );
-
-               /**
-               * The minimum selectable date in the current Calendar (mm/dd/yyyy)
-               * @config mindate
-               * @type String
-               * @default null
-               */
-               this.cfg.addProperty(defCfg.MINDATE.key, { value:defCfg.MINDATE.value, handler:this.configMinDate } );
-
-               /**
-               * The maximum selectable date in the current Calendar (mm/dd/yyyy)
-               * @config maxdate
-               * @type String
-               * @default null
-               */
-               this.cfg.addProperty(defCfg.MAXDATE.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.MULTI_SELECT.key,   { value:defCfg.MULTI_SELECT.value, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-       
-               /**
-               * The weekday the week begins on. Default is 0 (Sunday).
-               * @config START_WEEKDAY
-               * @type number
-               * @default 0
-               */
-               this.cfg.addProperty(defCfg.START_WEEKDAY.key,  { value:defCfg.START_WEEKDAY.value, handler:this.configOptions, validator:this.cfg.checkNumber  } );
-       
-               /**
-               * True if the Calendar should show weekday labels. True by default.
-               * @config SHOW_WEEKDAYS
-               * @type Boolean
-               * @default true
-               */
-               this.cfg.addProperty(defCfg.SHOW_WEEKDAYS.key,  { value:defCfg.SHOW_WEEKDAYS.value, handler:this.configOptions, validator:this.cfg.checkBoolean  } );
-       
-               /**
-               * True if the Calendar should show week row headers. False by default.
-               * @config SHOW_WEEK_HEADER
-               * @type Boolean
-               * @default false
-               */
-               this.cfg.addProperty(defCfg.SHOW_WEEK_HEADER.key, { value:defCfg.SHOW_WEEK_HEADER.value, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-       
-               /**
-               * True if the Calendar should show week row footers. False by default.
-               * @config SHOW_WEEK_FOOTER
-               * @type Boolean
-               * @default false
-               */      
-               this.cfg.addProperty(defCfg.SHOW_WEEK_FOOTER.key,{ value:defCfg.SHOW_WEEK_FOOTER.value, handler:this.configOptions, validator:this.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
-               */      
-               this.cfg.addProperty(defCfg.HIDE_BLANK_WEEKS.key, { value:defCfg.HIDE_BLANK_WEEKS.value, handler:this.configOptions, validator:this.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
-               */      
-               this.cfg.addProperty(defCfg.NAV_ARROW_LEFT.key, { value:defCfg.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
-               */      
-               this.cfg.addProperty(defCfg.NAV_ARROW_RIGHT.key, { value:defCfg.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"]
-               */
-               this.cfg.addProperty(defCfg.MONTHS_SHORT.key,   { value:defCfg.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"
-               */      
-               this.cfg.addProperty(defCfg.MONTHS_LONG.key,            { value:defCfg.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"]
-               */      
-               this.cfg.addProperty(defCfg.WEEKDAYS_1CHAR.key, { value:defCfg.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"]
-               */      
-               this.cfg.addProperty(defCfg.WEEKDAYS_SHORT.key, { value:defCfg.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"]
-               */      
-               this.cfg.addProperty(defCfg.WEEKDAYS_MEDIUM.key,        { value:defCfg.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"]
-               */      
-               this.cfg.addProperty(defCfg.WEEKDAYS_LONG.key,  { value:defCfg.WEEKDAYS_LONG.value, handler:this.configLocale } );
-       
-               /**
-               * Refreshes the locale values used to build the Calendar.
-               * @method refreshLocale
-               * @private
-               */
-               var refreshLocale = function() {
-                       this.cfg.refireEvent(defCfg.LOCALE_MONTHS.key);
-                       this.cfg.refireEvent(defCfg.LOCALE_WEEKDAYS.key);
-               };
-       
-               this.cfg.subscribeToConfigEvent(defCfg.START_WEEKDAY.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.MONTHS_SHORT.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.MONTHS_LONG.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.WEEKDAYS_1CHAR.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.WEEKDAYS_SHORT.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.WEEKDAYS_MEDIUM.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.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"
-               */      
-               this.cfg.addProperty(defCfg.LOCALE_MONTHS.key,  { value:defCfg.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"
-               */      
-               this.cfg.addProperty(defCfg.LOCALE_WEEKDAYS.key,        { value:defCfg.LOCALE_WEEKDAYS.value, handler:this.configLocaleValues } );
-       
-               /**
-               * The value used to delimit individual dates in a date string passed to various Calendar functions.
-               * @config DATE_DELIMITER
-               * @type String
-               * @default ","
-               */      
-               this.cfg.addProperty(defCfg.DATE_DELIMITER.key,         { value:defCfg.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 "/"
-               */      
-               this.cfg.addProperty(defCfg.DATE_FIELD_DELIMITER.key, { value:defCfg.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 "-"
-               */
-               this.cfg.addProperty(defCfg.DATE_RANGE_DELIMITER.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.MY_MONTH_POSITION.key,      { value:defCfg.MY_MONTH_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the year in a month/year date string
-               * @config MY_YEAR_POSITION
-               * @type Number
-               * @default 2
-               */
-               this.cfg.addProperty(defCfg.MY_YEAR_POSITION.key,       { value:defCfg.MY_YEAR_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the month in a month/day date string
-               * @config MD_MONTH_POSITION
-               * @type Number
-               * @default 1
-               */
-               this.cfg.addProperty(defCfg.MD_MONTH_POSITION.key,      { value:defCfg.MD_MONTH_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the day in a month/year date string
-               * @config MD_DAY_POSITION
-               * @type Number
-               * @default 2
-               */
-               this.cfg.addProperty(defCfg.MD_DAY_POSITION.key,                { value:defCfg.MD_DAY_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the month in a month/day/year date string
-               * @config MDY_MONTH_POSITION
-               * @type Number
-               * @default 1
-               */
-               this.cfg.addProperty(defCfg.MDY_MONTH_POSITION.key,     { value:defCfg.MDY_MONTH_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the day in a month/day/year date string
-               * @config MDY_DAY_POSITION
-               * @type Number
-               * @default 2
-               */
-               this.cfg.addProperty(defCfg.MDY_DAY_POSITION.key,       { value:defCfg.MDY_DAY_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the year in a month/day/year date string
-               * @config MDY_YEAR_POSITION
-               * @type Number
-               * @default 3
-               */
-               this.cfg.addProperty(defCfg.MDY_YEAR_POSITION.key,      { value:defCfg.MDY_YEAR_POSITION.value, handler:this.configLocale, validator:this.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
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_MONTH_POSITION.key,        { value:defCfg.MY_LABEL_MONTH_POSITION.value, handler:this.configLocale, validator:this.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
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_YEAR_POSITION.key, { value:defCfg.MY_LABEL_YEAR_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The suffix used after the month when rendering the Calendar header
-               * @config MY_LABEL_MONTH_SUFFIX
-               * @type String
-               * @default " "
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_MONTH_SUFFIX.key,  { value:defCfg.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 ""
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_YEAR_SUFFIX.key, { value:defCfg.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 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
-               */
-               this.cfg.addProperty(defCfg.NAV.key, { value:defCfg.NAV.value, handler:this.configNavigator } );
-       },
-
-       /**
-       * The default handler for the "pagedate" property
-       * @method configPageDate
-       */
-       configPageDate : function(type, args, obj) {
-               this.cfg.setProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.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 (YAHOO.lang.isString(val)) {
-                       val = this._parseDate(val);
-                       this.cfg.setProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.MINDATE.key, YAHOO.widget.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 (YAHOO.lang.isString(val)) {
-                       val = this._parseDate(val);
-                       this.cfg.setProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.MAXDATE.key, YAHOO.widget.DateMath.getDate(val[0],(val[1]-1),val[2]));
-               }
-       },
-       
-       /**
-       * The default handler for the "selected" property
-       * @method configSelected
-       */
-       configSelected : function(type, args, obj) {
-               var selected = args[0];
-               var cfgSelected = YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key;
-               
-               if (selected) {
-                       if (YAHOO.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) {
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-               this.Locale[type.toUpperCase()] = args[0];
-       
-               this.cfg.refireEvent(defCfg.LOCALE_MONTHS.key);
-               this.cfg.refireEvent(defCfg.LOCALE_WEEKDAYS.key);
-       },
-       
-       /**
-       * The default handler for all configuration locale field length properties
-       * @method configLocaleValues
-       */
-       configLocaleValues : function(type, args, obj) {
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG; 
-       
-               type = type.toLowerCase();
-               var val = args[0];
-       
-               switch (type) {
-                       case defCfg.LOCALE_MONTHS.key:
-                               switch (val) {
-                                       case YAHOO.widget.Calendar.SHORT:
-                                               this.Locale.LOCALE_MONTHS = this.cfg.getProperty(defCfg.MONTHS_SHORT.key).concat();
-                                               break;
-                                       case YAHOO.widget.Calendar.LONG:
-                                               this.Locale.LOCALE_MONTHS = this.cfg.getProperty(defCfg.MONTHS_LONG.key).concat();
-                                               break;
-                               }
-                               break;
-                       case defCfg.LOCALE_WEEKDAYS.key:
-                               switch (val) {
-                                       case YAHOO.widget.Calendar.ONE_CHAR:
-                                               this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty(defCfg.WEEKDAYS_1CHAR.key).concat();
-                                               break;
-                                       case YAHOO.widget.Calendar.SHORT:
-                                               this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty(defCfg.WEEKDAYS_SHORT.key).concat();
-                                               break;
-                                       case YAHOO.widget.Calendar.MEDIUM:
-                                               this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty(defCfg.WEEKDAYS_MEDIUM.key).concat();
-                                               break;
-                                       case YAHOO.widget.Calendar.LONG:
-                                               this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty(defCfg.WEEKDAYS_LONG.key).concat();
-                                               break;
-                               }
-                               
-                               var START_WEEKDAY = this.cfg.getProperty(defCfg.START_WEEKDAY.key);
-       
-                               if (START_WEEKDAY > 0) {
-                                       for (var w=0;w<START_WEEKDAY;++w) {
-                                               this.Locale.LOCALE_WEEKDAYS.push(this.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 || YAHOO.lang.isObject(val))) {
-                       if (!this.oNavigator) {
-                               this.oNavigator = new YAHOO.widget.CalendarNavigator(this);
-                               // Cleanup DOM Refs/Events before innerHTML is removed.
-                               function erase() {
-                                       if (!this.pages) {
-                                               this.oNavigator.erase();
-                                       }
-                               }
-                               this.beforeRenderEvent.subscribe(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 = YAHOO.widget.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
-               };
-       },
-       
-       /**
-       * 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() {
-               var pageDate = this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key);
-       
-               var monthLabel  = this.Locale.LOCALE_MONTHS[pageDate.getMonth()] + this.Locale.MY_LABEL_MONTH_SUFFIX;
-               var yearLabel = pageDate.getFullYear() + 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 = YAHOO.util.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);
-       
-               YAHOO.util.Dom.addClass(this.oDomContainer, "withtitle");
-       
-               return tDiv;
-       },
-       
-       /**
-        * Removes the title bar element from the DOM
-        * 
-        * @method removeTitleBar
-        */
-       removeTitleBar : function() {
-               var tDiv = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null;
-               if (tDiv) {
-                       YAHOO.util.Event.purgeElement(tDiv);
-                       this.oDomContainer.removeChild(tDiv);
-               }
-               YAHOO.util.Dom.removeClass(this.oDomContainer, "withtitle");
-       },
-       
-       /**
-        * Creates the close button HTML element and adds it to Calendar container DIV
-        * 
-        * @method createCloseButton
-        * @return The close HTML element created
-        */
-       createCloseButton : function() {
-               var Dom = YAHOO.util.Dom,
-                       Event = YAHOO.util.Event,
-                       cssClose = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,
-                       DEPR_CLOSE_PATH = "us/my/bn/x_d.gif";
-       
-               var lnk = Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0];
-       
-               if (!lnk) {
-                       lnk = document.createElement("a");  
-                       Event.addListener(lnk, "click", function(e, cal) {
-                               cal.hide(); 
-                               Event.preventDefault(e);
-                       }, this);        
-               }
-       
-               lnk.href = "#";
-               lnk.className = "link-close";
-       
-               if (YAHOO.widget.Calendar.IMG_ROOT !== null) {
-                       var img = Dom.getElementsByClassName(cssClose, "img", lnk)[0] || document.createElement("img");
-                       img.src = YAHOO.widget.Calendar.IMG_ROOT + DEPR_CLOSE_PATH;
-                       img.className = cssClose;
-                       lnk.appendChild(img);
-               } else {
-                       lnk.innerHTML = '<span class="' + cssClose + ' ' + this.Style.CSS_CLOSE + '"></span>';
-               }
-               this.oDomContainer.appendChild(lnk);
-       
-               return lnk;
-       },
-       
-       /**
-        * Removes the close button HTML element from the DOM
-        * 
-        * @method removeCloseButton
-        */
-       removeCloseButton : function() {
-               var btn = YAHOO.util.Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0] || null;
-               if (btn) {
-                       YAHOO.util.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;
-               
-               var DEPR_NAV_LEFT = "us/tr/callt.gif";
-               var DEPR_NAV_RIGHT = "us/tr/calrt.gif"; 
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-               
-               if (this.cfg.getProperty(defCfg.SHOW_WEEK_HEADER.key)) {
-                       colSpan += 1;
-               }
-       
-               if (this.cfg.getProperty(defCfg.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) {
-                       var leftArrow = this.cfg.getProperty(defCfg.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 && YAHOO.widget.Calendar.IMG_ROOT !== null) {
-                               leftArrow = YAHOO.widget.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 + ' >&#160;</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) {
-                       var rightArrow = this.cfg.getProperty(defCfg.NAV_ARROW_RIGHT.key);
-                       if (rightArrow === null && YAHOO.widget.Calendar.IMG_ROOT !== null) {
-                               rightArrow = YAHOO.widget.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 + ' >&#160;</a>';
-               }
-
-               html[html.length] =     '</div>\n</th>\n</tr>';
-
-               if (this.cfg.getProperty(defCfg.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) {
-       
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-       
-               html[html.length] = '<tr class="' + this.Style.CSS_WEEKDAY_ROW + '">';
-       
-               if (this.cfg.getProperty(defCfg.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="calweekdaycell">' + this.Locale.LOCALE_WEEKDAYS[i] + '</th>';
-               }
-       
-               if (this.cfg.getProperty(defCfg.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 defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-       
-               var startDay = this.cfg.getProperty(defCfg.START_WEEKDAY.key);
-       
-               this.preMonthDays = workingDate.getDay();
-               if (startDay > 0) {
-                       this.preMonthDays -= startDay;
-               }
-               if (this.preMonthDays < 0) {
-                       this.preMonthDays += 7;
-               }
-               
-               this.monthDays = YAHOO.widget.DateMath.findMonthEnd(workingDate).getDate();
-               this.postMonthDays = YAHOO.widget.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 = YAHOO.widget.DateMath.subtract(workingDate, YAHOO.widget.DateMath.DAY, this.preMonthDays);
-               this.logger.log("Calendar page starts on " + workingDate, "render");
-       
-               var weekNum,weekClass;
-               var weekPrefix = "w";
-               var cellPrefix = "_cell";
-               var workingDayPrefix = "wd";
-               var dayPrefix = "d";
-               
-               var cellRenderers;
-               var renderer;
-               
-               var todayYear = this.today.getFullYear();
-               var todayMonth = this.today.getMonth();
-               var todayDate = this.today.getDate();
-               
-               var useDate = this.cfg.getProperty(defCfg.PAGEDATE.key);
-               var hideBlankWeeks = this.cfg.getProperty(defCfg.HIDE_BLANK_WEEKS.key);
-               var showWeekFooter = this.cfg.getProperty(defCfg.SHOW_WEEK_FOOTER.key);
-               var showWeekHeader = this.cfg.getProperty(defCfg.SHOW_WEEK_HEADER.key);
-               var mindate = this.cfg.getProperty(defCfg.MINDATE.key);
-               var maxdate = this.cfg.getProperty(defCfg.MAXDATE.key);
-       
-               if (mindate) {
-                       mindate = YAHOO.widget.DateMath.clearTime(mindate);
-               }
-               if (maxdate) {
-                       maxdate = YAHOO.widget.DateMath.clearTime(maxdate);
-               }
-               
-               html[html.length] = '<tbody class="m' + (useDate.getMonth()+1) + ' ' + this.Style.CSS_BODY + '">';
-               
-               var i = 0;
-       
-               var tempDiv = document.createElement("div");
-               var cell = document.createElement("td");
-               tempDiv.appendChild(cell);
-       
-               var cal = this.parent || this;
-       
-               for (var r=0;r<6;r++) {
-       
-                       weekNum = YAHOO.widget.DateMath.getWeekNumber(workingDate, useDate.getFullYear(), 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() + "-" + (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 {
-                                               YAHOO.util.Dom.addClass(cell, workingDayPrefix + workingDate.getDay());
-                                               YAHOO.util.Dom.addClass(cell, dayPrefix + workingDate.getDate());
-                                       
-                                               for (var s=0;s<this.renderStack.length;++s) {
-       
-                                                       renderer = null;
-       
-                                                       var rArray = this.renderStack[s];
-                                                       var type = rArray[0];
-                                                       
-                                                       var month;
-                                                       var day;
-                                                       var year;
-                                                       
-                                                       switch (type) {
-                                                               case YAHOO.widget.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 YAHOO.widget.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 YAHOO.widget.Calendar.RANGE:
-                                                                       var date1 = rArray[1][0];
-                                                                       var date2 = rArray[1][1];
-       
-                                                                       var d1month = date1[1];
-                                                                       var d1day = date1[2];
-                                                                       var d1year = date1[0];
-                                                                       
-                                                                       var d1 = YAHOO.widget.DateMath.getDate(d1year, d1month-1, d1day);
-       
-                                                                       var d2month = date2[1];
-                                                                       var d2day = date2[2];
-                                                                       var d2year = date2[0];
-       
-                                                                       var d2 = YAHOO.widget.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 YAHOO.widget.Calendar.WEEKDAY:
-                                                                       
-                                                                       var weekday = rArray[1][0];
-                                                                       if (workingDate.getDay()+1 == weekday) {
-                                                                               renderer = rArray[2];
-                                                                       }
-                                                                       break;
-                                                               case YAHOO.widget.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() + "-" + (workingDate.getMonth()+1) + "-" + workingDate.getDate() + ")", "cellrender");
-                                               if (cellRenderers[x].call(cal, workingDate, cell) == YAHOO.widget.Calendar.STOP_RENDER) {
-                                                       break;
-                                               }
-                                       }
-       
-                                       workingDate.setTime(workingDate.getTime() + YAHOO.widget.DateMath.ONE_DAY_MS);
-       
-                                       if (i >= 0 && i <= 6) {
-                                               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_TOP);
-                                       }
-                                       if ((i % 7) === 0) {
-                                               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_LEFT);
-                                       }
-                                       if (((i+1) % 7) === 0) {
-                                               YAHOO.util.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)) {
-                                               YAHOO.util.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();
-       
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-       
-               // Find starting day of the current month
-               var workingDate = YAHOO.widget.DateMath.findMonthStart(this.cfg.getProperty(defCfg.PAGEDATE.key));
-       
-               this.resetRenderers();
-               this.cellDates.length = 0;
-
-               YAHOO.util.Event.purgeElement(this.oDomContainer, true);
-
-               var html = [];
-       
-               html[html.length] = '<table cellSpacing="0" class="' + this.Style.CSS_CALENDAR + ' y' + workingDate.getFullYear() + '" 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 = this.oDomContainer.getElementsByTagName("td");
-       
-               this.cfg.refireEvent(defCfg.TITLE.key);
-               this.cfg.refireEvent(defCfg.CLOSE.key);
-               this.cfg.refireEvent(defCfg.IFRAME.key);
-       
-               this.renderEvent.fire();
-       },
-
-       /**
-       * Applies the Calendar's DOM listeners to applicable elements.
-       * @method applyListeners
-       */
-       applyListeners : function() {
-               var root = this.oDomContainer;
-               var cal = this.parent || this;
-               var anchor = "a";
-               var mousedown = "mousedown";
-
-               var linkLeft = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, anchor, root);
-               var linkRight = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, anchor, root);
-       
-               if (linkLeft && linkLeft.length > 0) {
-                       this.linkLeft = linkLeft[0];
-                       YAHOO.util.Event.addListener(this.linkLeft, mousedown, cal.previousMonth, cal, true);
-               }
-
-               if (linkRight && linkRight.length > 0) {
-                       this.linkRight = linkRight[0];
-                       YAHOO.util.Event.addListener(this.linkRight, mousedown, cal.nextMonth, cal, true);
-               }
-
-               if (cal.cfg.getProperty("navigator") !== null) {
-                       this.applyNavListeners();
-               }
-
-               if (this.domEventMap) {
-                       var el,elements;
-                       for (var cls in this.domEventMap) {     
-                               if (YAHOO.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 = YAHOO.util.Dom.getElementsByClassName(cls, item.tag, this.oDomContainer);
-       
-                                               for (var c=0;c<elements.length;c++) {
-                                                       el = elements[c];
-                                                        YAHOO.util.Event.addListener(el, item.event, item.handler, item.scope, item.correct );
-                                               }
-                                       }
-                               }
-                       }
-               }
-       
-               YAHOO.util.Event.addListener(this.oDomContainer, "click", this.doSelectCell, this);
-               YAHOO.util.Event.addListener(this.oDomContainer, "mouseover", this.doCellMouseOver, this);
-               YAHOO.util.Event.addListener(this.oDomContainer, "mouseout", this.doCellMouseOut, this);
-       },
-
-       applyNavListeners : function() {
-
-               var E = YAHOO.util.Event;
-
-               var calParent = this.parent || this;
-               var cal = this;
-
-               var navBtns = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV, "a", this.oDomContainer);
-
-               if (navBtns.length > 0) {
-
-                       function show(e, obj) {
-                               var target = E.getTarget(e);
-                               // this == navBtn
-                               if (this === target || YAHOO.util.Dom.isAncestor(this, target)) {
-                                       E.preventDefault(e);
-                               }
-                               var navigator = calParent.oNavigator;
-                               if (navigator) {
-                                       var pgdate = cal.cfg.getProperty("pagedate");
-                                       navigator.setYear(pgdate.getFullYear());
-                                       navigator.setMonth(pgdate.getMonth());
-                                       navigator.show();
-                               }
-                       }
-                       E.addListener(navBtns, "click", 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 YAHOO.widget.DateMath.getDate(date[0],date[1]-1,date[2]);
-       },
-       
-       /**
-       * 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 = id.toLowerCase().split("_cell")[1];
-               id = parseInt(id, 10);
-               return this.cellDates[id];
-       },
-       
-       /**
-        * 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;
-       },
-       
-       // 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) {
-               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_OOB);
-               cell.innerHTML = workingDate.getDate();
-               return YAHOO.widget.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="calrowhead">' + 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="calrowfoot">' + 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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_OOM);
-               cell.innerHTML=workingDate.getDate();
-               return YAHOO.widget.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) {
-               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL);
-               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED);
-               cell.innerHTML=workingDate.getDate();
-               return YAHOO.widget.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 = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               this.cfg.setProperty(cfgPageDate, YAHOO.widget.DateMath.add(this.cfg.getProperty(cfgPageDate), YAHOO.widget.DateMath.MONTH, count));
-               this.resetRenderers();
-               this.changePageEvent.fire();
-       },
-       
-       /**
-       * 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) {
-               var cfgPageDate = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               this.cfg.setProperty(cfgPageDate, YAHOO.widget.DateMath.subtract(this.cfg.getProperty(cfgPageDate), YAHOO.widget.DateMath.MONTH, count));
-               this.resetRenderers();
-               this.changePageEvent.fire();
-       },
-       
-       /**
-       * 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 = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               this.cfg.setProperty(cfgPageDate, YAHOO.widget.DateMath.add(this.cfg.getProperty(cfgPageDate), YAHOO.widget.DateMath.YEAR, count));
-               this.resetRenderers();
-               this.changePageEvent.fire();
-       },
-       
-       /**
-       * 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) {
-               var cfgPageDate = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               this.cfg.setProperty(cfgPageDate, YAHOO.widget.DateMath.subtract(this.cfg.getProperty(cfgPageDate), YAHOO.widget.DateMath.YEAR, count));
-               this.resetRenderers();
-               this.changePageEvent.fire();
-       },
-       
-       /**
-       * 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.subtractMonths(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.subtractYears(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() {
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-               this.cfg.resetProperty(defCfg.SELECTED.key);
-               this.cfg.resetProperty(defCfg.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() {
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-               this.cfg.setProperty(defCfg.SELECTED.key, []);
-               this.cfg.setProperty(defCfg.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);
-               this.logger.log("Selection field array: " + aToBeSelected, "info");
-       
-               // Filtered array of valid dates
-               var validDates = [];
-               var selected = [];
-               var cfgSelected = YAHOO.widget.Calendar._DEFAULT_CONFIG.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) { 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];
-               var cellDate = this.cellDates[cellIndex];
-               var dCellDate = this._toDate(cellDate);
-               this.logger.log("Select: " + dCellDate, "info");
-               
-               var selectable = YAHOO.util.Dom.hasClass(cell, this.Style.CSS_CELL_SELECTABLE);
-               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 = YAHOO.widget.Calendar._DEFAULT_CONFIG.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);
-               this.logger.log("Deselection field array: " + aToBeDeselected, "info");
-       
-               var validDates = [];
-               var selected = [];
-               var cfgSelected = YAHOO.widget.Calendar._DEFAULT_CONFIG.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) { 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];
-               var cellDate = this.cellDates[cellIndex];
-               var cellDateIndex = this._indexOfSelectedFieldArray(cellDate);
-               
-               var selectable = YAHOO.util.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 defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-                       var selected = this.cfg.getProperty(defCfg.SELECTED.key);
-       
-                       var dCellDate = this._toDate(cellDate);
-                       var selectDate = cellDate.concat();
-       
-                       if (cellDateIndex > -1) {
-                               if (this.cfg.getProperty(defCfg.PAGEDATE.key).getMonth() == dCellDate.getMonth() &&
-                                       this.cfg.getProperty(defCfg.PAGEDATE.key).getFullYear() == dCellDate.getFullYear()) {
-                                       YAHOO.util.Dom.removeClass(cell, this.Style.CSS_CELL_SELECTED);
-                               }
-                               selected.splice(cellDateIndex, 1);
-                       }
-       
-                       if (this.parent) {
-                               this.parent.cfg.setProperty(defCfg.SELECTED.key, selected);
-                       } else {
-                               this.cfg.setProperty(defCfg.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 = YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key;
-       
-               var selected = this.cfg.getProperty(cfgSelected);
-               var count = selected.length;
-               var 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 (YAHOO.lang.isString(date)) {
-                       returnDate = this._parseDates(date);
-               } else if (YAHOO.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 YAHOO.widget.DateMath.getDate(dateFieldArray[0],dateFieldArray[1]-1,dateFieldArray[2]);
-               }
-       },
-       
-       // END TYPE CONVERSION METHODS 
-       
-       // BEGIN UTILITY METHODS
-       
-       /**
-       * Converts a date field array [yyyy,mm,dd] to a JavaScript Date object.
-       * @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;
-               var seldates = this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.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(YAHOO.widget.Calendar._DEFAULT_CONFIG.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 defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-               
-               var minDate = this.cfg.getProperty(defCfg.MINDATE.key);
-               var maxDate = this.cfg.getProperty(defCfg.MAXDATE.key);
-               var dm = YAHOO.widget.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;
-               
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-       
-               if (date) {
-                       if (date instanceof Date) {
-                               parsedDate = YAHOO.widget.DateMath.findMonthStart(date);
-                       } else {
-                               var month, year, aMonthYear;
-                               aMonthYear = date.split(this.cfg.getProperty(defCfg.DATE_FIELD_DELIMITER.key));
-                               month = parseInt(aMonthYear[this.cfg.getProperty(defCfg.MY_MONTH_POSITION.key)-1], 10)-1;
-                               year = parseInt(aMonthYear[this.cfg.getProperty(defCfg.MY_YEAR_POSITION.key)-1], 10);
-
-                               parsedDate = YAHOO.widget.DateMath.getDate(year, month, 1);
-                       }
-               } else {
-                       parsedDate = YAHOO.widget.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(YAHOO.widget.Calendar._DEFAULT_CONFIG.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);
-               var rArray;
-       
-               if (aDate.length == 2) {
-                       rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]];
-                       rArray.type = YAHOO.widget.Calendar.MONTH_DAY;
-               } else {
-                       rArray = [aDate[this.Locale.MDY_YEAR_POSITION-1],aDate[this.Locale.MDY_MONTH_POSITION-1],aDate[this.Locale.MDY_DAY_POSITION-1]];
-                       rArray.type = YAHOO.widget.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 = [];
-       
-               var 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);
-       
-                               var dateStart = this._parseDate(aRange[0]);
-                               var dateEnd = this._parseDate(aRange[1]);
-       
-                               var 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 = YAHOO.widget.DateMath.add(YAHOO.widget.DateMath.getDate(startDate[0],startDate[1]-1,startDate[2]),YAHOO.widget.DateMath.DAY,1);
-               var dEnd     = YAHOO.widget.DateMath.getDate(endDate[0],  endDate[1]-1,  endDate[2]);
-       
-               var results = [];
-               results.push(startDate);
-               while (dCurrent.getTime() <= dEnd.getTime()) {
-                       results.push([dCurrent.getFullYear(),dCurrent.getMonth()+1,dCurrent.getDate()]);
-                       dCurrent = YAHOO.widget.DateMath.add(dCurrent,YAHOO.widget.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(YAHOO.widget.Calendar.RANGE,aDate,fnRender);
-                               } else { // this is a month/day combo
-                                       this._addRenderer(YAHOO.widget.Calendar.MONTH_DAY,aDate,fnRender);
-                               }
-                       } else if (aDate.length == 3) {
-                               this._addRenderer(YAHOO.widget.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(YAHOO.widget.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 (0-6) 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(YAHOO.widget.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) {
-                       YAHOO.util.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 = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               var 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 = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               var current = this.cfg.getProperty(cfgPageDate);
-               current.setFullYear(parseInt(year, 10));
-               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 = [];
-               var selected = this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key);
-
-               for (var d=0;d<selected.length;++d) {
-                       var dateArray = selected[d];
-
-                       var date = YAHOO.widget.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;
-       }
-};
-
-/**
-* @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;
-
-/**
-* 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.
-*/
-YAHOO.widget.CalendarGroup = function(id, containerId, config) {
-       if (arguments.length > 0) {
-               this.init.apply(this, arguments);
-       }
-};
-
-YAHOO.widget.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 = YAHOO.util.Dom.get(container);
-               if (!this.oDomContainer) { this.logger.log("Container not found in document.", "error"); }
-
-               if (!this.oDomContainer.id) {
-                       this.oDomContainer.id = YAHOO.util.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 = [];
-
-               YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.CalendarGroup.CSS_CONTAINER);
-               YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.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 defCfg = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG;
-
-               /**
-               * 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
-               */
-               this.cfg.addProperty(defCfg.PAGES.key, { value:defCfg.PAGES.value, validator:this.cfg.checkNumber, handler:this.configPages } );
-
-               /**
-               * The month/year representing the current visible Calendar date (mm/yyyy)
-               * @config pagedate
-               * @type String
-               * @default today's date
-               */
-               this.cfg.addProperty(defCfg.PAGEDATE.key, { value:new Date(), handler:this.configPageDate } );
-
-               /**
-               * The date or range of dates representing the current Calendar selection
-               * @config selected
-               * @type String
-               * @default []
-               */
-               this.cfg.addProperty(defCfg.SELECTED.key, { value:[], handler:this.configSelected } );
-
-               /**
-               * The title to display above the CalendarGroup's month header
-               * @config title
-               * @type String
-               * @default ""
-               */
-               this.cfg.addProperty(defCfg.TITLE.key, { value:defCfg.TITLE.value, handler:this.configTitle } );
-
-               /**
-               * Whether or not a close button should be displayed for this CalendarGroup
-               * @config close
-               * @type Boolean
-               * @default false
-               */
-               this.cfg.addProperty(defCfg.CLOSE.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.IFRAME.key, { value:defCfg.IFRAME.value, handler:this.configIframe, validator:this.cfg.checkBoolean } );
-       
-               /**
-               * The minimum selectable date in the current Calendar (mm/dd/yyyy)
-               * @config mindate
-               * @type String
-               * @default null
-               */
-               this.cfg.addProperty(defCfg.MINDATE.key, { value:defCfg.MINDATE.value, handler:this.delegateConfig } );
-       
-               /**
-               * The maximum selectable date in the current Calendar (mm/dd/yyyy)
-               * @config maxdate
-               * @type String
-               * @default null
-               */      
-               this.cfg.addProperty(defCfg.MAXDATE.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.MULTI_SELECT.key,   { value:defCfg.MULTI_SELECT.value, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-       
-               /**
-               * The weekday the week begins on. Default is 0 (Sunday).
-               * @config START_WEEKDAY
-               * @type number
-               * @default 0
-               */      
-               this.cfg.addProperty(defCfg.START_WEEKDAY.key,  { value:defCfg.START_WEEKDAY.value, handler:this.delegateConfig, validator:this.cfg.checkNumber  } );
-               
-               /**
-               * True if the Calendar should show weekday labels. True by default.
-               * @config SHOW_WEEKDAYS
-               * @type Boolean
-               * @default true
-               */      
-               this.cfg.addProperty(defCfg.SHOW_WEEKDAYS.key,  { value:defCfg.SHOW_WEEKDAYS.value, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-               
-               /**
-               * True if the Calendar should show week row headers. False by default.
-               * @config SHOW_WEEK_HEADER
-               * @type Boolean
-               * @default false
-               */      
-               this.cfg.addProperty(defCfg.SHOW_WEEK_HEADER.key,{ value:defCfg.SHOW_WEEK_HEADER.value, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-               
-               /**
-               * True if the Calendar should show week row footers. False by default.
-               * @config SHOW_WEEK_FOOTER
-               * @type Boolean
-               * @default false
-               */
-               this.cfg.addProperty(defCfg.SHOW_WEEK_FOOTER.key,{ value:defCfg.SHOW_WEEK_FOOTER.value, handler:this.delegateConfig, validator:this.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
-               */              
-               this.cfg.addProperty(defCfg.HIDE_BLANK_WEEKS.key,{ value:defCfg.HIDE_BLANK_WEEKS.value, handler:this.delegateConfig, validator:this.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
-               */              
-               this.cfg.addProperty(defCfg.NAV_ARROW_LEFT.key, { value:defCfg.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
-               */              
-               this.cfg.addProperty(defCfg.NAV_ARROW_RIGHT.key,        { value:defCfg.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"]
-               */
-               this.cfg.addProperty(defCfg.MONTHS_SHORT.key,   { value:defCfg.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"
-               */              
-               this.cfg.addProperty(defCfg.MONTHS_LONG.key,            { value:defCfg.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"]
-               */              
-               this.cfg.addProperty(defCfg.WEEKDAYS_1CHAR.key, { value:defCfg.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"]
-               */              
-               this.cfg.addProperty(defCfg.WEEKDAYS_SHORT.key, { value:defCfg.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"]
-               */              
-               this.cfg.addProperty(defCfg.WEEKDAYS_MEDIUM.key,        { value:defCfg.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"]
-               */              
-               this.cfg.addProperty(defCfg.WEEKDAYS_LONG.key,  { value:defCfg.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"
-               */
-               this.cfg.addProperty(defCfg.LOCALE_MONTHS.key,  { value:defCfg.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"
-               */      
-               this.cfg.addProperty(defCfg.LOCALE_WEEKDAYS.key,        { value:defCfg.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 ","
-               */
-               this.cfg.addProperty(defCfg.DATE_DELIMITER.key,         { value:defCfg.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 "/"
-               */      
-               this.cfg.addProperty(defCfg.DATE_FIELD_DELIMITER.key,{ value:defCfg.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 "-"
-               */
-               this.cfg.addProperty(defCfg.DATE_RANGE_DELIMITER.key,{ value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.MY_MONTH_POSITION.key,      { value:defCfg.MY_MONTH_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the year in a month/year date string
-               * @config MY_YEAR_POSITION
-               * @type Number
-               * @default 2
-               */      
-               this.cfg.addProperty(defCfg.MY_YEAR_POSITION.key,       { value:defCfg.MY_YEAR_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the month in a month/day date string
-               * @config MD_MONTH_POSITION
-               * @type Number
-               * @default 1
-               */      
-               this.cfg.addProperty(defCfg.MD_MONTH_POSITION.key,      { value:defCfg.MD_MONTH_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the day in a month/year date string
-               * @config MD_DAY_POSITION
-               * @type Number
-               * @default 2
-               */      
-               this.cfg.addProperty(defCfg.MD_DAY_POSITION.key,                { value:defCfg.MD_DAY_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the month in a month/day/year date string
-               * @config MDY_MONTH_POSITION
-               * @type Number
-               * @default 1
-               */      
-               this.cfg.addProperty(defCfg.MDY_MONTH_POSITION.key,     { value:defCfg.MDY_MONTH_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the day in a month/day/year date string
-               * @config MDY_DAY_POSITION
-               * @type Number
-               * @default 2
-               */      
-               this.cfg.addProperty(defCfg.MDY_DAY_POSITION.key,       { value:defCfg.MDY_DAY_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the year in a month/day/year date string
-               * @config MDY_YEAR_POSITION
-               * @type Number
-               * @default 3
-               */      
-               this.cfg.addProperty(defCfg.MDY_YEAR_POSITION.key,      { value:defCfg.MDY_YEAR_POSITION.value, handler:this.delegateConfig, validator:this.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
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_MONTH_POSITION.key,        { value:defCfg.MY_LABEL_MONTH_POSITION.value, handler:this.delegateConfig, validator:this.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
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_YEAR_POSITION.key, { value:defCfg.MY_LABEL_YEAR_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The suffix used after the month when rendering the Calendar header
-               * @config MY_LABEL_MONTH_SUFFIX
-               * @type String
-               * @default " "
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_MONTH_SUFFIX.key,  { value:defCfg.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 ""
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_YEAR_SUFFIX.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.NAV.key, { value:defCfg.NAV.value, handler:this.configNavigator } );
-       },
-
-       /**
-       * Initializes CalendarGroup's built-in CustomEvents
-       * @method initEvents
-       */
-       initEvents : function() {
-               var me = this;
-               var strEvent = "Event";
-
-               /**
-               * 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 = YAHOO.widget.Calendar._EVENT_TYPES;
-       
-               /**
-               * Fired before a selection is made
-               * @event beforeSelectEvent
-               */
-               this.beforeSelectEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SELECT);
-               this.beforeSelectEvent.subscribe = sub; this.beforeSelectEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired when a selection is made
-               * @event selectEvent
-               * @param {Array}        Array of Date field arrays in the format [YYYY, MM, DD].
-               */
-               this.selectEvent = new YAHOO.util.CustomEvent(defEvents.SELECT); 
-               this.selectEvent.subscribe = sub; this.selectEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired before a selection is made
-               * @event beforeDeselectEvent
-               */
-               this.beforeDeselectEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_DESELECT); 
-               this.beforeDeselectEvent.subscribe = sub; this.beforeDeselectEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired when a selection is made
-               * @event deselectEvent
-               * @param {Array}        Array of Date field arrays in the format [YYYY, MM, DD].
-               */
-               this.deselectEvent = new YAHOO.util.CustomEvent(defEvents.DESELECT); 
-               this.deselectEvent.subscribe = sub; this.deselectEvent.unsubscribe = unsub;
-               
-               /**
-               * Fired when the Calendar page is changed
-               * @event changePageEvent
-               */
-               this.changePageEvent = new YAHOO.util.CustomEvent(defEvents.CHANGE_PAGE); 
-               this.changePageEvent.subscribe = sub; this.changePageEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired before the Calendar is rendered
-               * @event beforeRenderEvent
-               */
-               this.beforeRenderEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_RENDER);
-               this.beforeRenderEvent.subscribe = sub; this.beforeRenderEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired when the Calendar is rendered
-               * @event renderEvent
-               */
-               this.renderEvent = new YAHOO.util.CustomEvent(defEvents.RENDER);
-               this.renderEvent.subscribe = sub; this.renderEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired when the Calendar is reset
-               * @event resetEvent
-               */
-               this.resetEvent = new YAHOO.util.CustomEvent(defEvents.RESET); 
-               this.resetEvent.subscribe = sub; this.resetEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired when the Calendar is cleared
-               * @event clearEvent
-               */
-               this.clearEvent = new YAHOO.util.CustomEvent(defEvents.CLEAR);
-               this.clearEvent.subscribe = sub; this.clearEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired just before the CalendarGroup is to be shown
-               * @event beforeShowEvent
-               */
-               this.beforeShowEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SHOW);
-       
-               /**
-               * Fired after the CalendarGroup is shown
-               * @event showEvent
-               */
-               this.showEvent = new YAHOO.util.CustomEvent(defEvents.SHOW);
-       
-               /**
-               * Fired just before the CalendarGroup is to be hidden
-               * @event beforeHideEvent
-               */
-               this.beforeHideEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_HIDE);
-       
-               /**
-               * Fired after the CalendarGroup is hidden
-               * @event hideEvent
-               */
-               this.hideEvent = new YAHOO.util.CustomEvent(defEvents.HIDE);
-
-               /**
-               * Fired just before the CalendarNavigator is to be shown
-               * @event beforeShowNavEvent
-               */
-               this.beforeShowNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SHOW_NAV);
-       
-               /**
-               * Fired after the CalendarNavigator is shown
-               * @event showNavEvent
-               */
-               this.showNavEvent = new YAHOO.util.CustomEvent(defEvents.SHOW_NAV);
-       
-               /**
-               * Fired just before the CalendarNavigator is to be hidden
-               * @event beforeHideNavEvent
-               */
-               this.beforeHideNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_HIDE_NAV);
-       
-               /**
-               * Fired after the CalendarNavigator is hidden
-               * @event hideNavEvent
-               */
-               this.hideNavEvent = new YAHOO.util.CustomEvent(defEvents.HIDE_NAV);
-
-               /**
-               * Fired just before the CalendarNavigator is to be rendered
-               * @event beforeRenderNavEvent
-               */
-               this.beforeRenderNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_RENDER_NAV);
-
-               /**
-               * Fired after the CalendarNavigator is rendered
-               * @event renderNavEvent
-               */
-               this.renderNavEvent = new YAHOO.util.CustomEvent(defEvents.RENDER_NAV);
-       },
-       
-       /**
-       * 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];
-       
-               var cfgPageDate = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.PAGEDATE.key;
-       
-               // Define literals outside loop 
-               var sep = "_";
-               var groupCalClass = "groupcal";
-       
-               var firstClass = "first-of-type";
-               var lastClass = "last-of-type";
-       
-               for (var p=0;p<pageCount;++p) {
-                       var calId = this.id + sep + p;
-                       var calContainerId = this.containerId + sep + p;
-       
-                       var childConfig = this.cfg.getConfig();
-                       childConfig.close = false;
-                       childConfig.title = false;
-                       childConfig.navigator = null;
-
-                       var cal = this.constructChild(calId, calContainerId, childConfig);
-                       var caldate = cal.cfg.getProperty(cfgPageDate);
-                       this._setMonthOnDate(caldate, caldate.getMonth() + p);
-                       cal.cfg.setProperty(cfgPageDate, caldate);
-       
-                       YAHOO.util.Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE);
-                       YAHOO.util.Dom.addClass(cal.oDomContainer, groupCalClass);
-
-                       if (p===0) {
-                               YAHOO.util.Dom.addClass(cal.oDomContainer, firstClass);
-                       }
-       
-                       if (p==(pageCount-1)) {
-                               YAHOO.util.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];
-               var firstPageDate;
-               
-               var cfgPageDate = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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 = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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(YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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(YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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 YAHOO.widget.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 = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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 = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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();
-               }
-       },
-       
-       /**
-       * 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(YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.SELECTED.key);
-               for (var d=0;d<selected.length;++d) {
-                       var dateArray = selected[d];
-
-                       var date = YAHOO.widget.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 DM = YAHOO.widget.DateMath;
-                       var newDate = DM.add(date, DM.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;
-       }
-};
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_CONTAINER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.CalendarGroup.CSS_CONTAINER = "yui-calcontainer";
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_MULTI_UP
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.CalendarGroup.CSS_2UPCLOSE = "close-icon";
-
-YAHOO.lang.augmentProto(YAHOO.widget.CalendarGroup, YAHOO.widget.Calendar, "buildDayLabel",
-                                                                                                                                "buildMonthLabel",
-                                                                                                                                "renderOutOfBoundsDate",
-                                                                                                                                "renderRowHeader",
-                                                                                                                                "renderRowFooter",
-                                                                                                                                "renderCellDefault",
-                                                                                                                                "styleCellDefault",
-                                                                                                                                "renderCellStyleHighlight1",
-                                                                                                                                "renderCellStyleHighlight2",
-                                                                                                                                "renderCellStyleHighlight3",
-                                                                                                                                "renderCellStyleHighlight4",
-                                                                                                                                "renderCellStyleToday",
-                                                                                                                                "renderCellStyleSelected",
-                                                                                                                                "renderCellNotThisMonth",
-                                                                                                                                "renderBodyCellRestricted",
-                                                                                                                                "initStyles",
-                                                                                                                                "configTitle",
-                                                                                                                                "configClose",
-                                                                                                                                "configIframe",
-                                                                                                                                "configNavigator",
-                                                                                                                                "createTitleBar",
-                                                                                                                                "createCloseButton",
-                                                                                                                                "removeTitleBar",
-                                                                                                                                "removeCloseButton",
-                                                                                                                                "hide",
-                                                                                                                                "show",
-                                                                                                                                "toDate",
-                                                                                                                                "_parseArgs",
-                                                                                                                                "browser");
-
-/**
-* The set of default Config property keys and values for the CalendarGroup
-* @property YAHOO.widget.CalendarGroup._DEFAULT_CONFIG
-* @final
-* @static
-* @private
-* @type Object
-*/
-YAHOO.widget.CalendarGroup._DEFAULT_CONFIG = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.PAGES = {key:"pages", value:2};
-
-YAHOO.widget.CalGrp = YAHOO.widget.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, YAHOO.widget.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_CFG
-        * @protected
-        * @type Object
-        * @static
-        */
-       CN._DEFAULT_CFG = {
-               strings : {
-                       month: "Month",
-                       year: "Year",
-                       submit: "Okay",
-                       cancel: "Cancel",
-                       invalidYear : "Year needs to be a number"
-               },
-               monthFormat: YAHOO.widget.Calendar.LONG,
-               initialFocus: "year"
-       };
-
-       /**
-        * 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 IE6/IE7 Quirks
-                * @private
-                * @property __isIEQuirks
-                */
-               var ie = YAHOO.env.ua.ie;
-               this.__isIEQuirks = (ie && ((ie <= 6) || (ie === 7 && 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 and IE7 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;
-
-               // IE doesn't fire keypress for arrow/pg keys (non-char keys)
-               var ua = YAHOO.env.ua;
-               var arrowEvt = (ua.ie) ? "keydown" : "keypress";
-
-               // - IE 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) ? "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;
-
-               var arrowEvt = (YAHOO.env.ua.ie) ? "keydown" : "keypress";
-               var tabEvt = (YAHOO.env.ua.ie || YAHOO.env.ua.opera) ? "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;
-                       var nav = this;
-                       
-                       function update() {
-                               cal.setYear(nav.getYear());
-                               cal.setMonth(nav.getMonth());
-                               cal.render();
-                       }
-                       // Artificial delay, just to help the user see something changed
-                       var delay = YAHOO.widget.CalendarNavigator.UPDATE_DELAY;
-                       if (delay > 0) {
-                               window.setTimeout(update, delay);
-                       } else {
-                               update();
-                       }
-               }
-       },
-
-       /**
-        * 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;
-               var f = this.__getCfg("initialFocus");
-
-               if (f && f.toLowerCase) {
-                       f = f.toLowerCase();
-                       if (f == "year") {
-                               el = this.yearEl;
-                               try {
-                                       this.yearEl.select();
-                               } catch (e) {
-                                       // Ignore;
-                               }
-                       } else if (f == "month") {
-                               el = this.monthEl;
-                       }
-               }
-
-               if (el && YAHOO.lang.isFunction(el.focus)) {
-                       try {
-                               el.focus();
-                       } catch (e) {
-                               // 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;
-               var KEYS = YAHOO.util.KeyListener.KEY;
-               var 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(e) {
-                                       // 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;
-               var KEYS = YAHOO.util.KeyListener.KEY;
-
-               if (E.getCharCode(e) == KEYS.TAB && !e.shiftKey) {
-                       try {
-                               E.preventDefault(e);
-                               this.firstCtrl.focus();
-                       } catch (e) {
-                               // 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;
-               var KEYS = YAHOO.util.KeyListener.KEY;
-
-               if (e.shiftKey && E.getCharCode(e) == KEYS.TAB) {
-                       try {
-                               E.preventDefault(e);
-                               this.lastCtrl.focus();
-                       } catch (e) {
-                               // 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_CFG
-        * </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_CFG;
-               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.5.0", build: "895"});
diff --git a/lib/yui/calendar/calendar-min.js b/lib/yui/calendar/calendar-min.js
deleted file mode 100755 (executable)
index cb63250..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-(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,E;for(F in this.config){E=this.config[F];if(E&&E.event){D[F]=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){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.fireEvent(D,G);}}this.queueInProgress=false;this.eventQueue=[];},subscribeToConfigEvent:function(E,F,H,D){var G=this.config[E.toLowerCase()];if(G&&G.event){if(!A.alreadySubscribed(G.event,F,H)){G.event.subscribe(F,H,D);}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,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(C,F){C=this.clearTime(C);var E=new Date(C.getTime()+(4*this.ONE_DAY_MS)-((C.getDay())*this.ONE_DAY_MS));var B=this.getDate(E.getFullYear(),0,1);var A=((E.getTime()-B.getTime())/this.ONE_DAY_MS)-1;var D=Math.ceil((A)/7);return D;},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.widget.Calendar=function(C,A,B){this.init.apply(this,arguments);};YAHOO.widget.Calendar.IMG_ROOT=null;YAHOO.widget.Calendar.DATE="D";YAHOO.widget.Calendar.MONTH_DAY="MD";YAHOO.widget.Calendar.WEEKDAY="WD";YAHOO.widget.Calendar.RANGE="R";YAHOO.widget.Calendar.MONTH="M";YAHOO.widget.Calendar.DISPLAY_DAYS=42;YAHOO.widget.Calendar.STOP_RENDER="S";YAHOO.widget.Calendar.SHORT="short";YAHOO.widget.Calendar.LONG="long";YAHOO.widget.Calendar.MEDIUM="medium";YAHOO.widget.Calendar.ONE_CHAR="1char";YAHOO.widget.Calendar._DEFAULT_CONFIG={PAGEDATE:{key:"pagedate",value:null},SELECTED:{key:"selected",value:null},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}};YAHOO.widget.Calendar._EVENT_TYPES={BEFORE_SELECT:"beforeSelect",SELECT:"select",BEFORE_DESELECT:"beforeDeselect",DESELECT:"deselect",CHANGE_PAGE:"changePage",BEFORE_RENDER:"beforeRender",RENDER:"render",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"};YAHOO.widget.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"};YAHOO.widget.Calendar.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(B){var A={id:null,container:null,config:null};if(B&&B.length&&B.length>0){switch(B.length){case 1:A.id=null;A.container=B[0];A.config=null;break;case 2:if(YAHOO.lang.isObject(B[1])&&!B[1].tagName&&!(B[1] instanceof String)){A.id=null;A.container=B[0];A.config=B[1];}else{A.id=B[0];A.container=B[1];A.config=null;}break;default:A.id=B[0];A.container=B[1];A.config=B[2];break;}}else{}return A;},init:function(D,B,C){var A=this._parseArgs(arguments);D=A.id;B=A.container;C=A.config;this.oDomContainer=YAHOO.util.Dom.get(B);if(!this.oDomContainer.id){this.oDomContainer.id=YAHOO.util.Dom.generateId();}if(!D){D=this.oDomContainer.id+"_t";}this.id=D;this.containerId=this.oDomContainer.id;this.initEvents();this.today=new Date();YAHOO.widget.DateMath.clearTime(this.today);this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.initStyles();YAHOO.util.Dom.addClass(this.oDomContainer,this.Style.CSS_CONTAINER);YAHOO.util.Dom.addClass(this.oDomContainer,this.Style.CSS_SINGLE);this.cellDates=[];this.cells=[];this.renderStack=[];this._renderStack=[];this.setupConfig();if(C){this.cfg.applyConfig(C,true);}this.cfg.fireQueue();},configIframe:function(C,B,D){var A=B[0];if(!this.parent){if(YAHOO.util.Dom.inDocument(this.oDomContainer)){if(A){var E=YAHOO.util.Dom.getStyle(this.oDomContainer,"position");
-if(E=="absolute"||E=="relative"){if(!YAHOO.util.Dom.inDocument(this.iframe)){this.iframe=document.createElement("iframe");this.iframe.src="javascript:false;";YAHOO.util.Dom.setStyle(this.iframe,"opacity","0");if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<=6){YAHOO.util.Dom.addClass(this.iframe,"fixedsize");}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(B,A,C){var E=A[0];if(E){this.createTitleBar(E);}else{var D=this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.CLOSE.key);if(!D){this.removeTitleBar();}else{this.createTitleBar("&#160;");}}},configClose:function(B,A,C){var E=A[0],D=this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.TITLE.key);if(E){if(!D){this.createTitleBar("&#160;");}this.createCloseButton();}else{this.removeCloseButton();if(!D){this.removeTitleBar();}}},initEvents:function(){var A=YAHOO.widget.Calendar._EVENT_TYPES;this.beforeSelectEvent=new YAHOO.util.CustomEvent(A.BEFORE_SELECT);this.selectEvent=new YAHOO.util.CustomEvent(A.SELECT);this.beforeDeselectEvent=new YAHOO.util.CustomEvent(A.BEFORE_DESELECT);this.deselectEvent=new YAHOO.util.CustomEvent(A.DESELECT);this.changePageEvent=new YAHOO.util.CustomEvent(A.CHANGE_PAGE);this.beforeRenderEvent=new YAHOO.util.CustomEvent(A.BEFORE_RENDER);this.renderEvent=new YAHOO.util.CustomEvent(A.RENDER);this.resetEvent=new YAHOO.util.CustomEvent(A.RESET);this.clearEvent=new YAHOO.util.CustomEvent(A.CLEAR);this.beforeShowEvent=new YAHOO.util.CustomEvent(A.BEFORE_SHOW);this.showEvent=new YAHOO.util.CustomEvent(A.SHOW);this.beforeHideEvent=new YAHOO.util.CustomEvent(A.BEFORE_HIDE);this.hideEvent=new YAHOO.util.CustomEvent(A.HIDE);this.beforeShowNavEvent=new YAHOO.util.CustomEvent(A.BEFORE_SHOW_NAV);this.showNavEvent=new YAHOO.util.CustomEvent(A.SHOW_NAV);this.beforeHideNavEvent=new YAHOO.util.CustomEvent(A.BEFORE_HIDE_NAV);this.hideNavEvent=new YAHOO.util.CustomEvent(A.HIDE_NAV);this.beforeRenderNavEvent=new YAHOO.util.CustomEvent(A.BEFORE_RENDER_NAV);this.renderNavEvent=new YAHOO.util.CustomEvent(A.RENDER_NAV);this.beforeSelectEvent.subscribe(this.onBeforeSelect,this,true);this.selectEvent.subscribe(this.onSelect,this,true);this.beforeDeselectEvent.subscribe(this.onBeforeDeselect,this,true);this.deselectEvent.subscribe(this.onDeselect,this,true);this.changePageEvent.subscribe(this.onChangePage,this,true);this.renderEvent.subscribe(this.onRender,this,true);this.resetEvent.subscribe(this.onReset,this,true);this.clearEvent.subscribe(this.onClear,this,true);},doSelectCell:function(G,A){var L,F,I,C;var H=YAHOO.util.Event.getTarget(G);var B=H.tagName.toLowerCase();var E=false;while(B!="td"&&!YAHOO.util.Dom.hasClass(H,A.Style.CSS_CELL_SELECTABLE)){if(!E&&B=="a"&&YAHOO.util.Dom.hasClass(H,A.Style.CSS_CELL_SELECTOR)){E=true;}H=H.parentNode;B=H.tagName.toLowerCase();if(B=="html"){return ;}}if(E){YAHOO.util.Event.preventDefault(G);}L=H;if(YAHOO.util.Dom.hasClass(L,A.Style.CSS_CELL_SELECTABLE)){F=L.id.split("cell")[1];I=A.cellDates[F];C=YAHOO.widget.DateMath.getDate(I[0],I[1]-1,I[2]);var K;if(A.Options.MULTI_SELECT){K=L.getElementsByTagName("a")[0];if(K){K.blur();}var D=A.cellDates[F];var J=A._indexOfSelectedFieldArray(D);if(J>-1){A.deselectCell(F);}else{A.selectCell(F);}}else{K=L.getElementsByTagName("a")[0];if(K){K.blur();}A.selectCell(F);}}},doCellMouseOver:function(C,B){var A;if(C){A=YAHOO.util.Event.getTarget(C);}else{A=this;}while(A.tagName&&A.tagName.toLowerCase()!="td"){A=A.parentNode;if(!A.tagName||A.tagName.toLowerCase()=="html"){return ;}}if(YAHOO.util.Dom.hasClass(A,B.Style.CSS_CELL_SELECTABLE)){YAHOO.util.Dom.addClass(A,B.Style.CSS_CELL_HOVER);}},doCellMouseOut:function(C,B){var A;if(C){A=YAHOO.util.Event.getTarget(C);}else{A=this;}while(A.tagName&&A.tagName.toLowerCase()!="td"){A=A.parentNode;if(!A.tagName||A.tagName.toLowerCase()=="html"){return ;}}if(YAHOO.util.Dom.hasClass(A,B.Style.CSS_CELL_SELECTABLE)){YAHOO.util.Dom.removeClass(A,B.Style.CSS_CELL_HOVER);}},setupConfig:function(){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG;this.cfg.addProperty(A.PAGEDATE.key,{value:new Date(),handler:this.configPageDate});this.cfg.addProperty(A.SELECTED.key,{value:[],handler:this.configSelected});this.cfg.addProperty(A.TITLE.key,{value:A.TITLE.value,handler:this.configTitle});this.cfg.addProperty(A.CLOSE.key,{value:A.CLOSE.value,handler:this.configClose});this.cfg.addProperty(A.IFRAME.key,{value:A.IFRAME.value,handler:this.configIframe,validator:this.cfg.checkBoolean});this.cfg.addProperty(A.MINDATE.key,{value:A.MINDATE.value,handler:this.configMinDate});this.cfg.addProperty(A.MAXDATE.key,{value:A.MAXDATE.value,handler:this.configMaxDate});this.cfg.addProperty(A.MULTI_SELECT.key,{value:A.MULTI_SELECT.value,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty(A.START_WEEKDAY.key,{value:A.START_WEEKDAY.value,handler:this.configOptions,validator:this.cfg.checkNumber});this.cfg.addProperty(A.SHOW_WEEKDAYS.key,{value:A.SHOW_WEEKDAYS.value,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty(A.SHOW_WEEK_HEADER.key,{value:A.SHOW_WEEK_HEADER.value,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty(A.SHOW_WEEK_FOOTER.key,{value:A.SHOW_WEEK_FOOTER.value,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty(A.HIDE_BLANK_WEEKS.key,{value:A.HIDE_BLANK_WEEKS.value,handler:this.configOptions,validator:this.cfg.checkBoolean});this.cfg.addProperty(A.NAV_ARROW_LEFT.key,{value:A.NAV_ARROW_LEFT.value,handler:this.configOptions});this.cfg.addProperty(A.NAV_ARROW_RIGHT.key,{value:A.NAV_ARROW_RIGHT.value,handler:this.configOptions});this.cfg.addProperty(A.MONTHS_SHORT.key,{value:A.MONTHS_SHORT.value,handler:this.configLocale});this.cfg.addProperty(A.MONTHS_LONG.key,{value:A.MONTHS_LONG.value,handler:this.configLocale});this.cfg.addProperty(A.WEEKDAYS_1CHAR.key,{value:A.WEEKDAYS_1CHAR.value,handler:this.configLocale});
-this.cfg.addProperty(A.WEEKDAYS_SHORT.key,{value:A.WEEKDAYS_SHORT.value,handler:this.configLocale});this.cfg.addProperty(A.WEEKDAYS_MEDIUM.key,{value:A.WEEKDAYS_MEDIUM.value,handler:this.configLocale});this.cfg.addProperty(A.WEEKDAYS_LONG.key,{value:A.WEEKDAYS_LONG.value,handler:this.configLocale});var B=function(){this.cfg.refireEvent(A.LOCALE_MONTHS.key);this.cfg.refireEvent(A.LOCALE_WEEKDAYS.key);};this.cfg.subscribeToConfigEvent(A.START_WEEKDAY.key,B,this,true);this.cfg.subscribeToConfigEvent(A.MONTHS_SHORT.key,B,this,true);this.cfg.subscribeToConfigEvent(A.MONTHS_LONG.key,B,this,true);this.cfg.subscribeToConfigEvent(A.WEEKDAYS_1CHAR.key,B,this,true);this.cfg.subscribeToConfigEvent(A.WEEKDAYS_SHORT.key,B,this,true);this.cfg.subscribeToConfigEvent(A.WEEKDAYS_MEDIUM.key,B,this,true);this.cfg.subscribeToConfigEvent(A.WEEKDAYS_LONG.key,B,this,true);this.cfg.addProperty(A.LOCALE_MONTHS.key,{value:A.LOCALE_MONTHS.value,handler:this.configLocaleValues});this.cfg.addProperty(A.LOCALE_WEEKDAYS.key,{value:A.LOCALE_WEEKDAYS.value,handler:this.configLocaleValues});this.cfg.addProperty(A.DATE_DELIMITER.key,{value:A.DATE_DELIMITER.value,handler:this.configLocale});this.cfg.addProperty(A.DATE_FIELD_DELIMITER.key,{value:A.DATE_FIELD_DELIMITER.value,handler:this.configLocale});this.cfg.addProperty(A.DATE_RANGE_DELIMITER.key,{value:A.DATE_RANGE_DELIMITER.value,handler:this.configLocale});this.cfg.addProperty(A.MY_MONTH_POSITION.key,{value:A.MY_MONTH_POSITION.value,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MY_YEAR_POSITION.key,{value:A.MY_YEAR_POSITION.value,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MD_MONTH_POSITION.key,{value:A.MD_MONTH_POSITION.value,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MD_DAY_POSITION.key,{value:A.MD_DAY_POSITION.value,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MDY_MONTH_POSITION.key,{value:A.MDY_MONTH_POSITION.value,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MDY_DAY_POSITION.key,{value:A.MDY_DAY_POSITION.value,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MDY_YEAR_POSITION.key,{value:A.MDY_YEAR_POSITION.value,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MY_LABEL_MONTH_POSITION.key,{value:A.MY_LABEL_MONTH_POSITION.value,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MY_LABEL_YEAR_POSITION.key,{value:A.MY_LABEL_YEAR_POSITION.value,handler:this.configLocale,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MY_LABEL_MONTH_SUFFIX.key,{value:A.MY_LABEL_MONTH_SUFFIX.value,handler:this.configLocale});this.cfg.addProperty(A.MY_LABEL_YEAR_SUFFIX.key,{value:A.MY_LABEL_YEAR_SUFFIX.value,handler:this.configLocale});this.cfg.addProperty(A.NAV.key,{value:A.NAV.value,handler:this.configNavigator});},configPageDate:function(B,A,C){this.cfg.setProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key,this._parsePageDate(A[0]),true);},configMinDate:function(B,A,C){var D=A[0];if(YAHOO.lang.isString(D)){D=this._parseDate(D);this.cfg.setProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.MINDATE.key,YAHOO.widget.DateMath.getDate(D[0],(D[1]-1),D[2]));}},configMaxDate:function(B,A,C){var D=A[0];if(YAHOO.lang.isString(D)){D=this._parseDate(D);this.cfg.setProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.MAXDATE.key,YAHOO.widget.DateMath.getDate(D[0],(D[1]-1),D[2]));}},configSelected:function(C,A,E){var B=A[0];var D=YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key;if(B){if(YAHOO.lang.isString(B)){this.cfg.setProperty(D,this._parseDates(B),true);}}if(!this._selectedDates){this._selectedDates=this.cfg.getProperty(D);}},configOptions:function(B,A,C){this.Options[B.toUpperCase()]=A[0];},configLocale:function(C,B,D){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG;this.Locale[C.toUpperCase()]=B[0];this.cfg.refireEvent(A.LOCALE_MONTHS.key);this.cfg.refireEvent(A.LOCALE_WEEKDAYS.key);},configLocaleValues:function(D,C,E){var B=YAHOO.widget.Calendar._DEFAULT_CONFIG;D=D.toLowerCase();var G=C[0];switch(D){case B.LOCALE_MONTHS.key:switch(G){case YAHOO.widget.Calendar.SHORT:this.Locale.LOCALE_MONTHS=this.cfg.getProperty(B.MONTHS_SHORT.key).concat();break;case YAHOO.widget.Calendar.LONG:this.Locale.LOCALE_MONTHS=this.cfg.getProperty(B.MONTHS_LONG.key).concat();break;}break;case B.LOCALE_WEEKDAYS.key:switch(G){case YAHOO.widget.Calendar.ONE_CHAR:this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty(B.WEEKDAYS_1CHAR.key).concat();break;case YAHOO.widget.Calendar.SHORT:this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty(B.WEEKDAYS_SHORT.key).concat();break;case YAHOO.widget.Calendar.MEDIUM:this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty(B.WEEKDAYS_MEDIUM.key).concat();break;case YAHOO.widget.Calendar.LONG:this.Locale.LOCALE_WEEKDAYS=this.cfg.getProperty(B.WEEKDAYS_LONG.key).concat();break;}var F=this.cfg.getProperty(B.START_WEEKDAY.key);if(F>0){for(var A=0;A<F;++A){this.Locale.LOCALE_WEEKDAYS.push(this.Locale.LOCALE_WEEKDAYS.shift());}}break;}},configNavigator:function(C,A,D){var E=A[0];if(YAHOO.widget.CalendarNavigator&&(E===true||YAHOO.lang.isObject(E))){if(!this.oNavigator){this.oNavigator=new YAHOO.widget.CalendarNavigator(this);function B(){if(!this.pages){this.oNavigator.erase();}}this.beforeRenderEvent.subscribe(B,this,true);}}else{if(this.oNavigator){this.oNavigator.destroy();this.oNavigator=null;}}},initStyles:function(){var A=YAHOO.widget.Calendar._STYLES;this.Style={CSS_ROW_HEADER:A.CSS_ROW_HEADER,CSS_ROW_FOOTER:A.CSS_ROW_FOOTER,CSS_CELL:A.CSS_CELL,CSS_CELL_SELECTOR:A.CSS_CELL_SELECTOR,CSS_CELL_SELECTED:A.CSS_CELL_SELECTED,CSS_CELL_SELECTABLE:A.CSS_CELL_SELECTABLE,CSS_CELL_RESTRICTED:A.CSS_CELL_RESTRICTED,CSS_CELL_TODAY:A.CSS_CELL_TODAY,CSS_CELL_OOM:A.CSS_CELL_OOM,CSS_CELL_OOB:A.CSS_CELL_OOB,CSS_HEADER:A.CSS_HEADER,CSS_HEADER_TEXT:A.CSS_HEADER_TEXT,CSS_BODY:A.CSS_BODY,CSS_WEEKDAY_CELL:A.CSS_WEEKDAY_CELL,CSS_WEEKDAY_ROW:A.CSS_WEEKDAY_ROW,CSS_FOOTER:A.CSS_FOOTER,CSS_CALENDAR:A.CSS_CALENDAR,CSS_SINGLE:A.CSS_SINGLE,CSS_CONTAINER:A.CSS_CONTAINER,CSS_NAV_LEFT:A.CSS_NAV_LEFT,CSS_NAV_RIGHT:A.CSS_NAV_RIGHT,CSS_NAV:A.CSS_NAV,CSS_CLOSE:A.CSS_CLOSE,CSS_CELL_TOP:A.CSS_CELL_TOP,CSS_CELL_LEFT:A.CSS_CELL_LEFT,CSS_CELL_RIGHT:A.CSS_CELL_RIGHT,CSS_CELL_BOTTOM:A.CSS_CELL_BOTTOM,CSS_CELL_HOVER:A.CSS_CELL_HOVER,CSS_CELL_HIGHLIGHT1:A.CSS_CELL_HIGHLIGHT1,CSS_CELL_HIGHLIGHT2:A.CSS_CELL_HIGHLIGHT2,CSS_CELL_HIGHLIGHT3:A.CSS_CELL_HIGHLIGHT3,CSS_CELL_HIGHLIGHT4:A.CSS_CELL_HIGHLIGHT4};
-},buildMonthLabel:function(){var A=this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key);var C=this.Locale.LOCALE_MONTHS[A.getMonth()]+this.Locale.MY_LABEL_MONTH_SUFFIX;var B=A.getFullYear()+this.Locale.MY_LABEL_YEAR_SUFFIX;if(this.Locale.MY_LABEL_MONTH_POSITION==2||this.Locale.MY_LABEL_YEAR_POSITION==1){return B+C;}else{return C+B;}},buildDayLabel:function(A){return A.getDate();},createTitleBar:function(A){var B=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||document.createElement("div");B.className=YAHOO.widget.CalendarGroup.CSS_2UPTITLE;B.innerHTML=A;this.oDomContainer.insertBefore(B,this.oDomContainer.firstChild);YAHOO.util.Dom.addClass(this.oDomContainer,"withtitle");return B;},removeTitleBar:function(){var A=YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||null;if(A){YAHOO.util.Event.purgeElement(A);this.oDomContainer.removeChild(A);}YAHOO.util.Dom.removeClass(this.oDomContainer,"withtitle");},createCloseButton:function(){var D=YAHOO.util.Dom,A=YAHOO.util.Event,C=YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,F="us/my/bn/x_d.gif";var E=D.getElementsByClassName("link-close","a",this.oDomContainer)[0];if(!E){E=document.createElement("a");A.addListener(E,"click",function(H,G){G.hide();A.preventDefault(H);},this);}E.href="#";E.className="link-close";if(YAHOO.widget.Calendar.IMG_ROOT!==null){var B=D.getElementsByClassName(C,"img",E)[0]||document.createElement("img");B.src=YAHOO.widget.Calendar.IMG_ROOT+F;B.className=C;E.appendChild(B);}else{E.innerHTML="<span class=\""+C+" "+this.Style.CSS_CLOSE+"\"></span>";}this.oDomContainer.appendChild(E);return E;},removeCloseButton:function(){var A=YAHOO.util.Dom.getElementsByClassName("link-close","a",this.oDomContainer)[0]||null;if(A){YAHOO.util.Event.purgeElement(A);this.oDomContainer.removeChild(A);}},renderHeader:function(E){var H=7;var F="us/tr/callt.gif";var G="us/tr/calrt.gif";var M=YAHOO.widget.Calendar._DEFAULT_CONFIG;if(this.cfg.getProperty(M.SHOW_WEEK_HEADER.key)){H+=1;}if(this.cfg.getProperty(M.SHOW_WEEK_FOOTER.key)){H+=1;}E[E.length]="<thead>";E[E.length]="<tr>";E[E.length]="<th colspan=\""+H+"\" class=\""+this.Style.CSS_HEADER_TEXT+"\">";E[E.length]="<div class=\""+this.Style.CSS_HEADER+"\">";var K,L=false;if(this.parent){if(this.index===0){K=true;}if(this.index==(this.parent.cfg.getProperty("pages")-1)){L=true;}}else{K=true;L=true;}if(K){var A=this.cfg.getProperty(M.NAV_ARROW_LEFT.key);if(A===null&&YAHOO.widget.Calendar.IMG_ROOT!==null){A=YAHOO.widget.Calendar.IMG_ROOT+F;}var C=(A===null)?"":" style=\"background-image:url("+A+")\"";E[E.length]="<a class=\""+this.Style.CSS_NAV_LEFT+"\""+C+" >&#160;</a>";}var J=this.buildMonthLabel();var B=this.parent||this;if(B.cfg.getProperty("navigator")){J="<a class=\""+this.Style.CSS_NAV+"\" href=\"#\">"+J+"</a>";}E[E.length]=J;if(L){var D=this.cfg.getProperty(M.NAV_ARROW_RIGHT.key);if(D===null&&YAHOO.widget.Calendar.IMG_ROOT!==null){D=YAHOO.widget.Calendar.IMG_ROOT+G;}var I=(D===null)?"":" style=\"background-image:url("+D+")\"";E[E.length]="<a class=\""+this.Style.CSS_NAV_RIGHT+"\""+I+" >&#160;</a>";}E[E.length]="</div>\n</th>\n</tr>";if(this.cfg.getProperty(M.SHOW_WEEKDAYS.key)){E=this.buildWeekdays(E);}E[E.length]="</thead>";return E;},buildWeekdays:function(C){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG;C[C.length]="<tr class=\""+this.Style.CSS_WEEKDAY_ROW+"\">";if(this.cfg.getProperty(A.SHOW_WEEK_HEADER.key)){C[C.length]="<th>&#160;</th>";}for(var B=0;B<this.Locale.LOCALE_WEEKDAYS.length;++B){C[C.length]="<th class=\"calweekdaycell\">"+this.Locale.LOCALE_WEEKDAYS[B]+"</th>";}if(this.cfg.getProperty(A.SHOW_WEEK_FOOTER.key)){C[C.length]="<th>&#160;</th>";}C[C.length]="</tr>";return C;},renderBody:function(c,a){var m=YAHOO.widget.Calendar._DEFAULT_CONFIG;var AB=this.cfg.getProperty(m.START_WEEKDAY.key);this.preMonthDays=c.getDay();if(AB>0){this.preMonthDays-=AB;}if(this.preMonthDays<0){this.preMonthDays+=7;}this.monthDays=YAHOO.widget.DateMath.findMonthEnd(c).getDate();this.postMonthDays=YAHOO.widget.Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays;c=YAHOO.widget.DateMath.subtract(c,YAHOO.widget.DateMath.DAY,this.preMonthDays);var Q,H;var G="w";var W="_cell";var U="wd";var k="d";var I;var h;var O=this.today.getFullYear();var j=this.today.getMonth();var D=this.today.getDate();var q=this.cfg.getProperty(m.PAGEDATE.key);var C=this.cfg.getProperty(m.HIDE_BLANK_WEEKS.key);var Z=this.cfg.getProperty(m.SHOW_WEEK_FOOTER.key);var T=this.cfg.getProperty(m.SHOW_WEEK_HEADER.key);var M=this.cfg.getProperty(m.MINDATE.key);var S=this.cfg.getProperty(m.MAXDATE.key);if(M){M=YAHOO.widget.DateMath.clearTime(M);}if(S){S=YAHOO.widget.DateMath.clearTime(S);}a[a.length]="<tbody class=\"m"+(q.getMonth()+1)+" "+this.Style.CSS_BODY+"\">";var z=0;var J=document.createElement("div");var b=document.createElement("td");J.appendChild(b);var o=this.parent||this;for(var u=0;u<6;u++){Q=YAHOO.widget.DateMath.getWeekNumber(c,q.getFullYear(),AB);H=G+Q;if(u!==0&&C===true&&c.getMonth()!=q.getMonth()){break;}else{a[a.length]="<tr class=\""+H+"\">";if(T){a=this.renderRowHeader(Q,a);}for(var AA=0;AA<7;AA++){I=[];this.clearElement(b);b.className=this.Style.CSS_CELL;b.id=this.id+W+z;if(c.getDate()==D&&c.getMonth()==j&&c.getFullYear()==O){I[I.length]=o.renderCellStyleToday;}var R=[c.getFullYear(),c.getMonth()+1,c.getDate()];this.cellDates[this.cellDates.length]=R;if(c.getMonth()!=q.getMonth()){I[I.length]=o.renderCellNotThisMonth;}else{YAHOO.util.Dom.addClass(b,U+c.getDay());YAHOO.util.Dom.addClass(b,k+c.getDate());for(var t=0;t<this.renderStack.length;++t){h=null;var l=this.renderStack[t];var AC=l[0];var B;var V;var F;switch(AC){case YAHOO.widget.Calendar.DATE:B=l[1][1];V=l[1][2];F=l[1][0];if(c.getMonth()+1==B&&c.getDate()==V&&c.getFullYear()==F){h=l[2];this.renderStack.splice(t,1);}break;case YAHOO.widget.Calendar.MONTH_DAY:B=l[1][0];V=l[1][1];if(c.getMonth()+1==B&&c.getDate()==V){h=l[2];this.renderStack.splice(t,1);
-}break;case YAHOO.widget.Calendar.RANGE:var Y=l[1][0];var X=l[1][1];var e=Y[1];var L=Y[2];var P=Y[0];var y=YAHOO.widget.DateMath.getDate(P,e-1,L);var E=X[1];var g=X[2];var A=X[0];var w=YAHOO.widget.DateMath.getDate(A,E-1,g);if(c.getTime()>=y.getTime()&&c.getTime()<=w.getTime()){h=l[2];if(c.getTime()==w.getTime()){this.renderStack.splice(t,1);}}break;case YAHOO.widget.Calendar.WEEKDAY:var K=l[1][0];if(c.getDay()+1==K){h=l[2];}break;case YAHOO.widget.Calendar.MONTH:B=l[1][0];if(c.getMonth()+1==B){h=l[2];}break;}if(h){I[I.length]=h;}}}if(this._indexOfSelectedFieldArray(R)>-1){I[I.length]=o.renderCellStyleSelected;}if((M&&(c.getTime()<M.getTime()))||(S&&(c.getTime()>S.getTime()))){I[I.length]=o.renderOutOfBoundsDate;}else{I[I.length]=o.styleCellDefault;I[I.length]=o.renderCellDefault;}for(var n=0;n<I.length;++n){if(I[n].call(o,c,b)==YAHOO.widget.Calendar.STOP_RENDER){break;}}c.setTime(c.getTime()+YAHOO.widget.DateMath.ONE_DAY_MS);if(z>=0&&z<=6){YAHOO.util.Dom.addClass(b,this.Style.CSS_CELL_TOP);}if((z%7)===0){YAHOO.util.Dom.addClass(b,this.Style.CSS_CELL_LEFT);}if(((z+1)%7)===0){YAHOO.util.Dom.addClass(b,this.Style.CSS_CELL_RIGHT);}var f=this.postMonthDays;if(C&&f>=7){var N=Math.floor(f/7);for(var v=0;v<N;++v){f-=7;}}if(z>=((this.preMonthDays+f+this.monthDays)-7)){YAHOO.util.Dom.addClass(b,this.Style.CSS_CELL_BOTTOM);}a[a.length]=J.innerHTML;z++;}if(Z){a=this.renderRowFooter(Q,a);}a[a.length]="</tr>";}}a[a.length]="</tbody>";return a;},renderFooter:function(A){return A;},render:function(){this.beforeRenderEvent.fire();var A=YAHOO.widget.Calendar._DEFAULT_CONFIG;var C=YAHOO.widget.DateMath.findMonthStart(this.cfg.getProperty(A.PAGEDATE.key));this.resetRenderers();this.cellDates.length=0;YAHOO.util.Event.purgeElement(this.oDomContainer,true);var B=[];B[B.length]="<table cellSpacing=\"0\" class=\""+this.Style.CSS_CALENDAR+" y"+C.getFullYear()+"\" id=\""+this.id+"\">";B=this.renderHeader(B);B=this.renderBody(C,B);B=this.renderFooter(B);B[B.length]="</table>";this.oDomContainer.innerHTML=B.join("\n");this.applyListeners();this.cells=this.oDomContainer.getElementsByTagName("td");this.cfg.refireEvent(A.TITLE.key);this.cfg.refireEvent(A.CLOSE.key);this.cfg.refireEvent(A.IFRAME.key);this.renderEvent.fire();},applyListeners:function(){var K=this.oDomContainer;var B=this.parent||this;var G="a";var D="mousedown";var H=YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT,G,K);var C=YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT,G,K);if(H&&H.length>0){this.linkLeft=H[0];YAHOO.util.Event.addListener(this.linkLeft,D,B.previousMonth,B,true);}if(C&&C.length>0){this.linkRight=C[0];YAHOO.util.Event.addListener(this.linkRight,D,B.nextMonth,B,true);}if(B.cfg.getProperty("navigator")!==null){this.applyNavListeners();}if(this.domEventMap){var E,A;for(var M in this.domEventMap){if(YAHOO.lang.hasOwnProperty(this.domEventMap,M)){var I=this.domEventMap[M];if(!(I instanceof Array)){I=[I];}for(var F=0;F<I.length;F++){var L=I[F];A=YAHOO.util.Dom.getElementsByClassName(M,L.tag,this.oDomContainer);for(var J=0;J<A.length;J++){E=A[J];YAHOO.util.Event.addListener(E,L.event,L.handler,L.scope,L.correct);}}}}}YAHOO.util.Event.addListener(this.oDomContainer,"click",this.doSelectCell,this);YAHOO.util.Event.addListener(this.oDomContainer,"mouseover",this.doCellMouseOver,this);YAHOO.util.Event.addListener(this.oDomContainer,"mouseout",this.doCellMouseOut,this);},applyNavListeners:function(){var D=YAHOO.util.Event;var C=this.parent||this;var F=this;var B=YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV,"a",this.oDomContainer);if(B.length>0){function A(J,I){var H=D.getTarget(J);if(this===H||YAHOO.util.Dom.isAncestor(this,H)){D.preventDefault(J);}var E=C.oNavigator;if(E){var G=F.cfg.getProperty("pagedate");E.setYear(G.getFullYear());E.setMonth(G.getMonth());E.show();}}D.addListener(B,"click",A);}},getDateByCellId:function(B){var A=this.getDateFieldsByCellId(B);return YAHOO.widget.DateMath.getDate(A[0],A[1]-1,A[2]);},getDateFieldsByCellId:function(A){A=A.toLowerCase().split("_cell")[1];A=parseInt(A,10);return this.cellDates[A];},getCellIndex:function(C){var B=-1;if(C){var A=C.getMonth(),H=C.getFullYear(),G=C.getDate(),E=this.cellDates;for(var D=0;D<E.length;++D){var F=E[D];if(F[0]===H&&F[1]===A+1&&F[2]===G){B=D;break;}}}return B;},renderOutOfBoundsDate:function(B,A){YAHOO.util.Dom.addClass(A,this.Style.CSS_CELL_OOB);A.innerHTML=B.getDate();return YAHOO.widget.Calendar.STOP_RENDER;},renderRowHeader:function(B,A){A[A.length]="<th class=\"calrowhead\">"+B+"</th>";return A;},renderRowFooter:function(B,A){A[A.length]="<th class=\"calrowfoot\">"+B+"</th>";return A;},renderCellDefault:function(B,A){A.innerHTML="<a href=\"#\" class=\""+this.Style.CSS_CELL_SELECTOR+"\">"+this.buildDayLabel(B)+"</a>";},styleCellDefault:function(B,A){YAHOO.util.Dom.addClass(A,this.Style.CSS_CELL_SELECTABLE);},renderCellStyleHighlight1:function(B,A){YAHOO.util.Dom.addClass(A,this.Style.CSS_CELL_HIGHLIGHT1);},renderCellStyleHighlight2:function(B,A){YAHOO.util.Dom.addClass(A,this.Style.CSS_CELL_HIGHLIGHT2);},renderCellStyleHighlight3:function(B,A){YAHOO.util.Dom.addClass(A,this.Style.CSS_CELL_HIGHLIGHT3);},renderCellStyleHighlight4:function(B,A){YAHOO.util.Dom.addClass(A,this.Style.CSS_CELL_HIGHLIGHT4);},renderCellStyleToday:function(B,A){YAHOO.util.Dom.addClass(A,this.Style.CSS_CELL_TODAY);},renderCellStyleSelected:function(B,A){YAHOO.util.Dom.addClass(A,this.Style.CSS_CELL_SELECTED);},renderCellNotThisMonth:function(B,A){YAHOO.util.Dom.addClass(A,this.Style.CSS_CELL_OOM);A.innerHTML=B.getDate();return YAHOO.widget.Calendar.STOP_RENDER;},renderBodyCellRestricted:function(B,A){YAHOO.util.Dom.addClass(A,this.Style.CSS_CELL);YAHOO.util.Dom.addClass(A,this.Style.CSS_CELL_RESTRICTED);A.innerHTML=B.getDate();return YAHOO.widget.Calendar.STOP_RENDER;},addMonths:function(B){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;this.cfg.setProperty(A,YAHOO.widget.DateMath.add(this.cfg.getProperty(A),YAHOO.widget.DateMath.MONTH,B));this.resetRenderers();
-this.changePageEvent.fire();},subtractMonths:function(B){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;this.cfg.setProperty(A,YAHOO.widget.DateMath.subtract(this.cfg.getProperty(A),YAHOO.widget.DateMath.MONTH,B));this.resetRenderers();this.changePageEvent.fire();},addYears:function(B){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;this.cfg.setProperty(A,YAHOO.widget.DateMath.add(this.cfg.getProperty(A),YAHOO.widget.DateMath.YEAR,B));this.resetRenderers();this.changePageEvent.fire();},subtractYears:function(B){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;this.cfg.setProperty(A,YAHOO.widget.DateMath.subtract(this.cfg.getProperty(A),YAHOO.widget.DateMath.YEAR,B));this.resetRenderers();this.changePageEvent.fire();},nextMonth:function(){this.addMonths(1);},previousMonth:function(){this.subtractMonths(1);},nextYear:function(){this.addYears(1);},previousYear:function(){this.subtractYears(1);},reset:function(){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG;this.cfg.resetProperty(A.SELECTED.key);this.cfg.resetProperty(A.PAGEDATE.key);this.resetEvent.fire();},clear:function(){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG;this.cfg.setProperty(A.SELECTED.key,[]);this.cfg.setProperty(A.PAGEDATE.key,new Date(this.today.getTime()));this.clearEvent.fire();},select:function(C){var F=this._toFieldArray(C);var B=[];var E=[];var G=YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key;for(var A=0;A<F.length;++A){var D=F[A];if(!this.isDateOOB(this._toDate(D))){if(B.length===0){this.beforeSelectEvent.fire();E=this.cfg.getProperty(G);}B.push(D);if(this._indexOfSelectedFieldArray(D)==-1){E[E.length]=D;}}}if(B.length>0){if(this.parent){this.parent.cfg.setProperty(G,E);}else{this.cfg.setProperty(G,E);}this.selectEvent.fire(B);}return this.getSelectedDates();},selectCell:function(D){var B=this.cells[D];var H=this.cellDates[D];var G=this._toDate(H);var C=YAHOO.util.Dom.hasClass(B,this.Style.CSS_CELL_SELECTABLE);if(C){this.beforeSelectEvent.fire();var F=YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key;var E=this.cfg.getProperty(F);var A=H.concat();if(this._indexOfSelectedFieldArray(A)==-1){E[E.length]=A;}if(this.parent){this.parent.cfg.setProperty(F,E);}else{this.cfg.setProperty(F,E);}this.renderCellStyleSelected(G,B);this.selectEvent.fire([A]);this.doCellMouseOut.call(B,null,this);}return this.getSelectedDates();},deselect:function(E){var A=this._toFieldArray(E);var D=[];var G=[];var H=YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key;for(var B=0;B<A.length;++B){var F=A[B];if(!this.isDateOOB(this._toDate(F))){if(D.length===0){this.beforeDeselectEvent.fire();G=this.cfg.getProperty(H);}D.push(F);var C=this._indexOfSelectedFieldArray(F);if(C!=-1){G.splice(C,1);}}}if(D.length>0){if(this.parent){this.parent.cfg.setProperty(H,G);}else{this.cfg.setProperty(H,G);}this.deselectEvent.fire(D);}return this.getSelectedDates();},deselectCell:function(E){var H=this.cells[E];var B=this.cellDates[E];var F=this._indexOfSelectedFieldArray(B);var G=YAHOO.util.Dom.hasClass(H,this.Style.CSS_CELL_SELECTABLE);if(G){this.beforeDeselectEvent.fire();var I=YAHOO.widget.Calendar._DEFAULT_CONFIG;var D=this.cfg.getProperty(I.SELECTED.key);var C=this._toDate(B);var A=B.concat();if(F>-1){if(this.cfg.getProperty(I.PAGEDATE.key).getMonth()==C.getMonth()&&this.cfg.getProperty(I.PAGEDATE.key).getFullYear()==C.getFullYear()){YAHOO.util.Dom.removeClass(H,this.Style.CSS_CELL_SELECTED);}D.splice(F,1);}if(this.parent){this.parent.cfg.setProperty(I.SELECTED.key,D);}else{this.cfg.setProperty(I.SELECTED.key,D);}this.deselectEvent.fire(A);}return this.getSelectedDates();},deselectAll:function(){this.beforeDeselectEvent.fire();var D=YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key;var A=this.cfg.getProperty(D);var B=A.length;var C=A.concat();if(this.parent){this.parent.cfg.setProperty(D,[]);}else{this.cfg.setProperty(D,[]);}if(B>0){this.deselectEvent.fire(C);}return this.getSelectedDates();},_toFieldArray:function(B){var A=[];if(B instanceof Date){A=[[B.getFullYear(),B.getMonth()+1,B.getDate()]];}else{if(YAHOO.lang.isString(B)){A=this._parseDates(B);}else{if(YAHOO.lang.isArray(B)){for(var C=0;C<B.length;++C){var D=B[C];A[A.length]=[D.getFullYear(),D.getMonth()+1,D.getDate()];}}}}return A;},toDate:function(A){return this._toDate(A);},_toDate:function(A){if(A instanceof Date){return A;}else{return YAHOO.widget.DateMath.getDate(A[0],A[1]-1,A[2]);}},_fieldArraysAreEqual:function(C,B){var A=false;if(C[0]==B[0]&&C[1]==B[1]&&C[2]==B[2]){A=true;}return A;},_indexOfSelectedFieldArray:function(E){var D=-1;var A=this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key);for(var C=0;C<A.length;++C){var B=A[C];if(E[0]==B[0]&&E[1]==B[1]&&E[2]==B[2]){D=C;break;}}return D;},isDateOOM:function(A){return(A.getMonth()!=this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key).getMonth());},isDateOOB:function(D){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG;var E=this.cfg.getProperty(A.MINDATE.key);var F=this.cfg.getProperty(A.MAXDATE.key);var C=YAHOO.widget.DateMath;if(E){E=C.clearTime(E);}if(F){F=C.clearTime(F);}var B=new Date(D.getTime());B=C.clearTime(B);return((E&&B.getTime()<E.getTime())||(F&&B.getTime()>F.getTime()));},_parsePageDate:function(B){var E;var A=YAHOO.widget.Calendar._DEFAULT_CONFIG;if(B){if(B instanceof Date){E=YAHOO.widget.DateMath.findMonthStart(B);}else{var F,D,C;C=B.split(this.cfg.getProperty(A.DATE_FIELD_DELIMITER.key));F=parseInt(C[this.cfg.getProperty(A.MY_MONTH_POSITION.key)-1],10)-1;D=parseInt(C[this.cfg.getProperty(A.MY_YEAR_POSITION.key)-1],10);E=YAHOO.widget.DateMath.getDate(D,F,1);}}else{E=YAHOO.widget.DateMath.getDate(this.today.getFullYear(),this.today.getMonth(),1);}return E;},onBeforeSelect:function(){if(this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.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(A){},onBeforeDeselect:function(){},onDeselect:function(A){},onChangePage:function(){this.render();},onRender:function(){},onReset:function(){this.render();},onClear:function(){this.render();},validate:function(){return true;},_parseDate:function(C){var D=C.split(this.Locale.DATE_FIELD_DELIMITER);var A;if(D.length==2){A=[D[this.Locale.MD_MONTH_POSITION-1],D[this.Locale.MD_DAY_POSITION-1]];A.type=YAHOO.widget.Calendar.MONTH_DAY;}else{A=[D[this.Locale.MDY_YEAR_POSITION-1],D[this.Locale.MDY_MONTH_POSITION-1],D[this.Locale.MDY_DAY_POSITION-1]];A.type=YAHOO.widget.Calendar.DATE;}for(var B=0;B<A.length;B++){A[B]=parseInt(A[B],10);}return A;},_parseDates:function(B){var I=[];var H=B.split(this.Locale.DATE_DELIMITER);for(var G=0;G<H.length;++G){var F=H[G];if(F.indexOf(this.Locale.DATE_RANGE_DELIMITER)!=-1){var A=F.split(this.Locale.DATE_RANGE_DELIMITER);var E=this._parseDate(A[0]);var J=this._parseDate(A[1]);var D=this._parseRange(E,J);I=I.concat(D);}else{var C=this._parseDate(F);I.push(C);}}return I;},_parseRange:function(A,E){var B=YAHOO.widget.DateMath.add(YAHOO.widget.DateMath.getDate(A[0],A[1]-1,A[2]),YAHOO.widget.DateMath.DAY,1);var D=YAHOO.widget.DateMath.getDate(E[0],E[1]-1,E[2]);var C=[];C.push(A);while(B.getTime()<=D.getTime()){C.push([B.getFullYear(),B.getMonth()+1,B.getDate()]);B=YAHOO.widget.DateMath.add(B,YAHOO.widget.DateMath.DAY,1);}return C;},resetRenderers:function(){this.renderStack=this._renderStack.concat();},removeRenderers:function(){this._renderStack=[];this.renderStack=[];},clearElement:function(A){A.innerHTML="&#160;";A.className="";},addRenderer:function(A,B){var D=this._parseDates(A);for(var C=0;C<D.length;++C){var E=D[C];if(E.length==2){if(E[0] instanceof Array){this._addRenderer(YAHOO.widget.Calendar.RANGE,E,B);}else{this._addRenderer(YAHOO.widget.Calendar.MONTH_DAY,E,B);}}else{if(E.length==3){this._addRenderer(YAHOO.widget.Calendar.DATE,E,B);}}}},_addRenderer:function(B,C,A){var D=[B,C,A];this.renderStack.unshift(D);this._renderStack=this.renderStack.concat();},addMonthRenderer:function(B,A){this._addRenderer(YAHOO.widget.Calendar.MONTH,[B],A);},addWeekdayRenderer:function(B,A){this._addRenderer(YAHOO.widget.Calendar.WEEKDAY,[B],A);},clearAllBodyCellStyles:function(A){for(var B=0;B<this.cells.length;++B){YAHOO.util.Dom.removeClass(this.cells[B],A);}},setMonth:function(C){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;var B=this.cfg.getProperty(A);B.setMonth(parseInt(C,10));this.cfg.setProperty(A,B);},setYear:function(B){var A=YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;var C=this.cfg.getProperty(A);C.setFullYear(parseInt(B,10));this.cfg.setProperty(A,C);},getSelectedDates:function(){var C=[];var B=this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key);for(var E=0;E<B.length;++E){var D=B[E];var A=YAHOO.widget.DateMath.getDate(D[0],D[1]-1,D[2]);C.push(A);}C.sort(function(G,F){return G-F;});return C;},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 A=navigator.userAgent.toLowerCase();if(A.indexOf("opera")!=-1){return"opera";}else{if(A.indexOf("msie 7")!=-1){return"ie7";}else{if(A.indexOf("msie")!=-1){return"ie";}else{if(A.indexOf("safari")!=-1){return"safari";}else{if(A.indexOf("gecko")!=-1){return"gecko";}else{return false;}}}}}})(),toString:function(){return"Calendar "+this.id;}};YAHOO.widget.Calendar_Core=YAHOO.widget.Calendar;YAHOO.widget.Cal_Core=YAHOO.widget.Calendar;YAHOO.widget.CalendarGroup=function(C,A,B){if(arguments.length>0){this.init.apply(this,arguments);}};YAHOO.widget.CalendarGroup.prototype={init:function(D,B,C){var A=this._parseArgs(arguments);D=A.id;B=A.container;C=A.config;this.oDomContainer=YAHOO.util.Dom.get(B);if(!this.oDomContainer.id){this.oDomContainer.id=YAHOO.util.Dom.generateId();}if(!D){D=this.oDomContainer.id+"_t";}this.id=D;this.containerId=this.oDomContainer.id;this.initEvents();this.initStyles();this.pages=[];YAHOO.util.Dom.addClass(this.oDomContainer,YAHOO.widget.CalendarGroup.CSS_CONTAINER);YAHOO.util.Dom.addClass(this.oDomContainer,YAHOO.widget.CalendarGroup.CSS_MULTI_UP);this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.setupConfig();if(C){this.cfg.applyConfig(C,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 A=YAHOO.widget.CalendarGroup._DEFAULT_CONFIG;this.cfg.addProperty(A.PAGES.key,{value:A.PAGES.value,validator:this.cfg.checkNumber,handler:this.configPages});this.cfg.addProperty(A.PAGEDATE.key,{value:new Date(),handler:this.configPageDate});this.cfg.addProperty(A.SELECTED.key,{value:[],handler:this.configSelected});this.cfg.addProperty(A.TITLE.key,{value:A.TITLE.value,handler:this.configTitle});this.cfg.addProperty(A.CLOSE.key,{value:A.CLOSE.value,handler:this.configClose});this.cfg.addProperty(A.IFRAME.key,{value:A.IFRAME.value,handler:this.configIframe,validator:this.cfg.checkBoolean});this.cfg.addProperty(A.MINDATE.key,{value:A.MINDATE.value,handler:this.delegateConfig});this.cfg.addProperty(A.MAXDATE.key,{value:A.MAXDATE.value,handler:this.delegateConfig});this.cfg.addProperty(A.MULTI_SELECT.key,{value:A.MULTI_SELECT.value,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty(A.START_WEEKDAY.key,{value:A.START_WEEKDAY.value,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty(A.SHOW_WEEKDAYS.key,{value:A.SHOW_WEEKDAYS.value,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty(A.SHOW_WEEK_HEADER.key,{value:A.SHOW_WEEK_HEADER.value,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty(A.SHOW_WEEK_FOOTER.key,{value:A.SHOW_WEEK_FOOTER.value,handler:this.delegateConfig,validator:this.cfg.checkBoolean});
-this.cfg.addProperty(A.HIDE_BLANK_WEEKS.key,{value:A.HIDE_BLANK_WEEKS.value,handler:this.delegateConfig,validator:this.cfg.checkBoolean});this.cfg.addProperty(A.NAV_ARROW_LEFT.key,{value:A.NAV_ARROW_LEFT.value,handler:this.delegateConfig});this.cfg.addProperty(A.NAV_ARROW_RIGHT.key,{value:A.NAV_ARROW_RIGHT.value,handler:this.delegateConfig});this.cfg.addProperty(A.MONTHS_SHORT.key,{value:A.MONTHS_SHORT.value,handler:this.delegateConfig});this.cfg.addProperty(A.MONTHS_LONG.key,{value:A.MONTHS_LONG.value,handler:this.delegateConfig});this.cfg.addProperty(A.WEEKDAYS_1CHAR.key,{value:A.WEEKDAYS_1CHAR.value,handler:this.delegateConfig});this.cfg.addProperty(A.WEEKDAYS_SHORT.key,{value:A.WEEKDAYS_SHORT.value,handler:this.delegateConfig});this.cfg.addProperty(A.WEEKDAYS_MEDIUM.key,{value:A.WEEKDAYS_MEDIUM.value,handler:this.delegateConfig});this.cfg.addProperty(A.WEEKDAYS_LONG.key,{value:A.WEEKDAYS_LONG.value,handler:this.delegateConfig});this.cfg.addProperty(A.LOCALE_MONTHS.key,{value:A.LOCALE_MONTHS.value,handler:this.delegateConfig});this.cfg.addProperty(A.LOCALE_WEEKDAYS.key,{value:A.LOCALE_WEEKDAYS.value,handler:this.delegateConfig});this.cfg.addProperty(A.DATE_DELIMITER.key,{value:A.DATE_DELIMITER.value,handler:this.delegateConfig});this.cfg.addProperty(A.DATE_FIELD_DELIMITER.key,{value:A.DATE_FIELD_DELIMITER.value,handler:this.delegateConfig});this.cfg.addProperty(A.DATE_RANGE_DELIMITER.key,{value:A.DATE_RANGE_DELIMITER.value,handler:this.delegateConfig});this.cfg.addProperty(A.MY_MONTH_POSITION.key,{value:A.MY_MONTH_POSITION.value,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MY_YEAR_POSITION.key,{value:A.MY_YEAR_POSITION.value,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MD_MONTH_POSITION.key,{value:A.MD_MONTH_POSITION.value,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MD_DAY_POSITION.key,{value:A.MD_DAY_POSITION.value,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MDY_MONTH_POSITION.key,{value:A.MDY_MONTH_POSITION.value,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MDY_DAY_POSITION.key,{value:A.MDY_DAY_POSITION.value,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MDY_YEAR_POSITION.key,{value:A.MDY_YEAR_POSITION.value,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MY_LABEL_MONTH_POSITION.key,{value:A.MY_LABEL_MONTH_POSITION.value,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MY_LABEL_YEAR_POSITION.key,{value:A.MY_LABEL_YEAR_POSITION.value,handler:this.delegateConfig,validator:this.cfg.checkNumber});this.cfg.addProperty(A.MY_LABEL_MONTH_SUFFIX.key,{value:A.MY_LABEL_MONTH_SUFFIX.value,handler:this.delegateConfig});this.cfg.addProperty(A.MY_LABEL_YEAR_SUFFIX.key,{value:A.MY_LABEL_YEAR_SUFFIX.value,handler:this.delegateConfig});this.cfg.addProperty(A.NAV.key,{value:A.NAV.value,handler:this.configNavigator});},initEvents:function(){var C=this;var E="Event";var B=function(G,J,F){for(var I=0;I<C.pages.length;++I){var H=C.pages[I];H[this.type+E].subscribe(G,J,F);}};var A=function(F,I){for(var H=0;H<C.pages.length;++H){var G=C.pages[H];G[this.type+E].unsubscribe(F,I);}};var D=YAHOO.widget.Calendar._EVENT_TYPES;this.beforeSelectEvent=new YAHOO.util.CustomEvent(D.BEFORE_SELECT);this.beforeSelectEvent.subscribe=B;this.beforeSelectEvent.unsubscribe=A;this.selectEvent=new YAHOO.util.CustomEvent(D.SELECT);this.selectEvent.subscribe=B;this.selectEvent.unsubscribe=A;this.beforeDeselectEvent=new YAHOO.util.CustomEvent(D.BEFORE_DESELECT);this.beforeDeselectEvent.subscribe=B;this.beforeDeselectEvent.unsubscribe=A;this.deselectEvent=new YAHOO.util.CustomEvent(D.DESELECT);this.deselectEvent.subscribe=B;this.deselectEvent.unsubscribe=A;this.changePageEvent=new YAHOO.util.CustomEvent(D.CHANGE_PAGE);this.changePageEvent.subscribe=B;this.changePageEvent.unsubscribe=A;this.beforeRenderEvent=new YAHOO.util.CustomEvent(D.BEFORE_RENDER);this.beforeRenderEvent.subscribe=B;this.beforeRenderEvent.unsubscribe=A;this.renderEvent=new YAHOO.util.CustomEvent(D.RENDER);this.renderEvent.subscribe=B;this.renderEvent.unsubscribe=A;this.resetEvent=new YAHOO.util.CustomEvent(D.RESET);this.resetEvent.subscribe=B;this.resetEvent.unsubscribe=A;this.clearEvent=new YAHOO.util.CustomEvent(D.CLEAR);this.clearEvent.subscribe=B;this.clearEvent.unsubscribe=A;this.beforeShowEvent=new YAHOO.util.CustomEvent(D.BEFORE_SHOW);this.showEvent=new YAHOO.util.CustomEvent(D.SHOW);this.beforeHideEvent=new YAHOO.util.CustomEvent(D.BEFORE_HIDE);this.hideEvent=new YAHOO.util.CustomEvent(D.HIDE);this.beforeShowNavEvent=new YAHOO.util.CustomEvent(D.BEFORE_SHOW_NAV);this.showNavEvent=new YAHOO.util.CustomEvent(D.SHOW_NAV);this.beforeHideNavEvent=new YAHOO.util.CustomEvent(D.BEFORE_HIDE_NAV);this.hideNavEvent=new YAHOO.util.CustomEvent(D.HIDE_NAV);this.beforeRenderNavEvent=new YAHOO.util.CustomEvent(D.BEFORE_RENDER_NAV);this.renderNavEvent=new YAHOO.util.CustomEvent(D.RENDER_NAV);},configPages:function(K,J,G){var E=J[0];var C=YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.PAGEDATE.key;var O="_";var L="groupcal";var N="first-of-type";var D="last-of-type";for(var B=0;B<E;++B){var M=this.id+O+B;var I=this.containerId+O+B;var H=this.cfg.getConfig();H.close=false;H.title=false;H.navigator=null;var A=this.constructChild(M,I,H);var F=A.cfg.getProperty(C);this._setMonthOnDate(F,F.getMonth()+B);A.cfg.setProperty(C,F);YAHOO.util.Dom.removeClass(A.oDomContainer,this.Style.CSS_SINGLE);YAHOO.util.Dom.addClass(A.oDomContainer,L);if(B===0){YAHOO.util.Dom.addClass(A.oDomContainer,N);}if(B==(E-1)){YAHOO.util.Dom.addClass(A.oDomContainer,D);}A.parent=this;A.index=B;this.pages[this.pages.length]=A;}},configPageDate:function(H,G,E){var C=G[0];var F;var D=YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.PAGEDATE.key;for(var B=0;B<this.pages.length;++B){var A=this.pages[B];if(B===0){F=A._parsePageDate(C);
-A.cfg.setProperty(D,F);}else{var I=new Date(F);this._setMonthOnDate(I,I.getMonth()+B);A.cfg.setProperty(D,I);}}},configSelected:function(C,A,E){var D=YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.SELECTED.key;this.delegateConfig(C,A,E);var B=(this.pages.length>0)?this.pages[0].cfg.getProperty(D):[];this.cfg.setProperty(D,B,true);},delegateConfig:function(B,A,E){var F=A[0];var D;for(var C=0;C<this.pages.length;C++){D=this.pages[C];D.cfg.setProperty(B,F);}},setChildFunction:function(D,B){var A=this.cfg.getProperty(YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.PAGES.key);for(var C=0;C<A;++C){this.pages[C][D]=B;}},callChildFunction:function(F,B){var A=this.cfg.getProperty(YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.PAGES.key);for(var E=0;E<A;++E){var D=this.pages[E];if(D[F]){var C=D[F];C.call(D,B);}}},constructChild:function(D,B,C){var A=document.getElementById(B);if(!A){A=document.createElement("div");A.id=B;this.oDomContainer.appendChild(A);}return new YAHOO.widget.Calendar(D,B,C);},setMonth:function(E){E=parseInt(E,10);var F;var B=YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.PAGEDATE.key;for(var D=0;D<this.pages.length;++D){var C=this.pages[D];var A=C.cfg.getProperty(B);if(D===0){F=A.getFullYear();}else{A.setFullYear(F);}this._setMonthOnDate(A,E+D);C.cfg.setProperty(B,A);}},setYear:function(C){var B=YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.PAGEDATE.key;C=parseInt(C,10);for(var E=0;E<this.pages.length;++E){var D=this.pages[E];var A=D.cfg.getProperty(B);if((A.getMonth()+1)==1&&E>0){C+=1;}D.setYear(C);}},render:function(){this.renderHeader();for(var B=0;B<this.pages.length;++B){var A=this.pages[B];A.render();}this.renderFooter();},select:function(A){for(var C=0;C<this.pages.length;++C){var B=this.pages[C];B.select(A);}return this.getSelectedDates();},selectCell:function(A){for(var C=0;C<this.pages.length;++C){var B=this.pages[C];B.selectCell(A);}return this.getSelectedDates();},deselect:function(A){for(var C=0;C<this.pages.length;++C){var B=this.pages[C];B.deselect(A);}return this.getSelectedDates();},deselectAll:function(){for(var B=0;B<this.pages.length;++B){var A=this.pages[B];A.deselectAll();}return this.getSelectedDates();},deselectCell:function(A){for(var C=0;C<this.pages.length;++C){var B=this.pages[C];B.deselectCell(A);}return this.getSelectedDates();},reset:function(){for(var B=0;B<this.pages.length;++B){var A=this.pages[B];A.reset();}},clear:function(){for(var B=0;B<this.pages.length;++B){var A=this.pages[B];A.clear();}},nextMonth:function(){for(var B=0;B<this.pages.length;++B){var A=this.pages[B];A.nextMonth();}},previousMonth:function(){for(var B=this.pages.length-1;B>=0;--B){var A=this.pages[B];A.previousMonth();}},nextYear:function(){for(var B=0;B<this.pages.length;++B){var A=this.pages[B];A.nextYear();}},previousYear:function(){for(var B=0;B<this.pages.length;++B){var A=this.pages[B];A.previousYear();}},getSelectedDates:function(){var C=[];var B=this.cfg.getProperty(YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.SELECTED.key);for(var E=0;E<B.length;++E){var D=B[E];var A=YAHOO.widget.DateMath.getDate(D[0],D[1]-1,D[2]);C.push(A);}C.sort(function(G,F){return G-F;});return C;},addRenderer:function(A,B){for(var D=0;D<this.pages.length;++D){var C=this.pages[D];C.addRenderer(A,B);}},addMonthRenderer:function(D,A){for(var C=0;C<this.pages.length;++C){var B=this.pages[C];B.addMonthRenderer(D,A);}},addWeekdayRenderer:function(B,A){for(var D=0;D<this.pages.length;++D){var C=this.pages[D];C.addWeekdayRenderer(B,A);}},removeRenderers:function(){this.callChildFunction("removeRenderers");},renderHeader:function(){},renderFooter:function(){},addMonths:function(A){this.callChildFunction("addMonths",A);},subtractMonths:function(A){this.callChildFunction("subtractMonths",A);},addYears:function(A){this.callChildFunction("addYears",A);},subtractYears:function(A){this.callChildFunction("subtractYears",A);},getCalendarPage:function(D){var F=null;if(D){var G=D.getFullYear(),C=D.getMonth();var B=this.pages;for(var E=0;E<B.length;++E){var A=B[E].cfg.getProperty("pagedate");if(A.getFullYear()===G&&A.getMonth()===C){F=B[E];break;}}}return F;},_setMonthOnDate:function(C,D){if(YAHOO.env.ua.webkit&&YAHOO.env.ua.webkit<420&&(D<0||D>11)){var B=YAHOO.widget.DateMath;var A=B.add(C,B.MONTH,D-C.getMonth());C.setTime(A.getTime());}else{C.setMonth(D);}},_fixWidth:function(){var A=0;for(var C=0;C<this.pages.length;++C){var B=this.pages[C];A+=B.oDomContainer.offsetWidth;}if(A>0){this.oDomContainer.style.width=A+"px";}},toString:function(){return"CalendarGroup "+this.id;}};YAHOO.widget.CalendarGroup.CSS_CONTAINER="yui-calcontainer";YAHOO.widget.CalendarGroup.CSS_MULTI_UP="multi";YAHOO.widget.CalendarGroup.CSS_2UPTITLE="title";YAHOO.widget.CalendarGroup.CSS_2UPCLOSE="close-icon";YAHOO.lang.augmentProto(YAHOO.widget.CalendarGroup,YAHOO.widget.Calendar,"buildDayLabel","buildMonthLabel","renderOutOfBoundsDate","renderRowHeader","renderRowFooter","renderCellDefault","styleCellDefault","renderCellStyleHighlight1","renderCellStyleHighlight2","renderCellStyleHighlight3","renderCellStyleHighlight4","renderCellStyleToday","renderCellStyleSelected","renderCellNotThisMonth","renderBodyCellRestricted","initStyles","configTitle","configClose","configIframe","configNavigator","createTitleBar","createCloseButton","removeTitleBar","removeCloseButton","hide","show","toDate","_parseArgs","browser");YAHOO.widget.CalendarGroup._DEFAULT_CONFIG=YAHOO.widget.Calendar._DEFAULT_CONFIG;YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.PAGES={key:"pages",value:2};YAHOO.widget.CalGrp=YAHOO.widget.CalendarGroup;YAHOO.widget.Calendar2up=function(C,A,B){this.init(C,A,B);};YAHOO.extend(YAHOO.widget.Calendar2up,YAHOO.widget.CalendarGroup);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_CFG={strings:{month:"Month",year:"Year",submit:"Okay",cancel:"Cancel",invalidYear:"Year needs to be a number"},monthFormat:YAHOO.widget.Calendar.LONG,initialFocus:"year"};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)||(B===7&&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;var A=YAHOO.env.ua;var C=(A.ie)?"keydown":"keypress";var B=(A.ie||A.opera)?"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 C=YAHOO.util.Event;var B=(YAHOO.env.ua.ie)?"keydown":"keypress";var A=(YAHOO.env.ua.ie||YAHOO.env.ua.opera)?"keydown":"keypress";C.removeListener(this.yearEl,"keypress",this._handleEnterKey);C.removeListener(this.yearEl,B,this._handleDirectionKeys);C.removeListener(this.lastCtrl,A,this._handleTabKey);C.removeListener(this.firstCtrl,A,this._handleShiftTabKey);},submit:function(){if(this.validate()){this.hide();this.setMonth(this._getMonthFromUI());this.setYear(this._getYearFromUI());var B=this.cal;var C=this;function D(){B.setYear(C.getYear());B.setMonth(C.getMonth());B.render();}var A=YAHOO.widget.CalendarNavigator.UPDATE_DELAY;if(A>0){window.setTimeout(D,A);}else{D();}}},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;var B=this.__getCfg("initialFocus");if(B&&B.toLowerCase){B=B.toLowerCase();if(B=="year"){A=this.yearEl;try{this.yearEl.select();}catch(C){}}else{if(B=="month"){A=this.monthEl;}}}if(A&&YAHOO.lang.isFunction(A.focus)){try{A.focus();}catch(C){}}},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(G){var F=YAHOO.util.Event;var A=YAHOO.util.KeyListener.KEY;var C=YAHOO.widget.CalendarNavigator;var D=(this.yearEl.value)?parseInt(this.yearEl.value,10):null;if(isFinite(D)){var B=false;switch(F.getCharCode(G)){case A.UP:this.yearEl.value=D+C.YR_MINOR_INC;B=true;break;case A.DOWN:this.yearEl.value=Math.max(D-C.YR_MINOR_INC,0);B=true;break;case A.PAGE_UP:this.yearEl.value=D+C.YR_MAJOR_INC;B=true;break;case A.PAGE_DOWN:this.yearEl.value=Math.max(D-C.YR_MAJOR_INC,0);B=true;break;default:break;}if(B){F.preventDefault(G);try{this.yearEl.select();}catch(G){}}}},_handleTabKey:function(C){var B=YAHOO.util.Event;var A=YAHOO.util.KeyListener.KEY;if(B.getCharCode(C)==A.TAB&&!C.shiftKey){try{B.preventDefault(C);this.firstCtrl.focus();}catch(C){}}},_handleShiftTabKey:function(C){var B=YAHOO.util.Event;var A=YAHOO.util.KeyListener.KEY;if(C.shiftKey&&B.getCharCode(C)==A.TAB){try{B.preventDefault(C);this.lastCtrl.focus();}catch(C){}}},__getCfg:function(D,B){var C=YAHOO.widget.CalendarNavigator._DEFAULT_CFG;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.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/calendar/calendar.js b/lib/yui/calendar/calendar.js
deleted file mode 100755 (executable)
index 9726102..0000000
+++ /dev/null
@@ -1,6791 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-(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 = {},
-                prop,
-                property;
-                
-            for (prop in this.config) {
-                property = this.config[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) {
-                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;
-        
-                    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} override 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, override) {
-    
-            var property = this.config[key.toLowerCase()];
-    
-            if (property && property.event) {
-                if (!Config.alreadySubscribed(property.event, handler, obj)) {
-                    property.event.subscribe(handler, obj, override);
-                }
-                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);
-
-}());
-
-/**
-* 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,
-
-       /**
-       * 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. This function assumes that week 1 is the
-       * week in which January 1 appears, regardless of whether the week consists of a full 7 days.
-       * The calendar year can be specified to help find what a the week number would be for a given
-       * date if the date overlaps years. For instance, a week may be considered week 1 of 2005, or
-       * week 53 of 2004. Specifying the optional calendarYear allows one to make this distinction
-       * easily.
-       * @method getWeekNumber
-       * @param {Date} date    The JavaScript date for which to find the week number
-       * @param {Number} calendarYear  OPTIONAL - The calendar year to use for determining the week number. Default is
-       *                                                                                       the calendar year of parameter "date".
-       * @return {Number}      The week number of the given date.
-       */
-       getWeekNumber : function(date, calendarYear) {
-               date = this.clearTime(date);
-               var nearestThurs = new Date(date.getTime() + (4 * this.ONE_DAY_MS) - ((date.getDay()) * this.ONE_DAY_MS));
-
-               var jan1 = this.getDate(nearestThurs.getFullYear(),0,1);
-               var dayOfYear = ((nearestThurs.getTime() - jan1.getTime()) / this.ONE_DAY_MS) - 1;
-
-               var weekNum = Math.ceil((dayOfYear)/ 7);
-               return weekNum;
-       },
-
-       /**
-       * 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
-*/
-
-/**
-* 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.
-*/
-YAHOO.widget.Calendar = function(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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.Calendar.MONTH_DAY = "MD";
-
-/**
-* Type constant used for renderers to represent a weekday
-* @property YAHOO.widget.Calendar.WEEKDAY
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.Calendar.RANGE = "R";
-
-/**
-* Type constant used for renderers to represent a month across any year
-* @property YAHOO.widget.Calendar.MONTH
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.Calendar.LONG = "long";
-
-/**
-* Constant used to represent medium date field string formats (e.g. Mon)
-* @property YAHOO.widget.Calendar.MEDIUM
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.Calendar.ONE_CHAR = "1char";
-
-/**
-* The set of default Config property keys and values for the Calendar
-* @property YAHOO.widget.Calendar._DEFAULT_CONFIG
-* @final
-* @static
-* @private
-* @type Object
-*/
-YAHOO.widget.Calendar._DEFAULT_CONFIG = {
-       // Default values for pagedate and selected are not class level constants - they are set during instance creation 
-       PAGEDATE : {key:"pagedate", value:null},
-       SELECTED : {key:"selected", value:null},
-       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}
-};
-
-/**
-* The set of Custom Event types supported by the Calendar
-* @property YAHOO.widget.Calendar._EVENT_TYPES
-* @final
-* @static
-* @private
-* @type Object
-*/
-YAHOO.widget.Calendar._EVENT_TYPES = {
-       BEFORE_SELECT : "beforeSelect", 
-       SELECT : "select",
-       BEFORE_DESELECT : "beforeDeselect",
-       DESELECT : "deselect",
-       CHANGE_PAGE : "changePage",
-       BEFORE_RENDER : "beforeRender",
-       RENDER : "render",
-       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
-* @final
-* @static
-* @private
-* @type Object
-*/
-YAHOO.widget.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"
-};
-
-YAHOO.widget.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.
-       * @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 (YAHOO.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 = YAHOO.util.Dom.get(container);
-
-               if (!this.oDomContainer.id) {
-                       this.oDomContainer.id = YAHOO.util.Dom.generateId();
-               }
-               if (!id) {
-                       id = this.oDomContainer.id + "_t";
-               }
-
-               this.id = id;
-               this.containerId = this.oDomContainer.id;
-
-               this.initEvents();
-
-               this.today = new Date();
-               YAHOO.widget.DateMath.clearTime(this.today);
-
-               /**
-               * 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();
-
-               YAHOO.util.Dom.addClass(this.oDomContainer, this.Style.CSS_CONTAINER);
-               YAHOO.util.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();
-       },
-
-       /**
-       * 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 (YAHOO.util.Dom.inDocument(this.oDomContainer)) {
-                               if (useIframe) {
-                                       var pos = YAHOO.util.Dom.getStyle(this.oDomContainer, "position");
-                                       
-                                       if (pos == "absolute" || pos == "relative") {
-                                               
-                                               if (!YAHOO.util.Dom.inDocument(this.iframe)) {
-                                                       this.iframe = document.createElement("iframe");
-                                                       this.iframe.src = "javascript:false;";
-       
-                                                       YAHOO.util.Dom.setStyle(this.iframe, "opacity", "0");
-       
-                                                       if (YAHOO.env.ua.ie && YAHOO.env.ua.ie <= 6) {
-                                                               YAHOO.util.Dom.addClass(this.iframe, "fixedsize");
-                                                       }
-       
-                                                       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(YAHOO.widget.Calendar._DEFAULT_CONFIG.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(YAHOO.widget.Calendar._DEFAULT_CONFIG.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 = YAHOO.widget.Calendar._EVENT_TYPES;
-       
-               /**
-               * Fired before a selection is made
-               * @event beforeSelectEvent
-               */
-               this.beforeSelectEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SELECT); 
-       
-               /**
-               * Fired when a selection is made
-               * @event selectEvent
-               * @param {Array}        Array of Date field arrays in the format [YYYY, MM, DD].
-               */
-               this.selectEvent = new YAHOO.util.CustomEvent(defEvents.SELECT);
-       
-               /**
-               * Fired before a selection is made
-               * @event beforeDeselectEvent
-               */
-               this.beforeDeselectEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_DESELECT);
-       
-               /**
-               * Fired when a selection is made
-               * @event deselectEvent
-               * @param {Array}        Array of Date field arrays in the format [YYYY, MM, DD].
-               */
-               this.deselectEvent = new YAHOO.util.CustomEvent(defEvents.DESELECT);
-       
-               /**
-               * Fired when the Calendar page is changed
-               * @event changePageEvent
-               */
-               this.changePageEvent = new YAHOO.util.CustomEvent(defEvents.CHANGE_PAGE);
-       
-               /**
-               * Fired before the Calendar is rendered
-               * @event beforeRenderEvent
-               */
-               this.beforeRenderEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_RENDER);
-       
-               /**
-               * Fired when the Calendar is rendered
-               * @event renderEvent
-               */
-               this.renderEvent = new YAHOO.util.CustomEvent(defEvents.RENDER);
-       
-               /**
-               * Fired when the Calendar is reset
-               * @event resetEvent
-               */
-               this.resetEvent = new YAHOO.util.CustomEvent(defEvents.RESET);
-       
-               /**
-               * Fired when the Calendar is cleared
-               * @event clearEvent
-               */
-               this.clearEvent = new YAHOO.util.CustomEvent(defEvents.CLEAR);
-       
-               /**
-               * Fired just before the Calendar is to be shown
-               * @event beforeShowEvent
-               */
-               this.beforeShowEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SHOW);
-       
-               /**
-               * Fired after the Calendar is shown
-               * @event showEvent
-               */
-               this.showEvent = new YAHOO.util.CustomEvent(defEvents.SHOW);
-       
-               /**
-               * Fired just before the Calendar is to be hidden
-               * @event beforeHideEvent
-               */
-               this.beforeHideEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_HIDE);
-       
-               /**
-               * Fired after the Calendar is hidden
-               * @event hideEvent
-               */
-               this.hideEvent = new YAHOO.util.CustomEvent(defEvents.HIDE);
-
-               /**
-               * Fired just before the CalendarNavigator is to be shown
-               * @event beforeShowNavEvent
-               */
-               this.beforeShowNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SHOW_NAV);
-       
-               /**
-               * Fired after the CalendarNavigator is shown
-               * @event showNavEvent
-               */
-               this.showNavEvent = new YAHOO.util.CustomEvent(defEvents.SHOW_NAV);
-       
-               /**
-               * Fired just before the CalendarNavigator is to be hidden
-               * @event beforeHideNavEvent
-               */
-               this.beforeHideNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_HIDE_NAV);
-       
-               /**
-               * Fired after the CalendarNavigator is hidden
-               * @event hideNavEvent
-               */
-               this.hideNavEvent = new YAHOO.util.CustomEvent(defEvents.HIDE_NAV);
-
-               /**
-               * Fired just before the CalendarNavigator is to be rendered
-               * @event beforeRenderNavEvent
-               */
-               this.beforeRenderNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_RENDER_NAV);
-
-               /**
-               * Fired after the CalendarNavigator is rendered
-               * @event renderNavEvent
-               */
-               this.renderNavEvent = new YAHOO.util.CustomEvent(defEvents.RENDER_NAV);
-
-               this.beforeSelectEvent.subscribe(this.onBeforeSelect, this, true);
-               this.selectEvent.subscribe(this.onSelect, this, true);
-               this.beforeDeselectEvent.subscribe(this.onBeforeDeselect, this, true);
-               this.deselectEvent.subscribe(this.onDeselect, this, true);
-               this.changePageEvent.subscribe(this.onChangePage, this, true);
-               this.renderEvent.subscribe(this.onRender, this, true);
-               this.resetEvent.subscribe(this.onReset, this, true);
-               this.clearEvent.subscribe(this.onClear, this, true);
-       },
-       
-       /**
-       * The default event function that is attached to a date link within a calendar cell
-       * when the calendar is rendered.
-       * @method doSelectCell
-       * @param {DOMEvent} e   The event
-       * @param {Calendar} cal A reference to the calendar passed by the Event utility
-       */
-       doSelectCell : function(e, cal) {
-               var cell,index,d,date;
-
-               var target = YAHOO.util.Event.getTarget(e);
-               var tagName = target.tagName.toLowerCase();
-               var defSelector = false;
-
-               while (tagName != "td" && ! YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-
-                       if (!defSelector && tagName == "a" && YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTOR)) {
-                               defSelector = true;     
-                       }
-
-                       target = target.parentNode;
-                       tagName = target.tagName.toLowerCase();
-                       // TODO: No need to go all the way up to html.
-                       if (tagName == "html") {
-                               return;
-                       }
-               }
-
-               if (defSelector) {
-                       // Stop link href navigation for default renderer
-                       YAHOO.util.Event.preventDefault(e);
-               }
-       
-               cell = target;
-
-               if (YAHOO.util.Dom.hasClass(cell, cal.Style.CSS_CELL_SELECTABLE)) {
-                       index = cell.id.split("cell")[1];
-                       d = cal.cellDates[index];
-                       date = YAHOO.widget.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 = YAHOO.util.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 (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-                       YAHOO.util.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 = YAHOO.util.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 (YAHOO.util.Dom.hasClass(target, cal.Style.CSS_CELL_SELECTABLE)) {
-                       YAHOO.util.Dom.removeClass(target, cal.Style.CSS_CELL_HOVER);
-               }
-       },
-       
-       setupConfig : function() {
-       
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-
-               /**
-               * The month/year representing the current visible Calendar date (mm/yyyy)
-               * @config pagedate
-               * @type String
-               * @default today's date
-               */
-               this.cfg.addProperty(defCfg.PAGEDATE.key, { value:new Date(), handler:this.configPageDate } );
-
-               /**
-               * The date or range of dates representing the current Calendar selection
-               * @config selected
-               * @type String
-               * @default []
-               */
-               this.cfg.addProperty(defCfg.SELECTED.key, { value:[], handler:this.configSelected } );
-
-               /**
-               * The title to display above the Calendar's month header
-               * @config title
-               * @type String
-               * @default ""
-               */
-               this.cfg.addProperty(defCfg.TITLE.key, { value:defCfg.TITLE.value, handler:this.configTitle } );
-
-               /**
-               * Whether or not a close button should be displayed for this Calendar
-               * @config close
-               * @type Boolean
-               * @default false
-               */
-               this.cfg.addProperty(defCfg.CLOSE.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.IFRAME.key, { value:defCfg.IFRAME.value, handler:this.configIframe, validator:this.cfg.checkBoolean } );
-
-               /**
-               * The minimum selectable date in the current Calendar (mm/dd/yyyy)
-               * @config mindate
-               * @type String
-               * @default null
-               */
-               this.cfg.addProperty(defCfg.MINDATE.key, { value:defCfg.MINDATE.value, handler:this.configMinDate } );
-
-               /**
-               * The maximum selectable date in the current Calendar (mm/dd/yyyy)
-               * @config maxdate
-               * @type String
-               * @default null
-               */
-               this.cfg.addProperty(defCfg.MAXDATE.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.MULTI_SELECT.key,   { value:defCfg.MULTI_SELECT.value, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-       
-               /**
-               * The weekday the week begins on. Default is 0 (Sunday).
-               * @config START_WEEKDAY
-               * @type number
-               * @default 0
-               */
-               this.cfg.addProperty(defCfg.START_WEEKDAY.key,  { value:defCfg.START_WEEKDAY.value, handler:this.configOptions, validator:this.cfg.checkNumber  } );
-       
-               /**
-               * True if the Calendar should show weekday labels. True by default.
-               * @config SHOW_WEEKDAYS
-               * @type Boolean
-               * @default true
-               */
-               this.cfg.addProperty(defCfg.SHOW_WEEKDAYS.key,  { value:defCfg.SHOW_WEEKDAYS.value, handler:this.configOptions, validator:this.cfg.checkBoolean  } );
-       
-               /**
-               * True if the Calendar should show week row headers. False by default.
-               * @config SHOW_WEEK_HEADER
-               * @type Boolean
-               * @default false
-               */
-               this.cfg.addProperty(defCfg.SHOW_WEEK_HEADER.key, { value:defCfg.SHOW_WEEK_HEADER.value, handler:this.configOptions, validator:this.cfg.checkBoolean } );
-       
-               /**
-               * True if the Calendar should show week row footers. False by default.
-               * @config SHOW_WEEK_FOOTER
-               * @type Boolean
-               * @default false
-               */      
-               this.cfg.addProperty(defCfg.SHOW_WEEK_FOOTER.key,{ value:defCfg.SHOW_WEEK_FOOTER.value, handler:this.configOptions, validator:this.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
-               */      
-               this.cfg.addProperty(defCfg.HIDE_BLANK_WEEKS.key, { value:defCfg.HIDE_BLANK_WEEKS.value, handler:this.configOptions, validator:this.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
-               */      
-               this.cfg.addProperty(defCfg.NAV_ARROW_LEFT.key, { value:defCfg.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
-               */      
-               this.cfg.addProperty(defCfg.NAV_ARROW_RIGHT.key, { value:defCfg.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"]
-               */
-               this.cfg.addProperty(defCfg.MONTHS_SHORT.key,   { value:defCfg.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"
-               */      
-               this.cfg.addProperty(defCfg.MONTHS_LONG.key,            { value:defCfg.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"]
-               */      
-               this.cfg.addProperty(defCfg.WEEKDAYS_1CHAR.key, { value:defCfg.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"]
-               */      
-               this.cfg.addProperty(defCfg.WEEKDAYS_SHORT.key, { value:defCfg.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"]
-               */      
-               this.cfg.addProperty(defCfg.WEEKDAYS_MEDIUM.key,        { value:defCfg.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"]
-               */      
-               this.cfg.addProperty(defCfg.WEEKDAYS_LONG.key,  { value:defCfg.WEEKDAYS_LONG.value, handler:this.configLocale } );
-       
-               /**
-               * Refreshes the locale values used to build the Calendar.
-               * @method refreshLocale
-               * @private
-               */
-               var refreshLocale = function() {
-                       this.cfg.refireEvent(defCfg.LOCALE_MONTHS.key);
-                       this.cfg.refireEvent(defCfg.LOCALE_WEEKDAYS.key);
-               };
-       
-               this.cfg.subscribeToConfigEvent(defCfg.START_WEEKDAY.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.MONTHS_SHORT.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.MONTHS_LONG.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.WEEKDAYS_1CHAR.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.WEEKDAYS_SHORT.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.WEEKDAYS_MEDIUM.key, refreshLocale, this, true);
-               this.cfg.subscribeToConfigEvent(defCfg.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"
-               */      
-               this.cfg.addProperty(defCfg.LOCALE_MONTHS.key,  { value:defCfg.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"
-               */      
-               this.cfg.addProperty(defCfg.LOCALE_WEEKDAYS.key,        { value:defCfg.LOCALE_WEEKDAYS.value, handler:this.configLocaleValues } );
-       
-               /**
-               * The value used to delimit individual dates in a date string passed to various Calendar functions.
-               * @config DATE_DELIMITER
-               * @type String
-               * @default ","
-               */      
-               this.cfg.addProperty(defCfg.DATE_DELIMITER.key,         { value:defCfg.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 "/"
-               */      
-               this.cfg.addProperty(defCfg.DATE_FIELD_DELIMITER.key, { value:defCfg.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 "-"
-               */
-               this.cfg.addProperty(defCfg.DATE_RANGE_DELIMITER.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.MY_MONTH_POSITION.key,      { value:defCfg.MY_MONTH_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the year in a month/year date string
-               * @config MY_YEAR_POSITION
-               * @type Number
-               * @default 2
-               */
-               this.cfg.addProperty(defCfg.MY_YEAR_POSITION.key,       { value:defCfg.MY_YEAR_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the month in a month/day date string
-               * @config MD_MONTH_POSITION
-               * @type Number
-               * @default 1
-               */
-               this.cfg.addProperty(defCfg.MD_MONTH_POSITION.key,      { value:defCfg.MD_MONTH_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the day in a month/year date string
-               * @config MD_DAY_POSITION
-               * @type Number
-               * @default 2
-               */
-               this.cfg.addProperty(defCfg.MD_DAY_POSITION.key,                { value:defCfg.MD_DAY_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the month in a month/day/year date string
-               * @config MDY_MONTH_POSITION
-               * @type Number
-               * @default 1
-               */
-               this.cfg.addProperty(defCfg.MDY_MONTH_POSITION.key,     { value:defCfg.MDY_MONTH_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the day in a month/day/year date string
-               * @config MDY_DAY_POSITION
-               * @type Number
-               * @default 2
-               */
-               this.cfg.addProperty(defCfg.MDY_DAY_POSITION.key,       { value:defCfg.MDY_DAY_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-       
-               /**
-               * The position of the year in a month/day/year date string
-               * @config MDY_YEAR_POSITION
-               * @type Number
-               * @default 3
-               */
-               this.cfg.addProperty(defCfg.MDY_YEAR_POSITION.key,      { value:defCfg.MDY_YEAR_POSITION.value, handler:this.configLocale, validator:this.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
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_MONTH_POSITION.key,        { value:defCfg.MY_LABEL_MONTH_POSITION.value, handler:this.configLocale, validator:this.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
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_YEAR_POSITION.key, { value:defCfg.MY_LABEL_YEAR_POSITION.value, handler:this.configLocale, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The suffix used after the month when rendering the Calendar header
-               * @config MY_LABEL_MONTH_SUFFIX
-               * @type String
-               * @default " "
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_MONTH_SUFFIX.key,  { value:defCfg.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 ""
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_YEAR_SUFFIX.key, { value:defCfg.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 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
-               */
-               this.cfg.addProperty(defCfg.NAV.key, { value:defCfg.NAV.value, handler:this.configNavigator } );
-       },
-
-       /**
-       * The default handler for the "pagedate" property
-       * @method configPageDate
-       */
-       configPageDate : function(type, args, obj) {
-               this.cfg.setProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.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 (YAHOO.lang.isString(val)) {
-                       val = this._parseDate(val);
-                       this.cfg.setProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.MINDATE.key, YAHOO.widget.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 (YAHOO.lang.isString(val)) {
-                       val = this._parseDate(val);
-                       this.cfg.setProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.MAXDATE.key, YAHOO.widget.DateMath.getDate(val[0],(val[1]-1),val[2]));
-               }
-       },
-       
-       /**
-       * The default handler for the "selected" property
-       * @method configSelected
-       */
-       configSelected : function(type, args, obj) {
-               var selected = args[0];
-               var cfgSelected = YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key;
-               
-               if (selected) {
-                       if (YAHOO.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) {
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-               this.Locale[type.toUpperCase()] = args[0];
-       
-               this.cfg.refireEvent(defCfg.LOCALE_MONTHS.key);
-               this.cfg.refireEvent(defCfg.LOCALE_WEEKDAYS.key);
-       },
-       
-       /**
-       * The default handler for all configuration locale field length properties
-       * @method configLocaleValues
-       */
-       configLocaleValues : function(type, args, obj) {
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG; 
-       
-               type = type.toLowerCase();
-               var val = args[0];
-       
-               switch (type) {
-                       case defCfg.LOCALE_MONTHS.key:
-                               switch (val) {
-                                       case YAHOO.widget.Calendar.SHORT:
-                                               this.Locale.LOCALE_MONTHS = this.cfg.getProperty(defCfg.MONTHS_SHORT.key).concat();
-                                               break;
-                                       case YAHOO.widget.Calendar.LONG:
-                                               this.Locale.LOCALE_MONTHS = this.cfg.getProperty(defCfg.MONTHS_LONG.key).concat();
-                                               break;
-                               }
-                               break;
-                       case defCfg.LOCALE_WEEKDAYS.key:
-                               switch (val) {
-                                       case YAHOO.widget.Calendar.ONE_CHAR:
-                                               this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty(defCfg.WEEKDAYS_1CHAR.key).concat();
-                                               break;
-                                       case YAHOO.widget.Calendar.SHORT:
-                                               this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty(defCfg.WEEKDAYS_SHORT.key).concat();
-                                               break;
-                                       case YAHOO.widget.Calendar.MEDIUM:
-                                               this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty(defCfg.WEEKDAYS_MEDIUM.key).concat();
-                                               break;
-                                       case YAHOO.widget.Calendar.LONG:
-                                               this.Locale.LOCALE_WEEKDAYS = this.cfg.getProperty(defCfg.WEEKDAYS_LONG.key).concat();
-                                               break;
-                               }
-                               
-                               var START_WEEKDAY = this.cfg.getProperty(defCfg.START_WEEKDAY.key);
-       
-                               if (START_WEEKDAY > 0) {
-                                       for (var w=0;w<START_WEEKDAY;++w) {
-                                               this.Locale.LOCALE_WEEKDAYS.push(this.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 || YAHOO.lang.isObject(val))) {
-                       if (!this.oNavigator) {
-                               this.oNavigator = new YAHOO.widget.CalendarNavigator(this);
-                               // Cleanup DOM Refs/Events before innerHTML is removed.
-                               function erase() {
-                                       if (!this.pages) {
-                                               this.oNavigator.erase();
-                                       }
-                               }
-                               this.beforeRenderEvent.subscribe(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 = YAHOO.widget.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
-               };
-       },
-       
-       /**
-       * 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() {
-               var pageDate = this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key);
-       
-               var monthLabel  = this.Locale.LOCALE_MONTHS[pageDate.getMonth()] + this.Locale.MY_LABEL_MONTH_SUFFIX;
-               var yearLabel = pageDate.getFullYear() + 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 = YAHOO.util.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);
-       
-               YAHOO.util.Dom.addClass(this.oDomContainer, "withtitle");
-       
-               return tDiv;
-       },
-       
-       /**
-        * Removes the title bar element from the DOM
-        * 
-        * @method removeTitleBar
-        */
-       removeTitleBar : function() {
-               var tDiv = YAHOO.util.Dom.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE, "div", this.oDomContainer)[0] || null;
-               if (tDiv) {
-                       YAHOO.util.Event.purgeElement(tDiv);
-                       this.oDomContainer.removeChild(tDiv);
-               }
-               YAHOO.util.Dom.removeClass(this.oDomContainer, "withtitle");
-       },
-       
-       /**
-        * Creates the close button HTML element and adds it to Calendar container DIV
-        * 
-        * @method createCloseButton
-        * @return The close HTML element created
-        */
-       createCloseButton : function() {
-               var Dom = YAHOO.util.Dom,
-                       Event = YAHOO.util.Event,
-                       cssClose = YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,
-                       DEPR_CLOSE_PATH = "us/my/bn/x_d.gif";
-       
-               var lnk = Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0];
-       
-               if (!lnk) {
-                       lnk = document.createElement("a");  
-                       Event.addListener(lnk, "click", function(e, cal) {
-                               cal.hide(); 
-                               Event.preventDefault(e);
-                       }, this);        
-               }
-       
-               lnk.href = "#";
-               lnk.className = "link-close";
-       
-               if (YAHOO.widget.Calendar.IMG_ROOT !== null) {
-                       var img = Dom.getElementsByClassName(cssClose, "img", lnk)[0] || document.createElement("img");
-                       img.src = YAHOO.widget.Calendar.IMG_ROOT + DEPR_CLOSE_PATH;
-                       img.className = cssClose;
-                       lnk.appendChild(img);
-               } else {
-                       lnk.innerHTML = '<span class="' + cssClose + ' ' + this.Style.CSS_CLOSE + '"></span>';
-               }
-               this.oDomContainer.appendChild(lnk);
-       
-               return lnk;
-       },
-       
-       /**
-        * Removes the close button HTML element from the DOM
-        * 
-        * @method removeCloseButton
-        */
-       removeCloseButton : function() {
-               var btn = YAHOO.util.Dom.getElementsByClassName("link-close", "a", this.oDomContainer)[0] || null;
-               if (btn) {
-                       YAHOO.util.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;
-               
-               var DEPR_NAV_LEFT = "us/tr/callt.gif";
-               var DEPR_NAV_RIGHT = "us/tr/calrt.gif"; 
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-               
-               if (this.cfg.getProperty(defCfg.SHOW_WEEK_HEADER.key)) {
-                       colSpan += 1;
-               }
-       
-               if (this.cfg.getProperty(defCfg.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) {
-                       var leftArrow = this.cfg.getProperty(defCfg.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 && YAHOO.widget.Calendar.IMG_ROOT !== null) {
-                               leftArrow = YAHOO.widget.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 + ' >&#160;</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) {
-                       var rightArrow = this.cfg.getProperty(defCfg.NAV_ARROW_RIGHT.key);
-                       if (rightArrow === null && YAHOO.widget.Calendar.IMG_ROOT !== null) {
-                               rightArrow = YAHOO.widget.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 + ' >&#160;</a>';
-               }
-
-               html[html.length] =     '</div>\n</th>\n</tr>';
-
-               if (this.cfg.getProperty(defCfg.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) {
-       
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-       
-               html[html.length] = '<tr class="' + this.Style.CSS_WEEKDAY_ROW + '">';
-       
-               if (this.cfg.getProperty(defCfg.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="calweekdaycell">' + this.Locale.LOCALE_WEEKDAYS[i] + '</th>';
-               }
-       
-               if (this.cfg.getProperty(defCfg.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 defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-       
-               var startDay = this.cfg.getProperty(defCfg.START_WEEKDAY.key);
-       
-               this.preMonthDays = workingDate.getDay();
-               if (startDay > 0) {
-                       this.preMonthDays -= startDay;
-               }
-               if (this.preMonthDays < 0) {
-                       this.preMonthDays += 7;
-               }
-               
-               this.monthDays = YAHOO.widget.DateMath.findMonthEnd(workingDate).getDate();
-               this.postMonthDays = YAHOO.widget.Calendar.DISPLAY_DAYS-this.preMonthDays-this.monthDays;
-               
-               workingDate = YAHOO.widget.DateMath.subtract(workingDate, YAHOO.widget.DateMath.DAY, this.preMonthDays);
-       
-               var weekNum,weekClass;
-               var weekPrefix = "w";
-               var cellPrefix = "_cell";
-               var workingDayPrefix = "wd";
-               var dayPrefix = "d";
-               
-               var cellRenderers;
-               var renderer;
-               
-               var todayYear = this.today.getFullYear();
-               var todayMonth = this.today.getMonth();
-               var todayDate = this.today.getDate();
-               
-               var useDate = this.cfg.getProperty(defCfg.PAGEDATE.key);
-               var hideBlankWeeks = this.cfg.getProperty(defCfg.HIDE_BLANK_WEEKS.key);
-               var showWeekFooter = this.cfg.getProperty(defCfg.SHOW_WEEK_FOOTER.key);
-               var showWeekHeader = this.cfg.getProperty(defCfg.SHOW_WEEK_HEADER.key);
-               var mindate = this.cfg.getProperty(defCfg.MINDATE.key);
-               var maxdate = this.cfg.getProperty(defCfg.MAXDATE.key);
-       
-               if (mindate) {
-                       mindate = YAHOO.widget.DateMath.clearTime(mindate);
-               }
-               if (maxdate) {
-                       maxdate = YAHOO.widget.DateMath.clearTime(maxdate);
-               }
-               
-               html[html.length] = '<tbody class="m' + (useDate.getMonth()+1) + ' ' + this.Style.CSS_BODY + '">';
-               
-               var i = 0;
-       
-               var tempDiv = document.createElement("div");
-               var cell = document.createElement("td");
-               tempDiv.appendChild(cell);
-       
-               var cal = this.parent || this;
-       
-               for (var r=0;r<6;r++) {
-       
-                       weekNum = YAHOO.widget.DateMath.getWeekNumber(workingDate, useDate.getFullYear(), 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 {
-                                               YAHOO.util.Dom.addClass(cell, workingDayPrefix + workingDate.getDay());
-                                               YAHOO.util.Dom.addClass(cell, dayPrefix + workingDate.getDate());
-                                       
-                                               for (var s=0;s<this.renderStack.length;++s) {
-       
-                                                       renderer = null;
-       
-                                                       var rArray = this.renderStack[s];
-                                                       var type = rArray[0];
-                                                       
-                                                       var month;
-                                                       var day;
-                                                       var year;
-                                                       
-                                                       switch (type) {
-                                                               case YAHOO.widget.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 YAHOO.widget.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 YAHOO.widget.Calendar.RANGE:
-                                                                       var date1 = rArray[1][0];
-                                                                       var date2 = rArray[1][1];
-       
-                                                                       var d1month = date1[1];
-                                                                       var d1day = date1[2];
-                                                                       var d1year = date1[0];
-                                                                       
-                                                                       var d1 = YAHOO.widget.DateMath.getDate(d1year, d1month-1, d1day);
-       
-                                                                       var d2month = date2[1];
-                                                                       var d2day = date2[2];
-                                                                       var d2year = date2[0];
-       
-                                                                       var d2 = YAHOO.widget.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 YAHOO.widget.Calendar.WEEKDAY:
-                                                                       
-                                                                       var weekday = rArray[1][0];
-                                                                       if (workingDate.getDay()+1 == weekday) {
-                                                                               renderer = rArray[2];
-                                                                       }
-                                                                       break;
-                                                               case YAHOO.widget.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) == YAHOO.widget.Calendar.STOP_RENDER) {
-                                                       break;
-                                               }
-                                       }
-       
-                                       workingDate.setTime(workingDate.getTime() + YAHOO.widget.DateMath.ONE_DAY_MS);
-       
-                                       if (i >= 0 && i <= 6) {
-                                               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_TOP);
-                                       }
-                                       if ((i % 7) === 0) {
-                                               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_LEFT);
-                                       }
-                                       if (((i+1) % 7) === 0) {
-                                               YAHOO.util.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)) {
-                                               YAHOO.util.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();
-       
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-       
-               // Find starting day of the current month
-               var workingDate = YAHOO.widget.DateMath.findMonthStart(this.cfg.getProperty(defCfg.PAGEDATE.key));
-       
-               this.resetRenderers();
-               this.cellDates.length = 0;
-
-               YAHOO.util.Event.purgeElement(this.oDomContainer, true);
-
-               var html = [];
-       
-               html[html.length] = '<table cellSpacing="0" class="' + this.Style.CSS_CALENDAR + ' y' + workingDate.getFullYear() + '" 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 = this.oDomContainer.getElementsByTagName("td");
-       
-               this.cfg.refireEvent(defCfg.TITLE.key);
-               this.cfg.refireEvent(defCfg.CLOSE.key);
-               this.cfg.refireEvent(defCfg.IFRAME.key);
-       
-               this.renderEvent.fire();
-       },
-
-       /**
-       * Applies the Calendar's DOM listeners to applicable elements.
-       * @method applyListeners
-       */
-       applyListeners : function() {
-               var root = this.oDomContainer;
-               var cal = this.parent || this;
-               var anchor = "a";
-               var mousedown = "mousedown";
-
-               var linkLeft = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_LEFT, anchor, root);
-               var linkRight = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV_RIGHT, anchor, root);
-       
-               if (linkLeft && linkLeft.length > 0) {
-                       this.linkLeft = linkLeft[0];
-                       YAHOO.util.Event.addListener(this.linkLeft, mousedown, cal.previousMonth, cal, true);
-               }
-
-               if (linkRight && linkRight.length > 0) {
-                       this.linkRight = linkRight[0];
-                       YAHOO.util.Event.addListener(this.linkRight, mousedown, cal.nextMonth, cal, true);
-               }
-
-               if (cal.cfg.getProperty("navigator") !== null) {
-                       this.applyNavListeners();
-               }
-
-               if (this.domEventMap) {
-                       var el,elements;
-                       for (var cls in this.domEventMap) {     
-                               if (YAHOO.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 = YAHOO.util.Dom.getElementsByClassName(cls, item.tag, this.oDomContainer);
-       
-                                               for (var c=0;c<elements.length;c++) {
-                                                       el = elements[c];
-                                                        YAHOO.util.Event.addListener(el, item.event, item.handler, item.scope, item.correct );
-                                               }
-                                       }
-                               }
-                       }
-               }
-       
-               YAHOO.util.Event.addListener(this.oDomContainer, "click", this.doSelectCell, this);
-               YAHOO.util.Event.addListener(this.oDomContainer, "mouseover", this.doCellMouseOver, this);
-               YAHOO.util.Event.addListener(this.oDomContainer, "mouseout", this.doCellMouseOut, this);
-       },
-
-       applyNavListeners : function() {
-
-               var E = YAHOO.util.Event;
-
-               var calParent = this.parent || this;
-               var cal = this;
-
-               var navBtns = YAHOO.util.Dom.getElementsByClassName(this.Style.CSS_NAV, "a", this.oDomContainer);
-
-               if (navBtns.length > 0) {
-
-                       function show(e, obj) {
-                               var target = E.getTarget(e);
-                               // this == navBtn
-                               if (this === target || YAHOO.util.Dom.isAncestor(this, target)) {
-                                       E.preventDefault(e);
-                               }
-                               var navigator = calParent.oNavigator;
-                               if (navigator) {
-                                       var pgdate = cal.cfg.getProperty("pagedate");
-                                       navigator.setYear(pgdate.getFullYear());
-                                       navigator.setMonth(pgdate.getMonth());
-                                       navigator.show();
-                               }
-                       }
-                       E.addListener(navBtns, "click", 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 YAHOO.widget.DateMath.getDate(date[0],date[1]-1,date[2]);
-       },
-       
-       /**
-       * 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 = id.toLowerCase().split("_cell")[1];
-               id = parseInt(id, 10);
-               return this.cellDates[id];
-       },
-       
-       /**
-        * 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;
-       },
-       
-       // 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) {
-               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_OOB);
-               cell.innerHTML = workingDate.getDate();
-               return YAHOO.widget.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="calrowhead">' + 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="calrowfoot">' + 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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.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) {
-               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_OOM);
-               cell.innerHTML=workingDate.getDate();
-               return YAHOO.widget.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) {
-               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL);
-               YAHOO.util.Dom.addClass(cell, this.Style.CSS_CELL_RESTRICTED);
-               cell.innerHTML=workingDate.getDate();
-               return YAHOO.widget.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 = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               this.cfg.setProperty(cfgPageDate, YAHOO.widget.DateMath.add(this.cfg.getProperty(cfgPageDate), YAHOO.widget.DateMath.MONTH, count));
-               this.resetRenderers();
-               this.changePageEvent.fire();
-       },
-       
-       /**
-       * 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) {
-               var cfgPageDate = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               this.cfg.setProperty(cfgPageDate, YAHOO.widget.DateMath.subtract(this.cfg.getProperty(cfgPageDate), YAHOO.widget.DateMath.MONTH, count));
-               this.resetRenderers();
-               this.changePageEvent.fire();
-       },
-       
-       /**
-       * 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 = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               this.cfg.setProperty(cfgPageDate, YAHOO.widget.DateMath.add(this.cfg.getProperty(cfgPageDate), YAHOO.widget.DateMath.YEAR, count));
-               this.resetRenderers();
-               this.changePageEvent.fire();
-       },
-       
-       /**
-       * 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) {
-               var cfgPageDate = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               this.cfg.setProperty(cfgPageDate, YAHOO.widget.DateMath.subtract(this.cfg.getProperty(cfgPageDate), YAHOO.widget.DateMath.YEAR, count));
-               this.resetRenderers();
-               this.changePageEvent.fire();
-       },
-       
-       /**
-       * 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.subtractMonths(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.subtractYears(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() {
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-               this.cfg.resetProperty(defCfg.SELECTED.key);
-               this.cfg.resetProperty(defCfg.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() {
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-               this.cfg.setProperty(defCfg.SELECTED.key, []);
-               this.cfg.setProperty(defCfg.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);
-       
-               // Filtered array of valid dates
-               var validDates = [];
-               var selected = [];
-               var cfgSelected = YAHOO.widget.Calendar._DEFAULT_CONFIG.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];
-               var cellDate = this.cellDates[cellIndex];
-               var dCellDate = this._toDate(cellDate);
-               
-               var selectable = YAHOO.util.Dom.hasClass(cell, this.Style.CSS_CELL_SELECTABLE);
-       
-               if (selectable) {
-       
-                       this.beforeSelectEvent.fire();
-       
-                       var cfgSelected = YAHOO.widget.Calendar._DEFAULT_CONFIG.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);
-       
-               var validDates = [];
-               var selected = [];
-               var cfgSelected = YAHOO.widget.Calendar._DEFAULT_CONFIG.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];
-               var cellDate = this.cellDates[cellIndex];
-               var cellDateIndex = this._indexOfSelectedFieldArray(cellDate);
-               
-               var selectable = YAHOO.util.Dom.hasClass(cell, this.Style.CSS_CELL_SELECTABLE);
-       
-               if (selectable) {
-       
-                       this.beforeDeselectEvent.fire();
-       
-                       var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-                       var selected = this.cfg.getProperty(defCfg.SELECTED.key);
-       
-                       var dCellDate = this._toDate(cellDate);
-                       var selectDate = cellDate.concat();
-       
-                       if (cellDateIndex > -1) {
-                               if (this.cfg.getProperty(defCfg.PAGEDATE.key).getMonth() == dCellDate.getMonth() &&
-                                       this.cfg.getProperty(defCfg.PAGEDATE.key).getFullYear() == dCellDate.getFullYear()) {
-                                       YAHOO.util.Dom.removeClass(cell, this.Style.CSS_CELL_SELECTED);
-                               }
-                               selected.splice(cellDateIndex, 1);
-                       }
-       
-                       if (this.parent) {
-                               this.parent.cfg.setProperty(defCfg.SELECTED.key, selected);
-                       } else {
-                               this.cfg.setProperty(defCfg.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 = YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key;
-       
-               var selected = this.cfg.getProperty(cfgSelected);
-               var count = selected.length;
-               var 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 (YAHOO.lang.isString(date)) {
-                       returnDate = this._parseDates(date);
-               } else if (YAHOO.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 YAHOO.widget.DateMath.getDate(dateFieldArray[0],dateFieldArray[1]-1,dateFieldArray[2]);
-               }
-       },
-       
-       // END TYPE CONVERSION METHODS 
-       
-       // BEGIN UTILITY METHODS
-       
-       /**
-       * Converts a date field array [yyyy,mm,dd] to a JavaScript Date object.
-       * @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;
-               var seldates = this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.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(YAHOO.widget.Calendar._DEFAULT_CONFIG.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 defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-               
-               var minDate = this.cfg.getProperty(defCfg.MINDATE.key);
-               var maxDate = this.cfg.getProperty(defCfg.MAXDATE.key);
-               var dm = YAHOO.widget.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;
-               
-               var defCfg = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-       
-               if (date) {
-                       if (date instanceof Date) {
-                               parsedDate = YAHOO.widget.DateMath.findMonthStart(date);
-                       } else {
-                               var month, year, aMonthYear;
-                               aMonthYear = date.split(this.cfg.getProperty(defCfg.DATE_FIELD_DELIMITER.key));
-                               month = parseInt(aMonthYear[this.cfg.getProperty(defCfg.MY_MONTH_POSITION.key)-1], 10)-1;
-                               year = parseInt(aMonthYear[this.cfg.getProperty(defCfg.MY_YEAR_POSITION.key)-1], 10);
-
-                               parsedDate = YAHOO.widget.DateMath.getDate(year, month, 1);
-                       }
-               } else {
-                       parsedDate = YAHOO.widget.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(YAHOO.widget.Calendar._DEFAULT_CONFIG.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);
-               var rArray;
-       
-               if (aDate.length == 2) {
-                       rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]];
-                       rArray.type = YAHOO.widget.Calendar.MONTH_DAY;
-               } else {
-                       rArray = [aDate[this.Locale.MDY_YEAR_POSITION-1],aDate[this.Locale.MDY_MONTH_POSITION-1],aDate[this.Locale.MDY_DAY_POSITION-1]];
-                       rArray.type = YAHOO.widget.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 = [];
-       
-               var 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);
-       
-                               var dateStart = this._parseDate(aRange[0]);
-                               var dateEnd = this._parseDate(aRange[1]);
-       
-                               var 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 = YAHOO.widget.DateMath.add(YAHOO.widget.DateMath.getDate(startDate[0],startDate[1]-1,startDate[2]),YAHOO.widget.DateMath.DAY,1);
-               var dEnd     = YAHOO.widget.DateMath.getDate(endDate[0],  endDate[1]-1,  endDate[2]);
-       
-               var results = [];
-               results.push(startDate);
-               while (dCurrent.getTime() <= dEnd.getTime()) {
-                       results.push([dCurrent.getFullYear(),dCurrent.getMonth()+1,dCurrent.getDate()]);
-                       dCurrent = YAHOO.widget.DateMath.add(dCurrent,YAHOO.widget.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(YAHOO.widget.Calendar.RANGE,aDate,fnRender);
-                               } else { // this is a month/day combo
-                                       this._addRenderer(YAHOO.widget.Calendar.MONTH_DAY,aDate,fnRender);
-                               }
-                       } else if (aDate.length == 3) {
-                               this._addRenderer(YAHOO.widget.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(YAHOO.widget.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 (0-6) 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(YAHOO.widget.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) {
-                       YAHOO.util.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 = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               var 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 = YAHOO.widget.Calendar._DEFAULT_CONFIG.PAGEDATE.key;
-               var current = this.cfg.getProperty(cfgPageDate);
-               current.setFullYear(parseInt(year, 10));
-               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 = [];
-               var selected = this.cfg.getProperty(YAHOO.widget.Calendar._DEFAULT_CONFIG.SELECTED.key);
-
-               for (var d=0;d<selected.length;++d) {
-                       var dateArray = selected[d];
-
-                       var date = YAHOO.widget.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;
-       }
-};
-
-/**
-* @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;
-
-/**
-* 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.
-*/
-YAHOO.widget.CalendarGroup = function(id, containerId, config) {
-       if (arguments.length > 0) {
-               this.init.apply(this, arguments);
-       }
-};
-
-YAHOO.widget.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 = YAHOO.util.Dom.get(container);
-
-               if (!this.oDomContainer.id) {
-                       this.oDomContainer.id = YAHOO.util.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 = [];
-
-               YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.CalendarGroup.CSS_CONTAINER);
-               YAHOO.util.Dom.addClass(this.oDomContainer, YAHOO.widget.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 defCfg = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG;
-
-               /**
-               * 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
-               */
-               this.cfg.addProperty(defCfg.PAGES.key, { value:defCfg.PAGES.value, validator:this.cfg.checkNumber, handler:this.configPages } );
-
-               /**
-               * The month/year representing the current visible Calendar date (mm/yyyy)
-               * @config pagedate
-               * @type String
-               * @default today's date
-               */
-               this.cfg.addProperty(defCfg.PAGEDATE.key, { value:new Date(), handler:this.configPageDate } );
-
-               /**
-               * The date or range of dates representing the current Calendar selection
-               * @config selected
-               * @type String
-               * @default []
-               */
-               this.cfg.addProperty(defCfg.SELECTED.key, { value:[], handler:this.configSelected } );
-
-               /**
-               * The title to display above the CalendarGroup's month header
-               * @config title
-               * @type String
-               * @default ""
-               */
-               this.cfg.addProperty(defCfg.TITLE.key, { value:defCfg.TITLE.value, handler:this.configTitle } );
-
-               /**
-               * Whether or not a close button should be displayed for this CalendarGroup
-               * @config close
-               * @type Boolean
-               * @default false
-               */
-               this.cfg.addProperty(defCfg.CLOSE.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.IFRAME.key, { value:defCfg.IFRAME.value, handler:this.configIframe, validator:this.cfg.checkBoolean } );
-       
-               /**
-               * The minimum selectable date in the current Calendar (mm/dd/yyyy)
-               * @config mindate
-               * @type String
-               * @default null
-               */
-               this.cfg.addProperty(defCfg.MINDATE.key, { value:defCfg.MINDATE.value, handler:this.delegateConfig } );
-       
-               /**
-               * The maximum selectable date in the current Calendar (mm/dd/yyyy)
-               * @config maxdate
-               * @type String
-               * @default null
-               */      
-               this.cfg.addProperty(defCfg.MAXDATE.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.MULTI_SELECT.key,   { value:defCfg.MULTI_SELECT.value, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-       
-               /**
-               * The weekday the week begins on. Default is 0 (Sunday).
-               * @config START_WEEKDAY
-               * @type number
-               * @default 0
-               */      
-               this.cfg.addProperty(defCfg.START_WEEKDAY.key,  { value:defCfg.START_WEEKDAY.value, handler:this.delegateConfig, validator:this.cfg.checkNumber  } );
-               
-               /**
-               * True if the Calendar should show weekday labels. True by default.
-               * @config SHOW_WEEKDAYS
-               * @type Boolean
-               * @default true
-               */      
-               this.cfg.addProperty(defCfg.SHOW_WEEKDAYS.key,  { value:defCfg.SHOW_WEEKDAYS.value, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-               
-               /**
-               * True if the Calendar should show week row headers. False by default.
-               * @config SHOW_WEEK_HEADER
-               * @type Boolean
-               * @default false
-               */      
-               this.cfg.addProperty(defCfg.SHOW_WEEK_HEADER.key,{ value:defCfg.SHOW_WEEK_HEADER.value, handler:this.delegateConfig, validator:this.cfg.checkBoolean } );
-               
-               /**
-               * True if the Calendar should show week row footers. False by default.
-               * @config SHOW_WEEK_FOOTER
-               * @type Boolean
-               * @default false
-               */
-               this.cfg.addProperty(defCfg.SHOW_WEEK_FOOTER.key,{ value:defCfg.SHOW_WEEK_FOOTER.value, handler:this.delegateConfig, validator:this.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
-               */              
-               this.cfg.addProperty(defCfg.HIDE_BLANK_WEEKS.key,{ value:defCfg.HIDE_BLANK_WEEKS.value, handler:this.delegateConfig, validator:this.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
-               */              
-               this.cfg.addProperty(defCfg.NAV_ARROW_LEFT.key, { value:defCfg.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
-               */              
-               this.cfg.addProperty(defCfg.NAV_ARROW_RIGHT.key,        { value:defCfg.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"]
-               */
-               this.cfg.addProperty(defCfg.MONTHS_SHORT.key,   { value:defCfg.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"
-               */              
-               this.cfg.addProperty(defCfg.MONTHS_LONG.key,            { value:defCfg.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"]
-               */              
-               this.cfg.addProperty(defCfg.WEEKDAYS_1CHAR.key, { value:defCfg.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"]
-               */              
-               this.cfg.addProperty(defCfg.WEEKDAYS_SHORT.key, { value:defCfg.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"]
-               */              
-               this.cfg.addProperty(defCfg.WEEKDAYS_MEDIUM.key,        { value:defCfg.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"]
-               */              
-               this.cfg.addProperty(defCfg.WEEKDAYS_LONG.key,  { value:defCfg.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"
-               */
-               this.cfg.addProperty(defCfg.LOCALE_MONTHS.key,  { value:defCfg.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"
-               */      
-               this.cfg.addProperty(defCfg.LOCALE_WEEKDAYS.key,        { value:defCfg.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 ","
-               */
-               this.cfg.addProperty(defCfg.DATE_DELIMITER.key,         { value:defCfg.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 "/"
-               */      
-               this.cfg.addProperty(defCfg.DATE_FIELD_DELIMITER.key,{ value:defCfg.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 "-"
-               */
-               this.cfg.addProperty(defCfg.DATE_RANGE_DELIMITER.key,{ value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.MY_MONTH_POSITION.key,      { value:defCfg.MY_MONTH_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the year in a month/year date string
-               * @config MY_YEAR_POSITION
-               * @type Number
-               * @default 2
-               */      
-               this.cfg.addProperty(defCfg.MY_YEAR_POSITION.key,       { value:defCfg.MY_YEAR_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the month in a month/day date string
-               * @config MD_MONTH_POSITION
-               * @type Number
-               * @default 1
-               */      
-               this.cfg.addProperty(defCfg.MD_MONTH_POSITION.key,      { value:defCfg.MD_MONTH_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the day in a month/year date string
-               * @config MD_DAY_POSITION
-               * @type Number
-               * @default 2
-               */      
-               this.cfg.addProperty(defCfg.MD_DAY_POSITION.key,                { value:defCfg.MD_DAY_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the month in a month/day/year date string
-               * @config MDY_MONTH_POSITION
-               * @type Number
-               * @default 1
-               */      
-               this.cfg.addProperty(defCfg.MDY_MONTH_POSITION.key,     { value:defCfg.MDY_MONTH_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the day in a month/day/year date string
-               * @config MDY_DAY_POSITION
-               * @type Number
-               * @default 2
-               */      
-               this.cfg.addProperty(defCfg.MDY_DAY_POSITION.key,       { value:defCfg.MDY_DAY_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The position of the year in a month/day/year date string
-               * @config MDY_YEAR_POSITION
-               * @type Number
-               * @default 3
-               */      
-               this.cfg.addProperty(defCfg.MDY_YEAR_POSITION.key,      { value:defCfg.MDY_YEAR_POSITION.value, handler:this.delegateConfig, validator:this.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
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_MONTH_POSITION.key,        { value:defCfg.MY_LABEL_MONTH_POSITION.value, handler:this.delegateConfig, validator:this.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
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_YEAR_POSITION.key, { value:defCfg.MY_LABEL_YEAR_POSITION.value, handler:this.delegateConfig, validator:this.cfg.checkNumber } );
-               
-               /**
-               * The suffix used after the month when rendering the Calendar header
-               * @config MY_LABEL_MONTH_SUFFIX
-               * @type String
-               * @default " "
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_MONTH_SUFFIX.key,  { value:defCfg.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 ""
-               */
-               this.cfg.addProperty(defCfg.MY_LABEL_YEAR_SUFFIX.key, { value:defCfg.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
-               */
-               this.cfg.addProperty(defCfg.NAV.key, { value:defCfg.NAV.value, handler:this.configNavigator } );
-       },
-
-       /**
-       * Initializes CalendarGroup's built-in CustomEvents
-       * @method initEvents
-       */
-       initEvents : function() {
-               var me = this;
-               var strEvent = "Event";
-
-               /**
-               * 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 = YAHOO.widget.Calendar._EVENT_TYPES;
-       
-               /**
-               * Fired before a selection is made
-               * @event beforeSelectEvent
-               */
-               this.beforeSelectEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SELECT);
-               this.beforeSelectEvent.subscribe = sub; this.beforeSelectEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired when a selection is made
-               * @event selectEvent
-               * @param {Array}        Array of Date field arrays in the format [YYYY, MM, DD].
-               */
-               this.selectEvent = new YAHOO.util.CustomEvent(defEvents.SELECT); 
-               this.selectEvent.subscribe = sub; this.selectEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired before a selection is made
-               * @event beforeDeselectEvent
-               */
-               this.beforeDeselectEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_DESELECT); 
-               this.beforeDeselectEvent.subscribe = sub; this.beforeDeselectEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired when a selection is made
-               * @event deselectEvent
-               * @param {Array}        Array of Date field arrays in the format [YYYY, MM, DD].
-               */
-               this.deselectEvent = new YAHOO.util.CustomEvent(defEvents.DESELECT); 
-               this.deselectEvent.subscribe = sub; this.deselectEvent.unsubscribe = unsub;
-               
-               /**
-               * Fired when the Calendar page is changed
-               * @event changePageEvent
-               */
-               this.changePageEvent = new YAHOO.util.CustomEvent(defEvents.CHANGE_PAGE); 
-               this.changePageEvent.subscribe = sub; this.changePageEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired before the Calendar is rendered
-               * @event beforeRenderEvent
-               */
-               this.beforeRenderEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_RENDER);
-               this.beforeRenderEvent.subscribe = sub; this.beforeRenderEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired when the Calendar is rendered
-               * @event renderEvent
-               */
-               this.renderEvent = new YAHOO.util.CustomEvent(defEvents.RENDER);
-               this.renderEvent.subscribe = sub; this.renderEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired when the Calendar is reset
-               * @event resetEvent
-               */
-               this.resetEvent = new YAHOO.util.CustomEvent(defEvents.RESET); 
-               this.resetEvent.subscribe = sub; this.resetEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired when the Calendar is cleared
-               * @event clearEvent
-               */
-               this.clearEvent = new YAHOO.util.CustomEvent(defEvents.CLEAR);
-               this.clearEvent.subscribe = sub; this.clearEvent.unsubscribe = unsub;
-       
-               /**
-               * Fired just before the CalendarGroup is to be shown
-               * @event beforeShowEvent
-               */
-               this.beforeShowEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SHOW);
-       
-               /**
-               * Fired after the CalendarGroup is shown
-               * @event showEvent
-               */
-               this.showEvent = new YAHOO.util.CustomEvent(defEvents.SHOW);
-       
-               /**
-               * Fired just before the CalendarGroup is to be hidden
-               * @event beforeHideEvent
-               */
-               this.beforeHideEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_HIDE);
-       
-               /**
-               * Fired after the CalendarGroup is hidden
-               * @event hideEvent
-               */
-               this.hideEvent = new YAHOO.util.CustomEvent(defEvents.HIDE);
-
-               /**
-               * Fired just before the CalendarNavigator is to be shown
-               * @event beforeShowNavEvent
-               */
-               this.beforeShowNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_SHOW_NAV);
-       
-               /**
-               * Fired after the CalendarNavigator is shown
-               * @event showNavEvent
-               */
-               this.showNavEvent = new YAHOO.util.CustomEvent(defEvents.SHOW_NAV);
-       
-               /**
-               * Fired just before the CalendarNavigator is to be hidden
-               * @event beforeHideNavEvent
-               */
-               this.beforeHideNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_HIDE_NAV);
-       
-               /**
-               * Fired after the CalendarNavigator is hidden
-               * @event hideNavEvent
-               */
-               this.hideNavEvent = new YAHOO.util.CustomEvent(defEvents.HIDE_NAV);
-
-               /**
-               * Fired just before the CalendarNavigator is to be rendered
-               * @event beforeRenderNavEvent
-               */
-               this.beforeRenderNavEvent = new YAHOO.util.CustomEvent(defEvents.BEFORE_RENDER_NAV);
-
-               /**
-               * Fired after the CalendarNavigator is rendered
-               * @event renderNavEvent
-               */
-               this.renderNavEvent = new YAHOO.util.CustomEvent(defEvents.RENDER_NAV);
-       },
-       
-       /**
-       * 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];
-       
-               var cfgPageDate = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.PAGEDATE.key;
-       
-               // Define literals outside loop 
-               var sep = "_";
-               var groupCalClass = "groupcal";
-       
-               var firstClass = "first-of-type";
-               var lastClass = "last-of-type";
-       
-               for (var p=0;p<pageCount;++p) {
-                       var calId = this.id + sep + p;
-                       var calContainerId = this.containerId + sep + p;
-       
-                       var childConfig = this.cfg.getConfig();
-                       childConfig.close = false;
-                       childConfig.title = false;
-                       childConfig.navigator = null;
-
-                       var cal = this.constructChild(calId, calContainerId, childConfig);
-                       var caldate = cal.cfg.getProperty(cfgPageDate);
-                       this._setMonthOnDate(caldate, caldate.getMonth() + p);
-                       cal.cfg.setProperty(cfgPageDate, caldate);
-       
-                       YAHOO.util.Dom.removeClass(cal.oDomContainer, this.Style.CSS_SINGLE);
-                       YAHOO.util.Dom.addClass(cal.oDomContainer, groupCalClass);
-
-                       if (p===0) {
-                               YAHOO.util.Dom.addClass(cal.oDomContainer, firstClass);
-                       }
-       
-                       if (p==(pageCount-1)) {
-                               YAHOO.util.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];
-               var firstPageDate;
-               
-               var cfgPageDate = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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 = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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(YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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(YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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 YAHOO.widget.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 = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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 = YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.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();
-               }
-       },
-       
-       /**
-       * 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(YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.SELECTED.key);
-               for (var d=0;d<selected.length;++d) {
-                       var dateArray = selected[d];
-
-                       var date = YAHOO.widget.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 DM = YAHOO.widget.DateMath;
-                       var newDate = DM.add(date, DM.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;
-       }
-};
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_CONTAINER
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.CalendarGroup.CSS_CONTAINER = "yui-calcontainer";
-
-/**
-* CSS class representing the container for the calendar
-* @property YAHOO.widget.CalendarGroup.CSS_MULTI_UP
-* @static
-* @final
-* @type String
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.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
-*/
-YAHOO.widget.CalendarGroup.CSS_2UPCLOSE = "close-icon";
-
-YAHOO.lang.augmentProto(YAHOO.widget.CalendarGroup, YAHOO.widget.Calendar, "buildDayLabel",
-                                                                                                                                "buildMonthLabel",
-                                                                                                                                "renderOutOfBoundsDate",
-                                                                                                                                "renderRowHeader",
-                                                                                                                                "renderRowFooter",
-                                                                                                                                "renderCellDefault",
-                                                                                                                                "styleCellDefault",
-                                                                                                                                "renderCellStyleHighlight1",
-                                                                                                                                "renderCellStyleHighlight2",
-                                                                                                                                "renderCellStyleHighlight3",
-                                                                                                                                "renderCellStyleHighlight4",
-                                                                                                                                "renderCellStyleToday",
-                                                                                                                                "renderCellStyleSelected",
-                                                                                                                                "renderCellNotThisMonth",
-                                                                                                                                "renderBodyCellRestricted",
-                                                                                                                                "initStyles",
-                                                                                                                                "configTitle",
-                                                                                                                                "configClose",
-                                                                                                                                "configIframe",
-                                                                                                                                "configNavigator",
-                                                                                                                                "createTitleBar",
-                                                                                                                                "createCloseButton",
-                                                                                                                                "removeTitleBar",
-                                                                                                                                "removeCloseButton",
-                                                                                                                                "hide",
-                                                                                                                                "show",
-                                                                                                                                "toDate",
-                                                                                                                                "_parseArgs",
-                                                                                                                                "browser");
-
-/**
-* The set of default Config property keys and values for the CalendarGroup
-* @property YAHOO.widget.CalendarGroup._DEFAULT_CONFIG
-* @final
-* @static
-* @private
-* @type Object
-*/
-YAHOO.widget.CalendarGroup._DEFAULT_CONFIG = YAHOO.widget.Calendar._DEFAULT_CONFIG;
-YAHOO.widget.CalendarGroup._DEFAULT_CONFIG.PAGES = {key:"pages", value:2};
-
-YAHOO.widget.CalGrp = YAHOO.widget.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, YAHOO.widget.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_CFG
-        * @protected
-        * @type Object
-        * @static
-        */
-       CN._DEFAULT_CFG = {
-               strings : {
-                       month: "Month",
-                       year: "Year",
-                       submit: "Okay",
-                       cancel: "Cancel",
-                       invalidYear : "Year needs to be a number"
-               },
-               monthFormat: YAHOO.widget.Calendar.LONG,
-               initialFocus: "year"
-       };
-
-       /**
-        * 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 IE6/IE7 Quirks
-                * @private
-                * @property __isIEQuirks
-                */
-               var ie = YAHOO.env.ua.ie;
-               this.__isIEQuirks = (ie && ((ie <= 6) || (ie === 7 && 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 and IE7 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;
-
-               // IE doesn't fire keypress for arrow/pg keys (non-char keys)
-               var ua = YAHOO.env.ua;
-               var arrowEvt = (ua.ie) ? "keydown" : "keypress";
-
-               // - IE 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) ? "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;
-
-               var arrowEvt = (YAHOO.env.ua.ie) ? "keydown" : "keypress";
-               var tabEvt = (YAHOO.env.ua.ie || YAHOO.env.ua.opera) ? "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;
-                       var nav = this;
-                       
-                       function update() {
-                               cal.setYear(nav.getYear());
-                               cal.setMonth(nav.getMonth());
-                               cal.render();
-                       }
-                       // Artificial delay, just to help the user see something changed
-                       var delay = YAHOO.widget.CalendarNavigator.UPDATE_DELAY;
-                       if (delay > 0) {
-                               window.setTimeout(update, delay);
-                       } else {
-                               update();
-                       }
-               }
-       },
-
-       /**
-        * 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;
-               var f = this.__getCfg("initialFocus");
-
-               if (f && f.toLowerCase) {
-                       f = f.toLowerCase();
-                       if (f == "year") {
-                               el = this.yearEl;
-                               try {
-                                       this.yearEl.select();
-                               } catch (e) {
-                                       // Ignore;
-                               }
-                       } else if (f == "month") {
-                               el = this.monthEl;
-                       }
-               }
-
-               if (el && YAHOO.lang.isFunction(el.focus)) {
-                       try {
-                               el.focus();
-                       } catch (e) {
-                               // 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;
-               var KEYS = YAHOO.util.KeyListener.KEY;
-               var 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(e) {
-                                       // 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;
-               var KEYS = YAHOO.util.KeyListener.KEY;
-
-               if (E.getCharCode(e) == KEYS.TAB && !e.shiftKey) {
-                       try {
-                               E.preventDefault(e);
-                               this.firstCtrl.focus();
-                       } catch (e) {
-                               // 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;
-               var KEYS = YAHOO.util.KeyListener.KEY;
-
-               if (e.shiftKey && E.getCharCode(e) == KEYS.TAB) {
-                       try {
-                               E.preventDefault(e);
-                               this.lastCtrl.focus();
-                       } catch (e) {
-                               // 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_CFG
-        * </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_CFG;
-               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.5.0", build: "895"});
diff --git a/lib/yui/colorpicker/assets/colorpicker_core.css b/lib/yui/colorpicker/assets/colorpicker_core.css
deleted file mode 100755 (executable)
index a6742cc..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
diff --git a/lib/yui/colorpicker/assets/hue_thumb.png b/lib/yui/colorpicker/assets/hue_thumb.png
deleted file mode 100755 (executable)
index 14d5db4..0000000
Binary files a/lib/yui/colorpicker/assets/hue_thumb.png and /dev/null differ
diff --git a/lib/yui/colorpicker/assets/picker_mask.png b/lib/yui/colorpicker/assets/picker_mask.png
deleted file mode 100755 (executable)
index f8d9193..0000000
Binary files a/lib/yui/colorpicker/assets/picker_mask.png and /dev/null differ
diff --git a/lib/yui/colorpicker/assets/picker_thumb.png b/lib/yui/colorpicker/assets/picker_thumb.png
deleted file mode 100755 (executable)
index 78445a2..0000000
Binary files a/lib/yui/colorpicker/assets/picker_thumb.png and /dev/null differ
diff --git a/lib/yui/connection/README b/lib/yui/connection/README
deleted file mode 100755 (executable)
index a4116f0..0000000
+++ /dev/null
@@ -1,267 +0,0 @@
-Connection Manager Release Notes
-
-*** version 2.5.0 ***
-
-* setForm() can now detects HTTPS in the URI for file upload transactions.  The
-third, boolean argument for HTTPS when using IE is no longer necessary.
-
-* [FIXED] SF1882101.  POST transactions without a message will now have a
-Content-Length value set to 0 for FF 2.x.  This is accomplished by passing a
-value of empty string instead of null to XHR's send().  All other A-Grade
-browsers remain unaffected and perform correctly.
-
-*** version 2.4.0 ***
-
-* [FIXED] SF1804153.  Transactions initialized with setForm() now properly clear
-the POST data field after each transaction.
-
-* The callback object can accept a new member, cache, defined with a boolean
-value.  If set to false (e.g., var callback = { cache:false };), a timestamp
-will be appended to the URI to override HTTP GET caching.  This timestamp value
-will appear as rnd=timestamp in the request querystring.
-
-* Custom Events startEvent, completeEvent, and abortEvent now receive
-callback.argument, if defined, in addition to the transaction ID.  Each Custom
-Event's function handler receives two arguments -- the event type as the first
-argument, and an array as the second argument.  The first element in the array
-is the transaction ID, and the second element are any arguments defined in the
-callback object.
-
-*** version 2.3.1 ***
-
-* setDefaultPostHeader() can now be overloaded with a boolean, string, or
-number.  By default, POST transactions send the following Content-Type header:
-'application/x-www-form-urlencoded; charset=UTF-8'.
-
-A custom Content-Type header can now be set by passing its value to
-setDefaultPostHeader().
-
-* HTML form submissions now send a Content-Type header of "application/x-www-
-form-urlencoded", omitting the charset=UTF-8 value.
-
-* setDefaultXhrHeader() can now be overloaded with a boolean, string, or number.
-By default, all transactions send a custom header of "X-Requested-
-With:XMLHttpRequest".
-
-This default header value can be overridden by passing the desired value as an
-argument to setDefaultPostHeader().
-
-* The file upload iframe's event listener is now explicitly removed before the
-iframe is destroyed.
-
-*** version 2.3.0 ***
-
-* Custom Events are introduced in Connection Manager.  These events -- for a
-non-file upload transaction -- are:
-
-   * startEvent
-   * completeEvent
-   * successEvent
-   * failureEvent
-   * abortEvent
-
-For transactions involving file upload with an HTML form, the events are:
-
-   * startEvent
-   * completeEvent
-   * uploadEvent
-   * abortEvent
-
-* Event utility is a now Connection Manager dependency.
-
-* abort() and isCallInProgress() are now functional for file upload
-transactions.
-
-* NOTE: The native XHR implementation in Safari 2.0.4 has been confirmed to leak
-memory.
-
-* UPDATE: The XHR implementation in Safari 3.0 beta(and WebKit builds) now
-appear to handle HTTP 204 responses correctly.  XHR in Opera, as of 9.21, still
-does not produce a valid HTTP status code with an HTTP 204 response.
-
-*** version 2.2.2 ***
-
-* No revisions.
-
-*** version 2.2.1 ***
-
-* setForm() will include the correct name-value of the HTML Submit button
-clicked where multiple HTML Submit button options are present in an HTML form.
-To enable this feature, include the Event utility source file as a dependency
-before the Connection Manager source file.
-
-* The XHR implementation in IE6 and IE7, Opera, and Safari do not properly
-handle an HTTP 204 response.  IE6/7 will instead return a Win error 1223.
-handleTransactionResponse() will treat 1223 as an HTTP 204, and route the
-response appropriately to the success callback.  createResponseObject() will
-normalize the response object's status and statusText values to 204 and "No
-Content" respectively.  However, no headers are returned.
-
-Opera and Safari provide no discernable response with HTTP 204(e.g., response
-object's properties are undefined).  This response will trigger the failure
-callback with a status of 0 and statusText of "communication failure".
-
-*** version 2.2.0 ***
-
-* initHeader() now accepts a third argument as a boolean.  When set to true,
-this specific header will automatically be sent with each transaction.
-Otherwise, the header will be set and sent for the specific transaction only.
-Example: initHeader('X-YUI-State','Beta', true); all transactions will send this
-header.
-   * resetDefaultHeaders() will clear the default headers collection.
-
-* All Connection Mananger transactions will broadcast the header: "X-Requested-
-With: XMLHttpRequest".
-   * This can be turned off: YAHOO.util.Connect.setDefaultXhrHeader(false);
-
-* The HTTP method argument in asyncRequest is now case-insensitive.
-
-* uploadFile() will now correctly handle the absence of a callback object,
-allowing the transaction to complete silently.
-
-*** version 0.12.2 ***
-
-* The Opera/Connection Manager concurrent object condition, described in version
-0.12.0, no longer tests applies for Opera, version 9.10.
-
-*** version 0.12.1 ***
-
-* connection-debug.js corrected and synchronized with connection.js.  Code
-inconsistencies between the two files existed in 0.12.0.
-
-*** version 0.12.0 ***
-
-* When uploading files via setForm() and asyncRequest includes a POST data
-argument, appendPostData() will create hidden input fields for each postData
-label/value and append each field to the form object.
-
-* setForm() returns the assembled label/value string of the parsed HTML form
-fields.
-
-* NOTE: Opera 9.02 does not allow for more than 12 concurrent Connection Manager
-objects.
-
-The following example creates 12 requests in a loop:
-for(var n=0; n<=12; i++){
-  conn[n] = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
-}
-
-If n > 13, Opera 9.02 will crash.  Connection manager objects count n must be <=
-12 at all times.  This condition was not present in Opera version 9.01.
-
-This condition does not apply to other A-Grade browsers (
-http://developer.yahoo.com/yui/articles/gbs/gbs_browser-chart.html)
-
-*** version 0.11.3 ***
-
-* YUI Event dependency for file uploading is now optional.
-
-* uploadFile() now sets unique IDs for each file upload transaction to prevent
-iframe collisions with parallel uploads.
-
-* The callback object now has property responseXML to provide support for file
-upload transactions that return an XML document.
-
-* setForm() will verify if a select option value attribute is present and use
-its value, including empty string, before using the text node value.
-
-* Modified polling mechanism in handleReadyState() and
-handleTransactionResponse() to prevent infinite polling if JavaScript errors
-occur in the user-defined callback.
-
-* createFrame() will now accept a boolean argument of true to set the frame
-source to "javascript:false" to prevent IE from throwing security warnings in an
-HTTPS environment.
-
-* setHeader() now enumerates through the _http_header object using
-hasOwnProperty() to prevent collisions with members added to Object via
-prototype.
-
-* If using setForm() and asyncRequest includes a POST data argument, the data
-will be concatenated to the HTML form POST message.
-
-*** version 0.11.2 ***
-
-* No revisions.
-
-*** version 0.11.1 ***
-
-* uploadFile() now verifies the existence of callback.upload before invoking
-callback, with or without object scope.
-
-*** version 0.11.0 ***
-
-* Each transaction can be defined with a timeout threshold, in milliseconds,
-through the callback object.  If the threshold is reached, and the transaction
-hasn't yet completed, the transaction will call abort().
-
-* abort() will now accept a callback object as the second argument.  The
-failure callback will receive a response object to indicate the transaction was
-aborted.
-
-* setForm() will now support file uploads by setting the second argument to
-true (e.g., YAHOO.util.Connect.setForm(formObject, true).  File upload does not
-use the callback success or failure handler.  Instead, it uses a new callback
-object handler: upload.
-
-* HTML form submit will no longer submit form fields without a defined name
-attribute.
-
-* The default POST header of 'Content-Type','application/x-www-form-urlencoded'
-can be overridden by calling setDefaultPostHeader(false).  This
-will remove the default header from non-HTML form, POST submissions.
-
-* setHeader() now enumerates through the _http_header object with
-propertyIsEnumerable to prevent collisions with members added to Object via
-prototype.
-
-*** version 0.10.0 ***
-
-* handleTransactionResponse() now treats the full HTTP 2xx range as a success
-case, instead of just HTTP 200.
-
-* To accommodate multiple field values in Mozilla/Firefox, multiple initHeader
-calls with the same label will now result in the values concatenated to a
-comma- delimited string value.
-Example:
-Setting Content-Type:'application/x-www-form-urlencoded' and Content-
-Type:'text/xml' will result in Content-Type:'application/x-www-form-urlencoded,
-text/xml'.
-
-* Default polling interval lowered to 50ms.
-
-* YAHOO.util.Connect.setPollingInterval() will allow you to set a polling
-interval -- in milliseconds -- to override the default value.
-
-* YAHOO.util.Connect.getResponseHeader[headerLabel] now supported as a response
-object property to provide symmetry with the native XHR object's property.
-Example:
-YAHOO.util.Connect.getResponseHeader['Content-Length'] will return the value
-for the Content-Length header, if the header is available.
-
-* YAHOO.util.Connect.allResponseHeaders property renamed to
-getAllResponseHeaders to provide symmetry with the native XHR object's
-property.
-
-* YAHOO.util.Connect.setForm() now supports HTTP GET as well as HTTP POST.
-
-* YAHOO.util.Connect.setForm() now accepts an HTML form object as well as its
-name attribute value.
-
-* YAHOO.util.Connect.setForm() will not submit HTML form fields that are
-disabled or do not have a name attribute value.
-
-* [FIXED] Response exceptions result in infinite callback loop in
-Mozilla/Firefox.
-
-* [FIXED] YAHOO.util.Connect.abort() now properly clears polling interval.
-
-* [FIXED] isCallInProgress() now verifies whether XHR instance still exists,
-and returns false if the connection object is no longer available.
-
-*** version 0.9.0 ***
-
-* Initial release
-
-
-
diff --git a/lib/yui/connection/connection-debug.js b/lib/yui/connection/connection-debug.js
deleted file mode 100755 (executable)
index 999a041..0000000
+++ /dev/null
@@ -1,1395 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * 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 Property modified by setForm() to determine if the data
-  * should be submitted as an HTML form.
-  * @property _isFormSubmit
-  * @private
-  * @static
-  * @type boolean
-  */
-    _isFormSubmit:false,
-
- /**
-  * @description Property modified by setForm() to determine if a file(s)
-  * upload is expected.
-  * @property _isFileUpload
-  * @private
-  * @static
-  * @type boolean
-  */
-    _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
-  */
-    _formNode:null,
-
- /**
-  * @description Property modified by setForm() to set the HTML form data
-  * for each transaction.
-  * @property _sFormData
-  * @private
-  * @static
-  * @type string
-  */
-    _sFormData:null,
-
- /**
-  * @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 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
-   */
-        _submitElementValue:null,
-
-  /**
-   * @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
-   */
-        _hasSubmitListener:(function()
-        {
-               if(YAHOO.util.Event){
-                       YAHOO.util.Event.addListener(
-                               document,
-                               'click',
-                               function(e){
-                                       var obj = YAHOO.util.Event.getTarget(e);
-                                       if(obj.nodeName.toLowerCase() == 'input' && (obj.type && obj.type.toLowerCase() == 'submit')){
-                                               YAHOO.util.Connect._submitElementValue = encodeURIComponent(obj.name) + "=" + encodeURIComponent(obj.value);
-                                       }
-                               });
-                       return true;
-           }
-           return false;
-        })(),
-
-  /**
-   * @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 handleTransactionResponse() determines a
-   * response in the HTTP 4xx/5xx range.
-   * @property failureEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       uploadEvent: new YAHOO.util.CustomEvent('upload'),
-
-  /**
-   * @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;
-               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 };
-                       YAHOO.log('XHR object created for transaction ' + transactionId, 'info', 'Connection');
-               }
-               catch(e)
-               {
-                       for(var 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 };
-                                       YAHOO.log('ActiveX XHR object created for transaction ' + transactionId, 'info', 'Connection');
-                                       break;
-                               }
-                               catch(e){}
-                       }
-               }
-               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(isFileUpload)
-       {
-               var o;
-               var tId = this._transaction_id;
-
-               try
-               {
-                       if(!isFileUpload){
-                               o = this.createXhrObject(tId);
-                       }
-                       else{
-                               o = {};
-                               o.tId = tId;
-                               o.isUpload = true;
-                       }
-
-                       if(o){
-                               this._transaction_id++;
-                       }
-               }
-               catch(e){}
-               finally
-               {
-                       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 = (this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();
-               var args = (callback && callback.argument)?callback.argument:null;
-
-               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();
-                       }
-
-                       o.conn.open(method, uri, true);
-
-                       // 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');
-                       }
-
-                       //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)
-       {
-               // Enumerate through callback.customevents members and bind/subscribe
-               // events that match in the _customEvents table.
-               for(var 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;
-               var 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;
-               var args = (callback && callback.argument)?callback.argument:null;
-
-               try
-               {
-                       if(o.conn.status !== undefined && o.conn.status !== 0){
-                               httpStatus = o.conn.status;
-                       }
-                       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){
-                       responseObject = 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.
-                                       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 = 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 = {};
-               var headerObj = {};
-
-               try
-               {
-                       var headerStr = o.conn.getAllResponseHeaders();
-                       var header = headerStr.split('\n');
-                       for(var i=0; i<header.length; i++){
-                               var delimitPos = header[i].indexOf(':');
-                               if(delimitPos != -1){
-                                       headerObj[header[i].substring(0,delimitPos)] = 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;
-               var COMM_ERROR = 'communication failure';
-               var ABORT_CODE = -1;
-               var ABORT_ERROR = 'transaction aborted';
-
-               var 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)
-       {
-               if(this._has_default_headers){
-                       for(var 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(var 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');
-                               }
-                       }
-                       delete this._http_headers;
-
-                       this._http_headers = {};
-                       this._has_http_headers = false;
-               }
-       },
-
-  /**
-   * @description Resets the default HTTP headers object
-   * @method resetDefaultHeaders
-   * @public
-   * @static
-   * @return {void}
-   */
-       resetDefaultHeaders:function(){
-               delete this._default_headers;
-               this._default_headers = {};
-               this._has_default_headers = 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..
-   */
-       setForm:function(formId, isUpload, secureUri)
-       {
-               // reset the HTML form data and state properties
-               this.resetFormState();
-
-               var oForm;
-               if(typeof formId == 'string'){
-                       // Determine if the argument is a form id or a form name.
-                       // Note form name usage is deprecated, but supported
-                       // here for backward compatibility.
-                       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.
-                       var io = this.createFrame((window.location.href.toLowerCase().indexOf("https") === 0 || secureUri)?true:false);
-                       // Set form reference and file upload properties to true.
-                       this._isFormSubmit = true;
-                       this._isFileUpload = true;
-                       this._formNode = oForm;
-
-                       return;
-
-               }
-
-               var oElement, oName, oValue, oDisabled;
-               var hasSubmit = false;
-
-               // Iterate over the form elements collection to construct the
-               // label-value pairs.
-               for (var i=0; i<oForm.elements.length; i++){
-                       oElement = oForm.elements[i];
-                       oDisabled = oElement.disabled;
-                       oName = oElement.name;
-                       oValue = oElement.value;
-
-                       // Do not submit fields that are disabled or
-                       // do not have a name attribute value.
-                       if(!oDisabled && oName)
-                       {
-                               switch(oElement.type)
-                               {
-                                       case 'select-one':
-                                       case 'select-multiple':
-                                               for(var j=0; j<oElement.options.length; j++){
-                                                       if(oElement.options[j].selected){
-                                                               if(window.ActiveXObject){
-                                                                       this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oElement.options[j].attributes['value'].specified?oElement.options[j].value:oElement.options[j].text) + '&';
-                                                               }
-                                                               else{
-                                                                       this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text) + '&';
-                                                               }
-                                                       }
-                                               }
-                                               break;
-                                       case 'radio':
-                                       case 'checkbox':
-                                               if(oElement.checked){
-                                                       this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(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){
-                                                               this._sFormData += this._submitElementValue + '&';
-                                                       }
-                                                       else{
-                                                               this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oValue) + '&';
-                                                       }
-
-                                                       hasSubmit = true;
-                                               }
-                                               break;
-                                       default:
-                                               this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oValue) + '&';
-                               }
-                       }
-               }
-
-               this._isFormSubmit = true;
-               this._sFormData = this._sFormData.substr(0, this._sFormData.length - 1);
-
-               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}
-   */
-       resetFormState:function(){
-               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}
-   */
-       createFrame:function(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;
-               var io;
-               if(window.ActiveXObject){
-                       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.
-   */
-       appendPostData:function(postData)
-       {
-               var formElements = [];
-               var postMessage = postData.split('&');
-               for(var i=0; i < postMessage.length; i++){
-                       var delimitPos = postMessage[i].indexOf('=');
-                       if(delimitPos != -1){
-                               formElements[i] = document.createElement('input');
-                               formElements[i].type = 'hidden';
-                               formElements[i].name = postMessage[i].substring(0,delimitPos);
-                               formElements[i].value = 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}
-   */
-       uploadFile:function(o, callback, uri, postData){
-
-               // Each iframe has an id prefix of "yuiIO" followed
-               // by the unique transaction id.
-               var oConn = this;
-               var frameId = 'yuiIO' + o.tId;
-               var uploadEncoding = 'multipart/form-data';
-               var io = document.getElementById(frameId);
-               var args = (callback && callback.argument)?callback.argument:null;
-
-               // Track original HTML form attribute values.
-               var 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(this._formNode.encoding){
-                       // 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){
-                       var 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(var i=0; i < oElements.length; i++){
-                               this._formNode.removeChild(oElements[i]);
-                       }
-               }
-
-               // Restore HTML form attributes to their original
-               // values prior to file upload.
-               for(var 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.
-               var 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);
-                       }
-
-                       var obj = {};
-                       obj.tId = o.tId;
-                       obj.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);
-                       }
-
-                       YAHOO.util.Event.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.
-               YAHOO.util.Event.addListener(io, "load", uploadCallback);
-       },
-
-  /**
-   * @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;
-               var args = (callback && callback.argument)?callback.argument:null;
-
-
-               if(o && o.conn){
-                       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 && o.isUpload === true){
-                       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)
-       {
-               // if the XHR object assigned to the transaction has not been dereferenced,
-               // then check its readyState status.  Otherwise, return false.
-               if(o && o.conn){
-                       return o.conn.readyState !== 4 && o.conn.readyState !== 0;
-               }
-               else if(o && o.isUpload === true){
-                       var frameId = 'yuiIO' + o.tId;
-                       return document.getElementById(frameId)?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", YAHOO.util.Connect, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/connection/connection-min.js b/lib/yui/connection/connection-min.js
deleted file mode 100755 (executable)
index e411a58..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-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:{},_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function(){if(YAHOO.util.Event){YAHOO.util.Event.addListener(document,"click",function(B){var A=YAHOO.util.Event.getTarget(B);if(A.nodeName.toLowerCase()=="input"&&(A.type&&A.type.toLowerCase()=="submit")){YAHOO.util.Connect._submitElementValue=encodeURIComponent(A.name)+"="+encodeURIComponent(A.value);}});return true;}return false;})(),startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),uploadEvent:new YAHOO.util.CustomEvent("upload"),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(E){var D,A;try{A=new XMLHttpRequest();D={conn:A,tId:E};}catch(C){for(var B=0;B<this._msxml_progid.length;++B){try{A=new ActiveXObject(this._msxml_progid[B]);D={conn:A,tId:E};break;}catch(C){}}}finally{return D;}},getConnectionObject:function(A){var C;var D=this._transaction_id;try{if(!A){C=this.createXhrObject(D);}else{C={};C.tId=D;C.isUpload=true;}if(C){this._transaction_id++;}}catch(B){}finally{return C;}},asyncRequest:function(F,C,E,A){var D=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();var B=(E&&E.argument)?E.argument:null;if(!D){return null;}else{if(E&&E.customevents){this.initCustomEvents(D,E);}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(D,E,C,A);return D;}if(F.toUpperCase()=="GET"){if(this._sFormData.length!==0){C+=((C.indexOf("?")==-1)?"?":"&")+this._sFormData;}}else{if(F.toUpperCase()=="POST"){A=A?this._sFormData+"&"+A:this._sFormData;}}}if(F.toUpperCase()=="GET"&&(E&&E.cache===false)){C+=((C.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString();}D.conn.open(F,C,true);if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true);}}if((F.toUpperCase()=="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header);}if(this._has_default_headers||this._has_http_headers){this.setHeader(D);}this.handleReadyState(D,E);D.conn.send(A||"");if(this._isFormSubmit===true){this.resetFormState();}this.startEvent.fire(D,B);if(D.startEvent){D.startEvent.fire(D,B);}return D;}},initCustomEvents:function(A,C){for(var 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;var 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(F,G,A){var D,C;var B=(G&&G.argument)?G.argument:null;try{if(F.conn.status!==undefined&&F.conn.status!==0){D=F.conn.status;}else{D=13030;}}catch(E){D=13030;}if(D>=200&&D<300||D===1223){C=this.createResponseObject(F,B);if(G&&G.success){if(!G.scope){G.success(C);}else{G.success.apply(G.scope,[C]);}}this.successEvent.fire(C);if(F.successEvent){F.successEvent.fire(C);}}else{switch(D){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:C=this.createExceptionObject(F.tId,B,(A?A:false));if(G&&G.failure){if(!G.scope){G.failure(C);}else{G.failure.apply(G.scope,[C]);}}break;default:C=this.createResponseObject(F,B);if(G&&G.failure){if(!G.scope){G.failure(C);}else{G.failure.apply(G.scope,[C]);}}}this.failureEvent.fire(C);if(F.failureEvent){F.failureEvent.fire(C);}}this.releaseObject(F);C=null;},createResponseObject:function(A,G){var D={};var I={};try{var C=A.conn.getAllResponseHeaders();var F=C.split("\n");for(var E=0;E<F.length;E++){var B=F[E].indexOf(":");if(B!=-1){I[F[E].substring(0,B)]=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;var G="communication failure";var C=-1;var B="transaction aborted";var 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){if(this._has_default_headers){for(var 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(var B in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,B)){A.conn.setRequestHeader(B,this._http_headers[B]);}}delete this._http_headers;this._http_headers={};this._has_http_headers=false;}},resetDefaultHeaders:function(){delete this._default_headers;this._default_headers={};this._has_default_headers=false;},setForm:function(K,E,B){this.resetFormState();var J;if(typeof K=="string"){J=(document.getElementById(K)||document.forms[K]);}else{if(typeof K=="object"){J=K;}else{return ;}}if(E){var F=this.createFrame((window.location.href.toLowerCase().indexOf("https")===0||B)?true:false);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=J;return ;}var A,I,G,L;var H=false;for(var D=0;D<J.elements.length;D++){A=J.elements[D];L=A.disabled;I=A.name;G=A.value;if(!L&&I){switch(A.type){case"select-one":case"select-multiple":for(var C=0;C<A.options.length;C++){if(A.options[C].selected){if(window.ActiveXObject){this._sFormData+=encodeURIComponent(I)+"="+encodeURIComponent(A.options[C].attributes["value"].specified?A.options[C].value:A.options[C].text)+"&";}else{this._sFormData+=encodeURIComponent(I)+"="+encodeURIComponent(A.options[C].hasAttribute("value")?A.options[C].value:A.options[C].text)+"&";}}}break;case"radio":case"checkbox":if(A.checked){this._sFormData+=encodeURIComponent(I)+"="+encodeURIComponent(G)+"&";}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(H===false){if(this._hasSubmitListener&&this._submitElementValue){this._sFormData+=this._submitElementValue+"&";}else{this._sFormData+=encodeURIComponent(I)+"="+encodeURIComponent(G)+"&";}H=true;}break;default:this._sFormData+=encodeURIComponent(I)+"="+encodeURIComponent(G)+"&";}}}this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);this.initHeader("Content-Type",this._default_form_header);return this._sFormData;},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData="";},createFrame:function(A){var B="yuiIO"+this._transaction_id;var C;if(window.ActiveXObject){C=document.createElement("<iframe id=\""+B+"\" name=\""+B+"\" />");if(typeof A=="boolean"){C.src="javascript:false";}}else{C=document.createElement("iframe");C.id=B;C.name=B;}C.style.position="absolute";C.style.top="-1000px";C.style.left="-1000px";document.body.appendChild(C);},appendPostData:function(A){var D=[];var B=A.split("&");for(var C=0;C<B.length;C++){var E=B[C].indexOf("=");if(E!=-1){D[C]=document.createElement("input");D[C].type="hidden";D[C].name=B[C].substring(0,E);D[C].value=B[C].substring(E+1);this._formNode.appendChild(D[C]);}}return D;},uploadFile:function(D,M,E,C){var N=this;var H="yuiIO"+D.tId;var I="multipart/form-data";var K=document.getElementById(H);var J=(M&&M.argument)?M.argument:null;var B={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",E);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",H);if(this._formNode.encoding){this._formNode.setAttribute("encoding",I);}else{this._formNode.setAttribute("enctype",I);}if(C){var L=this.appendPostData(C);}this._formNode.submit();this.startEvent.fire(D,J);if(D.startEvent){D.startEvent.fire(D,J);}if(M&&M.timeout){this._timeOut[D.tId]=window.setTimeout(function(){N.abort(D,M,true);},M.timeout);}if(L&&L.length>0){for(var G=0;G<L.length;G++){this._formNode.removeChild(L[G]);}}for(var A in B){if(YAHOO.lang.hasOwnProperty(B,A)){if(B[A]){this._formNode.setAttribute(A,B[A]);}else{this._formNode.removeAttribute(A);}}}this.resetFormState();var F=function(){if(M&&M.timeout){window.clearTimeout(N._timeOut[D.tId]);delete N._timeOut[D.tId];}N.completeEvent.fire(D,J);if(D.completeEvent){D.completeEvent.fire(D,J);}var P={};P.tId=D.tId;P.argument=M.argument;try{P.responseText=K.contentWindow.document.body?K.contentWindow.document.body.innerHTML:K.contentWindow.document.documentElement.textContent;P.responseXML=K.contentWindow.document.XMLDocument?K.contentWindow.document.XMLDocument:K.contentWindow.document;}catch(O){}if(M&&M.upload){if(!M.scope){M.upload(P);}else{M.upload.apply(M.scope,[P]);}}N.uploadEvent.fire(P);if(D.uploadEvent){D.uploadEvent.fire(P);}YAHOO.util.Event.removeListener(K,"load",F);setTimeout(function(){document.body.removeChild(K);N.releaseObject(D);},100);};YAHOO.util.Event.addListener(K,"load",F);},abort:function(E,G,A){var D;var B=(G&&G.argument)?G.argument:null;if(E&&E.conn){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&&E.isUpload===true){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(B){if(B&&B.conn){return B.conn.readyState!==4&&B.conn.readyState!==0;}else{if(B&&B.isUpload===true){var A="yuiIO"+B.tId;return document.getElementById(A)?true:false;}else{return false;}}},releaseObject:function(A){if(A&&A.conn){A.conn=null;A=null;}}};YAHOO.register("connection",YAHOO.util.Connect,{version:"2.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/connection/connection.js b/lib/yui/connection/connection.js
deleted file mode 100755 (executable)
index 7506f37..0000000
+++ /dev/null
@@ -1,1365 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * 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 Property modified by setForm() to determine if the data
-  * should be submitted as an HTML form.
-  * @property _isFormSubmit
-  * @private
-  * @static
-  * @type boolean
-  */
-    _isFormSubmit:false,
-
- /**
-  * @description Property modified by setForm() to determine if a file(s)
-  * upload is expected.
-  * @property _isFileUpload
-  * @private
-  * @static
-  * @type boolean
-  */
-    _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
-  */
-    _formNode:null,
-
- /**
-  * @description Property modified by setForm() to set the HTML form data
-  * for each transaction.
-  * @property _sFormData
-  * @private
-  * @static
-  * @type string
-  */
-    _sFormData:null,
-
- /**
-  * @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 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
-   */
-        _submitElementValue:null,
-
-  /**
-   * @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
-   */
-        _hasSubmitListener:(function()
-        {
-               if(YAHOO.util.Event){
-                       YAHOO.util.Event.addListener(
-                               document,
-                               'click',
-                               function(e){
-                                       var obj = YAHOO.util.Event.getTarget(e);
-                                       if(obj.nodeName.toLowerCase() == 'input' && (obj.type && obj.type.toLowerCase() == 'submit')){
-                                               YAHOO.util.Connect._submitElementValue = encodeURIComponent(obj.name) + "=" + encodeURIComponent(obj.value);
-                                       }
-                               });
-                       return true;
-           }
-           return false;
-        })(),
-
-  /**
-   * @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 handleTransactionResponse() determines a
-   * response in the HTTP 4xx/5xx range.
-   * @property failureEvent
-   * @private
-   * @static
-   * @type CustomEvent
-   */
-       uploadEvent: new YAHOO.util.CustomEvent('upload'),
-
-  /**
-   * @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;
-               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 };
-               }
-               catch(e)
-               {
-                       for(var 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 };
-                                       break;
-                               }
-                               catch(e){}
-                       }
-               }
-               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(isFileUpload)
-       {
-               var o;
-               var tId = this._transaction_id;
-
-               try
-               {
-                       if(!isFileUpload){
-                               o = this.createXhrObject(tId);
-                       }
-                       else{
-                               o = {};
-                               o.tId = tId;
-                               o.isUpload = true;
-                       }
-
-                       if(o){
-                               this._transaction_id++;
-                       }
-               }
-               catch(e){}
-               finally
-               {
-                       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 = (this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();
-               var args = (callback && callback.argument)?callback.argument:null;
-
-               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();
-                       }
-
-                       o.conn.open(method, uri, true);
-
-                       // 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);
-                       }
-
-                       //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)
-       {
-               // Enumerate through callback.customevents members and bind/subscribe
-               // events that match in the _customEvents table.
-               for(var 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;
-               var 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;
-               var args = (callback && callback.argument)?callback.argument:null;
-
-               try
-               {
-                       if(o.conn.status !== undefined && o.conn.status !== 0){
-                               httpStatus = o.conn.status;
-                       }
-                       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){
-                       responseObject = 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.
-                                       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 = 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 = {};
-               var headerObj = {};
-
-               try
-               {
-                       var headerStr = o.conn.getAllResponseHeaders();
-                       var header = headerStr.split('\n');
-                       for(var i=0; i<header.length; i++){
-                               var delimitPos = header[i].indexOf(':');
-                               if(delimitPos != -1){
-                                       headerObj[header[i].substring(0,delimitPos)] = 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;
-               var COMM_ERROR = 'communication failure';
-               var ABORT_CODE = -1;
-               var ABORT_ERROR = 'transaction aborted';
-
-               var 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)
-       {
-               if(this._has_default_headers){
-                       for(var 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(var prop in this._http_headers){
-                               if(YAHOO.lang.hasOwnProperty(this._http_headers, prop)){
-                                       o.conn.setRequestHeader(prop, this._http_headers[prop]);
-                               }
-                       }
-                       delete this._http_headers;
-
-                       this._http_headers = {};
-                       this._has_http_headers = false;
-               }
-       },
-
-  /**
-   * @description Resets the default HTTP headers object
-   * @method resetDefaultHeaders
-   * @public
-   * @static
-   * @return {void}
-   */
-       resetDefaultHeaders:function(){
-               delete this._default_headers;
-               this._default_headers = {};
-               this._has_default_headers = 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..
-   */
-       setForm:function(formId, isUpload, secureUri)
-       {
-               // reset the HTML form data and state properties
-               this.resetFormState();
-
-               var oForm;
-               if(typeof formId == 'string'){
-                       // Determine if the argument is a form id or a form name.
-                       // Note form name usage is deprecated, but supported
-                       // here for backward compatibility.
-                       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.
-                       var io = this.createFrame((window.location.href.toLowerCase().indexOf("https") === 0 || secureUri)?true:false);
-                       // Set form reference and file upload properties to true.
-                       this._isFormSubmit = true;
-                       this._isFileUpload = true;
-                       this._formNode = oForm;
-
-                       return;
-
-               }
-
-               var oElement, oName, oValue, oDisabled;
-               var hasSubmit = false;
-
-               // Iterate over the form elements collection to construct the
-               // label-value pairs.
-               for (var i=0; i<oForm.elements.length; i++){
-                       oElement = oForm.elements[i];
-                       oDisabled = oElement.disabled;
-                       oName = oElement.name;
-                       oValue = oElement.value;
-
-                       // Do not submit fields that are disabled or
-                       // do not have a name attribute value.
-                       if(!oDisabled && oName)
-                       {
-                               switch(oElement.type)
-                               {
-                                       case 'select-one':
-                                       case 'select-multiple':
-                                               for(var j=0; j<oElement.options.length; j++){
-                                                       if(oElement.options[j].selected){
-                                                               if(window.ActiveXObject){
-                                                                       this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oElement.options[j].attributes['value'].specified?oElement.options[j].value:oElement.options[j].text) + '&';
-                                                               }
-                                                               else{
-                                                                       this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oElement.options[j].hasAttribute('value')?oElement.options[j].value:oElement.options[j].text) + '&';
-                                                               }
-                                                       }
-                                               }
-                                               break;
-                                       case 'radio':
-                                       case 'checkbox':
-                                               if(oElement.checked){
-                                                       this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(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){
-                                                               this._sFormData += this._submitElementValue + '&';
-                                                       }
-                                                       else{
-                                                               this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oValue) + '&';
-                                                       }
-
-                                                       hasSubmit = true;
-                                               }
-                                               break;
-                                       default:
-                                               this._sFormData += encodeURIComponent(oName) + '=' + encodeURIComponent(oValue) + '&';
-                               }
-                       }
-               }
-
-               this._isFormSubmit = true;
-               this._sFormData = this._sFormData.substr(0, this._sFormData.length - 1);
-
-
-               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}
-   */
-       resetFormState:function(){
-               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}
-   */
-       createFrame:function(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;
-               var io;
-               if(window.ActiveXObject){
-                       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.
-   */
-       appendPostData:function(postData)
-       {
-               var formElements = [];
-               var postMessage = postData.split('&');
-               for(var i=0; i < postMessage.length; i++){
-                       var delimitPos = postMessage[i].indexOf('=');
-                       if(delimitPos != -1){
-                               formElements[i] = document.createElement('input');
-                               formElements[i].type = 'hidden';
-                               formElements[i].name = postMessage[i].substring(0,delimitPos);
-                               formElements[i].value = 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}
-   */
-       uploadFile:function(o, callback, uri, postData){
-
-               // Each iframe has an id prefix of "yuiIO" followed
-               // by the unique transaction id.
-               var oConn = this;
-               var frameId = 'yuiIO' + o.tId;
-               var uploadEncoding = 'multipart/form-data';
-               var io = document.getElementById(frameId);
-               var args = (callback && callback.argument)?callback.argument:null;
-
-               // Track original HTML form attribute values.
-               var 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(this._formNode.encoding){
-                       // 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){
-                       var 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(var i=0; i < oElements.length; i++){
-                               this._formNode.removeChild(oElements[i]);
-                       }
-               }
-
-               // Restore HTML form attributes to their original
-               // values prior to file upload.
-               for(var 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.
-               var 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);
-                       }
-
-                       var obj = {};
-                       obj.tId = o.tId;
-                       obj.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);
-                       }
-
-                       YAHOO.util.Event.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.
-               YAHOO.util.Event.addListener(io, "load", uploadCallback);
-       },
-
-  /**
-   * @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;
-               var args = (callback && callback.argument)?callback.argument:null;
-
-
-               if(o && o.conn){
-                       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 && o.isUpload === true){
-                       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)
-       {
-               // if the XHR object assigned to the transaction has not been dereferenced,
-               // then check its readyState status.  Otherwise, return false.
-               if(o && o.conn){
-                       return o.conn.readyState !== 4 && o.conn.readyState !== 0;
-               }
-               else if(o && o.isUpload === true){
-                       var frameId = 'yuiIO' + o.tId;
-                       return document.getElementById(frameId)?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", YAHOO.util.Connect, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/container/assets/alrt16_1.gif b/lib/yui/container/assets/alrt16_1.gif
deleted file mode 100755 (executable)
index 443d39b..0000000
Binary files a/lib/yui/container/assets/alrt16_1.gif and /dev/null differ
diff --git a/lib/yui/container/assets/blck16_1.gif b/lib/yui/container/assets/blck16_1.gif
deleted file mode 100755 (executable)
index 5668961..0000000
Binary files a/lib/yui/container/assets/blck16_1.gif and /dev/null differ
diff --git a/lib/yui/container/assets/close12_1.gif b/lib/yui/container/assets/close12_1.gif
deleted file mode 100755 (executable)
index e2f67d7..0000000
Binary files a/lib/yui/container/assets/close12_1.gif and /dev/null differ
diff --git a/lib/yui/container/assets/container-core.css b/lib/yui/container/assets/container-core.css
deleted file mode 100755 (executable)
index de70bdd..0000000
+++ /dev/null
@@ -1,160 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.yui-overlay,
-.yui-panel-container {
-    visibility: hidden;
-    position: absolute;
-    z-index: 2;
-}
-
-.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 {
-    /*
-        Application of "overflow:auto" prevents Mac scrollbars from bleeding
-        through the modality mask in Gecko. The block-scollbars class is only 
-        added for Gecko on MacOS
-    */
-    overflow: auto;
-}
-
-/* 
-    PLEASE NOTE:
-
-    1) ".masked select" is used to prevent <SELECT> elements bleeding through 
-       the modality mask in IE 6. 
-
-    2) ".drag select" is used to hide <SELECT> elements when dragging a 
-       Panel in IE 6.  This is necessary to prevent some redraw problems with 
-       the <SELECT> elements when a Panel instance is dragged.
-    
-    3) ".hide-select select" is appended to an Overlay instance's root HTML 
-       element when it is being annimated by YAHOO.widget.ContainerEffect.  
-       This is necessary because <SELECT> elements don't inherit their parent
-       element's opacity in IE 6.
-
-*/
-
-.masked select,
-.drag select,
-.hide-select select {
-    _visibility: hidden;
-}
-
-.yui-panel-container select {
-    _visibility: inherit;
-}
-
-/*
-
-There are two known issues with YAHOO.widget.Overlay (and its subclasses) that 
-manifest in Gecko-based browsers on Mac OS X:
-
-    1) Elements with scrollbars will poke through Overlay instances floating 
-       above them.
-    
-    2) An Overlay's scrollbars and the scrollbars of its child nodes remain  
-       visible when the Overlay is hidden.
-
-To fix these bugs:
-
-    1) The "overflow" property of an Overlay instance's root element and child 
-       nodes is toggled between "hidden" and "auto" (through the application  
-       and removal of the "hide-scrollbars" and "show-scrollbars" CSS classes)
-       as its "visibility" configuration property is toggled between 
-       "false" and "true."
-    
-    2) The "display" property of <SELECT> elements that are child nodes of the 
-       Overlay instance's root element is set to "none" when it is hidden.
-
-PLEASE NOTE:  
-  
-    1) The "hide-scrollbars" and "show-scrollbars" CSS classes classes are 
-       applied only for Gecko on Mac OS X and are added/removed to/from the 
-       Overlay's root HTML element (DIV) via the "hideMacGeckoScrollbars" and 
-       "showMacGeckoScrollbars" methods of YAHOO.widget.Overlay.
-    
-    2) There may be instances where the CSS for a web page or application 
-       contains style rules whose specificity override the rules implemented by 
-       the Container CSS files to fix this bug.  In such cases, is necessary to 
-       leverage the provided "hide-scrollbars" and "show-scrollbars" classes to 
-       write custom style rules to guard against this bug.
-
-** For more information on this issue, see:
-
-   + https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-   + SourceForge bug #1723530
-
-*/
-
-.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;
-
-}
-
-/* 
-   Workaround for Safari 2.x - the yui-force-redraw class is applied, and then removed when
-   the Panel's content changes, to force Safari 2.x to redraw the underlay.
-   We attempt to choose a CSS property which has no visual impact when added,
-   removed.
-*/
-.yui-panel-container.shadow .underlay.yui-force-redraw {
-    padding-bottom: 1px;
-}
-
-.yui-effect-fade .underlay {
-    display:none;
-}
-
-/*
-    PLEASE NOTE: The <DIV> element used for a Tooltip's shadow is appended 
-    to its root element via JavaScript once it has been rendered.  The 
-    code that creates the shadow lives in the Tooltip's public "onRender" 
-    event handler that is a prototype method of YAHOO.widget.Tooltip.  
-    Implementers wishing to remove a Tooltip's shadow or add any other markup
-    required for a given skin for Tooltip should override the "onRender" method.
-*/
-
-.yui-tt-shadow {
-
-    position: absolute;
-
-}
\ No newline at end of file
diff --git a/lib/yui/container/assets/container.css b/lib/yui/container/assets/container.css
deleted file mode 100755 (executable)
index b38b685..0000000
+++ /dev/null
@@ -1,318 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.yui-overlay,
-.yui-panel-container {
-    visibility:hidden;
-    position:absolute;
-    z-index: 2;
-}
-
-.yui-tt {
-    visibility:hidden;
-    position:absolute;
-    color:#333;
-    background-color:#FDFFB4;
-    font-family:arial,helvetica,verdana,sans-serif;
-    padding:2px;
-    border:1px solid #FCC90D;
-    font:100% sans-serif;
-    width:auto;
-}
-
-/*
-    PLEASE NOTE: The <DIV> element used for a Tooltip's shadow is appended 
-    to its root element via JavaScript once it has been rendered.  The 
-    code that creates the shadow lives in the Tooltip's public "onRender" 
-    event handler that is a prototype method of YAHOO.widget.Tooltip.  
-    Implementers wishing to remove a Tooltip's shadow or add any other markup
-    required for a given skin for Tooltip should override the "onRender" method.
-*/
-
-.yui-tt-shadow {
-    display: none;
-}
-
-* html body.masked select {
-    visibility:hidden;
-}
-
-* html div.yui-panel-container select {
-    visibility:inherit;
-}
-
-* html div.drag select {
-    visibility:hidden;
-}
-
-* html div.hide-select select {
-    visibility:hidden;
-}
-
-.mask {
-    z-index: 1; 
-    display:none;
-    position:absolute;
-    top:0;
-    left:0;
-    -moz-opacity: 0.5;
-    opacity:.50;
-    filter: alpha(opacity=50);
-    background-color:#CCC;
-}
-
-/*
-
-There are two known issues with YAHOO.widget.Overlay (and its subclasses) that 
-manifest in Gecko-based browsers on Mac OS X:
-
-    1) Elements with scrollbars will poke through Overlay instances floating 
-       above them.
-    
-    2) An Overlay's scrollbars and the scrollbars of its child nodes remain  
-       visible when the Overlay is hidden.
-
-To fix these bugs:
-
-    1) The "overflow" property of an Overlay instance's root element and child 
-       nodes is toggled between "hidden" and "auto" (through the application  
-       and removal of the "hide-scrollbars" and "show-scrollbars" CSS classes)
-       as its "visibility" configuration property is toggled between 
-       "false" and "true."
-    
-    2) The "display" property of <SELECT> elements that are child nodes of the 
-       Overlay instance's root element is set to "none" when it is hidden.
-
-PLEASE NOTE:  
-  
-    1) The "hide-scrollbars" and "show-scrollbars" CSS classes classes are 
-       applied only for Gecko on Mac OS X and are added/removed to/from the 
-       Overlay's root HTML element (DIV) via the "hideMacGeckoScrollbars" and 
-       "showMacGeckoScrollbars" methods of YAHOO.widget.Overlay.
-    
-    2) There may be instances where the CSS for a web page or application 
-       contains style rules whose specificity override the rules implemented by 
-       the Container CSS files to fix this bug.  In such cases, is necessary to 
-       leverage the provided "hide-scrollbars" and "show-scrollbars" classes to 
-       write custom style rules to guard against this bug.
-
-** For more information on this issue, see:
-
-   + https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-   + SourceForge bug #1723530
-
-*/
-
-.hide-scrollbars,
-.hide-scrollbars * {
-
-    overflow: hidden;
-
-}
-
-.hide-scrollbars select {
-
-    display: none;
-
-}
-
-.show-scrollbars {
-
-    overflow: auto;
-
-}
-
-.yui-panel-container.show-scrollbars {
-
-    overflow: visible;
-
-}
-
-.yui-panel-container.show-scrollbars .underlay {
-
-    overflow: auto;
-
-}
-
-.yui-panel-container.focused {
-
-}
-
-
-/* Panel underlay styles */
-
-.yui-panel-container .underlay {
-
-    position: absolute;
-    top: 0;
-    right: 0;
-    bottom: 0;
-    left: 0;
-
-}
-
-.yui-panel-container.matte {
-
-    padding: 3px;
-    background-color: #fff;
-
-}
-
-.yui-panel-container.shadow .underlay {
-
-    top: 3px;
-    bottom: -3px;
-    right: -3px;
-    left: 3px;
-    background-color: #000;
-    opacity: .12;
-    filter: alpha(opacity=12);  /* For IE */
-
-}
-
-/* 
-   Workaround for Safari 2.x - the yui-force-redraw class is applied, and then removed when
-   the Panel's content changes, to force Safari 2.x to redraw the underlay.
-   We attempt to choose a CSS property which has no visual impact when added,
-   removed, but still causes Safari to redraw
-*/
-.yui-panel-container.shadow .underlay.yui-force-redraw {
-    padding-bottom: 1px;
-}
-
-.yui-effect-fade .underlay {
-    display:none;
-}
-
-.yui-panel {
-    visibility:hidden;
-    border-collapse:separate;
-    position:relative;
-    left:0;
-    top:0;
-    font:1em Arial;
-    background-color:#FFF;
-    border:1px solid #000;
-    z-index:1;
-    overflow:hidden;
-}
-
-.yui-panel .hd {
-    background-color:#3d77cb;
-    color:#FFF;
-    font-size:100%;
-    line-height:100%;
-    border:1px solid #FFF;
-    border-bottom:1px solid #000;
-    font-weight:bold;
-    padding:4px;
-    white-space:nowrap;
-}
-
-.yui-panel .bd {
-    overflow:hidden;
-    padding:4px;
-}
-
-.yui-panel .bd p {
-    margin:0 0 1em;
-}
-
-.yui-panel .container-close {
-    position:absolute;
-    top:5px;
-    right:4px;
-    z-index:6;
-    height:12px;
-    width:12px;
-    margin:0px;
-    padding:0px;
-    background:url(close12_1.gif) no-repeat;
-    cursor:pointer;
-    visibility:inherit;
-}
-
-.yui-panel .ft {
-    padding:4px;
-    overflow:hidden;
-}
-
-.yui-simple-dialog .bd .yui-icon {
-    background-repeat:no-repeat;
-    width:16px;
-    height:16px;
-    margin-right:10px;
-    float:left;
-}
-
-.yui-simple-dialog .bd span.blckicon {
-    background: url("blck16_1.gif") no-repeat;
-}
-
-.yui-simple-dialog .bd span.alrticon {
-    background: url("alrt16_1.gif") no-repeat;
-}
-
-.yui-simple-dialog .bd span.hlpicon {
-    background: url("hlp16_1.gif") no-repeat;
-}
-
-.yui-simple-dialog .bd span.infoicon {
-    background: url("info16_1.gif") no-repeat;
-}
-
-.yui-simple-dialog .bd span.warnicon {
-    background: url("warn16_1.gif") no-repeat;
-}
-
-.yui-simple-dialog .bd span.tipicon {
-    background: url("tip16_1.gif") no-repeat;
-}
-
-.yui-dialog .ft, 
-.yui-simple-dialog .ft {
-    padding-bottom:5px;
-    padding-right:5px;
-    text-align:right;
-}
-
-.yui-dialog form, 
-.yui-simple-dialog form {
-    margin:0;
-}
-
-.button-group button {
-    font:100 76% verdana;
-    text-decoration:none;
-    background-color: #E4E4E4;
-    color: #333;
-    cursor: hand;
-    vertical-align: middle;
-    border: 2px solid #797979;
-    border-top-color:#FFF;
-    border-left-color:#FFF;
-    margin:2px;
-    padding:2px;
-}
-
-.button-group button.default {
-    font-weight:bold;
-}
-
-.button-group button:hover, 
-.button-group button.hover {
-    border:2px solid #90A029;
-    background-color:#EBF09E;
-    border-top-color:#FFF;
-    border-left-color:#FFF;
-}
-
-.button-group button:active {
-    border:2px solid #E4E4E4;
-    background-color:#BBB;
-    border-top-color:#333;
-    border-left-color:#333;
-}
\ No newline at end of file
diff --git a/lib/yui/container/assets/hlp16_1.gif b/lib/yui/container/assets/hlp16_1.gif
deleted file mode 100755 (executable)
index 4645c8f..0000000
Binary files a/lib/yui/container/assets/hlp16_1.gif and /dev/null differ
diff --git a/lib/yui/container/assets/info16_1.gif b/lib/yui/container/assets/info16_1.gif
deleted file mode 100755 (executable)
index 22f697a..0000000
Binary files a/lib/yui/container/assets/info16_1.gif and /dev/null differ
diff --git a/lib/yui/container/assets/skins/sam/container-skin.css b/lib/yui/container/assets/skins/sam/container-skin.css
deleted file mode 100755 (executable)
index dfca1db..0000000
+++ /dev/null
@@ -1,297 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/* Panel modality mask styles */
-
-.yui-skin-sam .mask {
-
-    background-color: #000;
-    opacity: .25;
-    *filter: alpha(opacity=25);  /* Set opacity in IE */
-
-}
-
-
-/* Panel styles */
-
-.yui-skin-sam .yui-panel-container {
-
-    padding: 0 1px;
-    *padding: 2px 3px;
-
-}
-
-.yui-skin-sam .yui-panel {
-
-       position: relative;
-       *zoom: 1;
-       left: 0;
-       top: 0;
-    border-style: solid;
-    border-width: 1px 0;
-    border-color: #808080;
-       z-index: 1;
-
-}
-
-.yui-skin-sam .yui-panel .hd, 
-.yui-skin-sam .yui-panel .bd, 
-.yui-skin-sam .yui-panel .ft {
-
-    /*
-        Use of "zoom: 1" is to trigger "haslayout" for IE to get 
-        negative margins working.
-    */
-    
-    *zoom: 1;
-
-    /*
-        Use of "position: relative" is necessary to get negative margins 
-        working in IE.
-    */
-
-    *position: relative; 
-
-    border-style: solid;
-    border-width: 0 1px;
-    border-color: #808080;
-    margin: 0 -1px;
-  
-}
-
-.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%;  /* 12px */
-    line-height: 2;  /* ~24px */
-    *line-height: 1.9; /* For IE */
-    font-weight: bold;
-    color: #000;
-    background: url(../../../../assets/skins/sam/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 .yui-panel-container.focused .yui-panel .hd {
-
-}
-
-.yui-skin-sam .container-close {
-
-    position: absolute;
-    top: 5px;
-    right: 6px;
-    width: 25px;
-    height: 15px;
-    background: url(../../../../assets/skins/sam/sprite.png) no-repeat 0 -300px;
-    cursor:pointer;
-
-}
-
-
-/* Panel underlay styles */
-
-.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 {
-
-    /* IE 7 Quirks Mode and IE 6 Standards Mode and Quirks mode */
-    _padding: 2px 5px 0 3px; 
-
-}
-
-.yui-skin-sam .yui-panel-container.shadow .underlay {
-
-       position: absolute;
-
-    top: 2px;
-    right: -3px;
-    bottom: -3px;
-    left: -3px;
-
-    /* IE 7 Standards Mode */
-
-    *top: 3px;
-    *left: -1px;
-    *right: -1px;
-    *bottom: -1px;
-
-    /* IE 7 Quirks Mode and IE 6 Standards Mode and Quirks mode */
-
-    _top: 0;
-    _right: 0;
-    _bottom: 0;
-    _left: 0;
-    _margin-top: 3px;
-    _margin-left: -1px;
-
-    background-color: #000;
-    opacity: .12;
-    *filter: alpha(opacity=12);  /* Set opacity in IE */
-
-}
-
-
-/* Dialog styles */
-
-.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;
-
-}
-
-/* Dialog default button style */
-.yui-skin-sam .yui-dialog .ft button.default {
-    font-weight:bold;
-}
-
-/* Dialog default YUI Button style */
-.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;
-}
-
-/* SimpleDialog icon styles */
-
-.yui-skin-sam .yui-simple-dialog .bd .yui-icon {
-
-    background: url(../../../../assets/skins/sam/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;
-
-}
-
-
-/* Tooltip styles */
-
-.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);  /* For IE */
-
-}
\ No newline at end of file
diff --git a/lib/yui/container/assets/skins/sam/container.css b/lib/yui/container/assets/skins/sam/container.css
deleted file mode 100755 (executable)
index 0a1ae66..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.yui-overlay,.yui-panel-container{visibility:hidden;position:absolute;z-index:2;}.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{display:none;}.yui-tt-shadow{position:absolute;}.yui-skin-sam .mask{background-color:#000;opacity:.25;*filter:alpha(opacity=25);}.yui-skin-sam .yui-panel-container{padding:0 1px;*padding:2px 3px;}.yui-skin-sam .yui-panel{position:relative;*zoom:1;left:0;top:0;border-style:solid;border-width:1px 0;border-color:#808080;z-index:1;}.yui-skin-sam .yui-panel .hd,.yui-skin-sam .yui-panel .bd,.yui-skin-sam .yui-panel .ft{*zoom:1;*position:relative;border-style:solid;border-width:0 1px;border-color:#808080;margin:0 -1px;}.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(../../../../assets/skins/sam/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 .yui-panel-container.focused .yui-panel .hd{}.yui-skin-sam .container-close{position:absolute;top:5px;right:6px;width:25px;height:15px;background:url(../../../../assets/skins/sam/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 5px 0 3px;}.yui-skin-sam .yui-panel-container.shadow .underlay{position:absolute;top:2px;right:-3px;bottom:-3px;left:-3px;*top:3px;*left:-1px;*right:-1px;*bottom:-1px;_top:0;_right:0;_bottom:0;_left: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-simple-dialog .bd .yui-icon{background:url(../../../../assets/skins/sam/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/lib/yui/container/assets/tip16_1.gif b/lib/yui/container/assets/tip16_1.gif
deleted file mode 100755 (executable)
index 8f0be2b..0000000
Binary files a/lib/yui/container/assets/tip16_1.gif and /dev/null differ
diff --git a/lib/yui/container/assets/warn16_1.gif b/lib/yui/container/assets/warn16_1.gif
deleted file mode 100755 (executable)
index d679df5..0000000
Binary files a/lib/yui/container/assets/warn16_1.gif and /dev/null differ
diff --git a/lib/yui/dom/README b/lib/yui/dom/README
deleted file mode 100755 (executable)
index 7363a1a..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-Dom Release Notes
-
-** Known Issues **
-* margin/padding/borders on HTML element cause getXY to misreport
-* margin/borders on BODY element may cause getXY to misreport
-* Fixed postioning causes getXY to misreport in some cases
-
-----------------------------
-
-*** version 2.5.0 ***
-* get() now correctly handles textNodes
-
-*** version 2.4.0 ***
-* no longer accounting for safari body margin when offsetParent == body
-* isAncestor and inDocument no longer use batch
-* added getClientRegion()
-
-*** version 2.3.1 ***
-* allow batch() to work on array-like object
-* return null from Dom.get(undefined)
-
-*** version 2.3.0 ***
-* added getAncestorBy methods
-* added getChildren methods
-* added getSibling methods
-* trimming added for class mgmt methods
-* fixed getXY inside table for Opera 
-
-*** version 2.3.0 ***
-* added getAncestorBy methods
-* added getChildren methods
-* added getSibling methods
-* trimming added for class mgmt methods
-* fixed getXY inside table for Opera 
-
-*** version 2.2.2 ***
-
-* fixed getXY scroll regression
-
-*** version 2.2.1 ***
-* fixed toCamel propertyCache used by set/getStyle
-* added set/getStyle support for float property
-* optimized get() for common use case
-* fixed getXY for safari when el has absolute ancestors
-* using className property instead of string literal for class mgmt methods
-* added getXY/getRegion support for body element
-
-*** version 2.2.0 ***
-* no change
-
-
-*** version 0.12.2 ***
-* no change
-
-*** version 0.12.1 ***
-
-* getElementsByClassName no longer reverts to document when "root" not found
-* setXY no longer makes a second call to getXY unless noRetry is false
-* minified version no longer strips line breaks
-
-*** version 0.12.0 ***
-
-* fixed getXY for IE null parent
-* branching set/getStyle at load time instead of run time 
-
-*** version 0.11.3 ***
-
-* fixed getX and getY returning incorrect values for collections 
-* fixed getXY incorrectly calculated for Opera inline elements
-* fixed isAncestor failure in safari when 2nd arg is document.documentElement
-* fixed infinite loop in replaceClass when oldClassName == newClassName 
-* getDocumentWidth no longer includes scrollbars 
-
-
-*** version 0.11.2 ***
-* limit depth of parent.document crawl to 1 for getXY
-* test offsetParent instead of parentNode for getXY
-* return null if no el fo r get
-* just addClass if no class to replace for replaceClass
-
-
-*** version 0.11.1 ***
-
-* return null if el is null for get()
-* test offsetParent rather than parentNode for getXY()
-* limit depth of parent.document crawl for IE getXY() to 1
-* if no oldClassName to replace, just addClass for replaceClass()
-
-
-*** version 0.11.0 ***
-* Work around Opera 9 broken currentStyle
-* Removed timeout wrapper from setXY retry
-* Tagname tests now case-insensitive
-* Internal "this" references changed to allow for method shorthand
-* get/setStyle now accept both camel and hyphen case
-* Gecko reverted to crawling offsets for getXY
-
-*** version 0.10.0 ***
-
-* Safari now fails gracefully when querying computedStyle of an unavailable element 
-
-* Class management functions added (hasClass, addClass, removeClass, replaceClass, getElementsByClassName) 
-
-* All methods that accept HTMLElements or IDs now also accept arrays of HTMLElements and/or IDs
-
-* GenerateId method added
-
-* isAncestor method added
-
-* inDocument method added
-
-* getElementsBy method added
-
-* batch method added
-
-* getClientHeight/Width deprecated in favor of getViewportHeight/Width
-
-* getDocumentHeight/Width methods added 
-
-*** version 0.9.0 ***
-
-* Initial release
-
diff --git a/lib/yui/dom/dom-debug.js b/lib/yui/dom/dom-debug.js
deleted file mode 100755 (executable)
index 40b622a..0000000
+++ /dev/null
@@ -1,1261 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * The dom module provides helper methods for manipulating Dom elements.
- * @module dom
- *
- */
-
-(function() {
-    var Y = YAHOO.util,     // internal shorthand
-        getStyle,           // for load time browser branching
-        setStyle,           // ditto
-        propertyCache = {}, // for faster hyphen converts
-        reClassNameCache = {},          // cache regexes for className
-        document = window.document;     // cache for faster lookups
-    
-    YAHOO.env._id_counter = YAHOO.env._id_counter || 0;     // for use with generateId (global to save state if Dom is overwritten)
-
-    // brower detection
-    var isOpera = YAHOO.env.ua.opera,
-        isSafari = YAHOO.env.ua.webkit, 
-        isGecko = YAHOO.env.ua.gecko,
-        isIE = YAHOO.env.ua.ie; 
-    
-    // regex cache
-    var patterns = {
-        HYPHEN: /(-[a-z])/i, // to normalize get/setStyle
-        ROOT_TAG: /^body|html$/i // body for quirks mode, html for standards
-    };
-
-    var toCamel = function(property) {
-        if ( !patterns.HYPHEN.test(property) ) {
-            return property; // no hyphens
-        }
-        
-        if (propertyCache[property]) { // already converted
-            return propertyCache[property];
-        }
-       
-        var converted = property;
-        while( patterns.HYPHEN.exec(converted) ) {
-            converted = converted.replace(RegExp.$1,
-                    RegExp.$1.substr(1).toUpperCase());
-        }
-        
-        propertyCache[property] = converted;
-        return converted;
-        //return property.replace(/-([a-z])/gi, function(m0, m1) {return m1.toUpperCase()}) // cant use function as 2nd arg yet due to safari bug
-    };
-    
-    var getClassRegEx = function(className) {
-        var re = reClassNameCache[className];
-        if (!re) {
-            re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)');
-            reClassNameCache[className] = re;
-        }
-        return re;
-    };
-
-    // branching at load instead of runtime
-    if (document.defaultView && document.defaultView.getComputedStyle) { // W3C DOM method
-        getStyle = function(el, property) {
-            var value = null;
-            
-            if (property == 'float') { // fix reserved word
-                property = 'cssFloat';
-            }
-
-            var computed = document.defaultView.getComputedStyle(el, '');
-            if (computed) { // test computed before touching for safari
-                value = computed[toCamel(property)];
-            }
-            
-            return el.style[property] || value;
-        };
-    } else if (document.documentElement.currentStyle && isIE) { // IE method
-        getStyle = function(el, property) {                         
-            switch( toCamel(property) ) {
-                case 'opacity' :// IE opacity uses filter
-                    var val = 100;
-                    try { // will error if no DXImageTransform
-                        val = el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
-
-                    } catch(e) {
-                        try { // make sure its in the document
-                            val = el.filters('alpha').opacity;
-                        } catch(e) {
-                            YAHOO.log('getStyle: IE filter failed',
-                                    'error', 'Dom');
-                        }
-                    }
-                    return val / 100;
-                case 'float': // fix reserved word
-                    property = 'styleFloat'; // fall through
-                default: 
-                    // test currentStyle before touching
-                    var value = el.currentStyle ? el.currentStyle[property] : null;
-                    return ( el.style[property] || value );
-            }
-        };
-    } else { // default to inline only
-        getStyle = function(el, property) { return el.style[property]; };
-    }
-    
-    if (isIE) {
-        setStyle = function(el, property, val) {
-            switch (property) {
-                case 'opacity':
-                    if ( YAHOO.lang.isString(el.style.filter) ) { // in case not appended
-                        el.style.filter = 'alpha(opacity=' + val * 100 + ')';
-                        
-                        if (!el.currentStyle || !el.currentStyle.hasLayout) {
-                            el.style.zoom = 1; // when no layout or cant tell
-                        }
-                    }
-                    break;
-                case 'float':
-                    property = 'styleFloat';
-                default:
-                el.style[property] = val;
-            }
-        };
-    } else {
-        setStyle = function(el, property, val) {
-            if (property == 'float') {
-                property = 'cssFloat';
-            }
-            el.style[property] = val;
-        };
-    }
-
-    var testElement = function(node, method) {
-        return node && node.nodeType == 1 && ( !method || method(node) );
-    };
-
-    /**
-     * Provides helper methods for DOM elements.
-     * @namespace YAHOO.util
-     * @class Dom
-     */
-    YAHOO.util.Dom = {
-        /**
-         * 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) {
-            if (el && (el.nodeType || el.item)) { // Node, or NodeList
-                return el;
-            }
-
-            if (YAHOO.lang.isString(el) || !el) { // id or null
-                return document.getElementById(el);
-            }
-            
-            if (el.length !== undefined) { // array-like 
-                var c = [];
-                for (var 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
-        },
-    
-        /**
-         * 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) {
-            property = toCamel(property);
-            
-            var f = function(element) {
-                return getStyle(element, property);
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-    
-        /**
-         * 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) {
-            property = toCamel(property);
-            
-            var f = function(element) {
-                setStyle(element, property, val);
-                YAHOO.log('setStyle setting ' + property + ' to ' + val, 'info', 'Dom');
-                
-            };
-            
-            Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * 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) {
-            var f = function(el) {
-                // has to be part of document to have pageXY
-                if ( (el.parentNode === null || el.offsetParent === null ||
-                        this.getStyle(el, 'display') == 'none') && el != el.ownerDocument.body) {
-                    YAHOO.log('getXY failed: element not available', 'error', 'Dom');
-                    return false;
-                }
-                
-                YAHOO.log('getXY returning ' + getXY(el), 'info', 'Dom');
-                return getXY(el);
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * 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) {
-            var f = function(el) {
-                var style_pos = this.getStyle(el, 'position');
-                if (style_pos == 'static') { // default to relative
-                    this.setStyle(el, 'position', 'relative');
-                    style_pos = 'relative';
-                }
-
-                var pageXY = this.getXY(el);
-                if (pageXY === false) { // has to be part of doc to have pageXY
-                    YAHOO.log('setXY failed: element not available', 'error', 'Dom');
-                    return false; 
-                }
-                
-                var delta = [ // assuming pixels; if not we will have to retry
-                    parseInt( this.getStyle(el, 'left'), 10 ),
-                    parseInt( this.getStyle(el, 'top'), 10 )
-                ];
-            
-                if ( isNaN(delta[0]) ) {// in case of 'auto'
-                    delta[0] = (style_pos == 'relative') ? 0 : el.offsetLeft;
-                } 
-                if ( isNaN(delta[1]) ) { // in case of 'auto'
-                    delta[1] = (style_pos == 'relative') ? 0 : el.offsetTop;
-                } 
-        
-                if (pos[0] !== null) { el.style.left = pos[0] - pageXY[0] + delta[0] + 'px'; }
-                if (pos[1] !== null) { el.style.top = pos[1] - pageXY[1] + delta[1] + 'px'; }
-              
-                if (!noRetry) {
-                    var newXY = this.getXY(el);
-
-                    // if retry is true, try one more time if we miss 
-                   if ( (pos[0] !== null && newXY[0] != pos[0]) || 
-                        (pos[1] !== null && newXY[1] != pos[1]) ) {
-                       this.setXY(el, pos, true);
-                   }
-                }        
-        
-                YAHOO.log('setXY setting position to ' + pos, 'info', 'Dom');
-            };
-            
-            Y.Dom.batch(el, f, Y.Dom, 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) {
-                if ( (el.parentNode === null || el.offsetParent === null ||
-                        this.getStyle(el, 'display') == 'none') && el != document.body) {
-                    YAHOO.log('getRegion failed: element not available', 'error', 'Dom');
-                    return false;
-                }
-
-                var region = Y.Region.getRegion(el);
-                YAHOO.log('getRegion returning ' + region, 'info', '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 a array of HTMLElements with the given class.
-         * For optimized performance, include a tag and/or root node when possible.
-         * @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 
-         * @param {Function} apply (optional) A function to apply to each element when found 
-         * @return {Array} An array of elements that have the given class name
-         */
-        getElementsByClassName: function(className, tag, root, apply) {
-            tag = tag || '*';
-            root = (root) ? Y.Dom.get(root) : null || document; 
-            if (!root) {
-                return [];
-            }
-
-            var nodes = [],
-                elements = root.getElementsByTagName(tag),
-                re = getClassRegEx(className);
-
-            for (var i = 0, len = elements.length; i < len; ++i) {
-                if ( re.test(elements[i].className) ) {
-                    nodes[nodes.length] = elements[i];
-                    if (apply) {
-                        apply.call(elements[i], elements[i]);
-                    }
-                }
-            }
-            
-            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) {
-            var re = getClassRegEx(className);
-
-            var f = function(el) {
-                YAHOO.log('hasClass returning ' + re.test(el.className), 'info', 'Dom');
-                return re.test(el.className);
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-    
-        /**
-         * 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) {
-            var f = function(el) {
-                if (this.hasClass(el, className)) {
-                    return false; // already present
-                }
-                
-                YAHOO.log('addClass adding ' + className, 'info', 'Dom');
-                
-                el.className = YAHOO.lang.trim([el.className, className].join(' '));
-                return true;
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-    
-        /**
-         * 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) {
-            var re = getClassRegEx(className);
-            
-            var f = function(el) {
-                if (!className || !this.hasClass(el, className)) {
-                    return false; // not present
-                }                 
-
-                YAHOO.log('removeClass removing ' + className, 'info', 'Dom');
-                
-                var c = el.className;
-                el.className = c.replace(re, ' ');
-                if ( this.hasClass(el, className) ) { // in case of multiple adjacent
-                    this.removeClass(el, className);
-                }
-
-                el.className = YAHOO.lang.trim(el.className); // remove any trailing spaces
-                return true;
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * 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) {
-            if (!newClassName || oldClassName === newClassName) { // avoid infinite loop
-                return false;
-            }
-            
-            var re = getClassRegEx(oldClassName);
-
-            var f = function(el) {
-                YAHOO.log('replaceClass replacing ' + oldClassName + ' with ' + newClassName, 'info', 'Dom');
-            
-                if ( !this.hasClass(el, oldClassName) ) {
-                    this.addClass(el, newClassName); // just add it if nothing to replace
-                    return true; // NOTE: return
-                }
-            
-                el.className = el.className.replace(re, ' ' + newClassName + ' ');
-
-                if ( this.hasClass(el, oldClassName) ) { // in case of multiple adjacent
-                    this.replaceClass(el, oldClassName, newClassName);
-                }
-
-                el.className = YAHOO.lang.trim(el.className); // remove any trailing spaces
-                return true;
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * 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) {
-                    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);
-            
-            if (!haystack || !needle) {
-                return false;
-            }
-
-            if (haystack.contains && needle.nodeType && !isSafari) { // safari contains is broken
-                YAHOO.log('isAncestor returning ' + haystack.contains(needle), 'info', 'Dom');
-                return haystack.contains(needle);
-            }
-            else if ( haystack.compareDocumentPosition && needle.nodeType ) {
-                YAHOO.log('isAncestor returning ' + !!(haystack.compareDocumentPosition(needle) & 16), 'info', 'Dom');
-                return !!(haystack.compareDocumentPosition(needle) & 16);
-            } else if (needle.nodeType) {
-                // fallback to crawling up (safari)
-                return !!this.getAncestorBy(needle, function(el) {
-                    return el == haystack; 
-                }); 
-            }
-            YAHOO.log('isAncestor failed; most likely needle is not an HTMLElement', 'error', 'Dom');
-            return false;
-        },
-        
-        /**
-         * Determines whether an HTMLElement is present in the current document.
-         * @method inDocument         
-         * @param {String | HTMLElement} el The element to search for
-         * @return {Boolean} Whether or not the element is present in the current document
-         */
-        inDocument: function(el) {
-            return this.isAncestor(document.documentElement, el);
-        },
-        
-        /**
-         * Returns a array of HTMLElements that pass the test applied by supplied boolean method.
-         * For optimized performance, include a tag and/or root node when possible.
-         * @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 
-         * @return {Array} Array of HTMLElements
-         */
-        getElementsBy: function(method, tag, root, apply) {
-            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]) ) {
-                    nodes[nodes.length] = elements[i];
-                    if (apply) {
-                        apply(elements[i]);
-                    }
-                }
-            }
-
-            YAHOO.log('getElementsBy returning ' + nodes, 'info', 'Dom');
-            
-            return nodes;
-        },
-        
-        /**
-         * 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} override (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, override) {
-            el = (el && (el.tagName || el.item)) ? el : Y.Dom.get(el); // skip get() when possible
-
-            if (!el || !method) {
-                YAHOO.log('batch failed: invalid arguments', 'error', 'Dom');
-                return false;
-            } 
-            var scope = (override) ? o : window;
-            
-            if (el.tagName || el.length === undefined) { // element or not array-like 
-                return method.call(scope, el, o);
-            } 
-
-            var collection = [];
-            
-            for (var i = 0, len = el.length; i < len; ++i) {
-                collection[collection.length] = method.call(scope, el[i], o);
-            }
-            
-            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.compatMode != 'CSS1Compat') ? document.body.scrollHeight : document.documentElement.scrollHeight;
-
-            var 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.compatMode != 'CSS1Compat') ? document.body.scrollWidth : document.documentElement.scrollWidth;
-            var 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
-            var mode = document.compatMode;
-        
-            if ( (mode || isIE) && !isOpera ) { // IE, Gecko
-                height = (mode == 'CSS1Compat') ?
-                        document.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
-            var mode = document.compatMode;
-            
-            if (mode || isIE) { // IE, Gecko, Opera
-                width = (mode == 'CSS1Compat') ?
-                        document.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.parentNode) { // NOTE: assignment
-                if ( 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.tagName && el.tagName.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 ( 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 ( 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 = ( 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 = ( 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);
-            var 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.documentElement.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.documentElement.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.parentNode) {
-                YAHOO.log('insertAfter failed: missing or invalid arg(s)', 'error', 'Dom');
-                return null;
-            }       
-
-            return referenceNode.parentNode.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.parentNode) {
-                YAHOO.log('insertAfter failed: missing or invalid arg(s)', 'error', 'Dom');
-                return null;
-            }       
-
-            if (referenceNode.nextSibling) {
-                return referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling); 
-            } else {
-                return referenceNode.parentNode.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);
-        }
-    };
-    
-    var getXY = function() {
-        if (document.documentElement.getBoundingClientRect) { // IE
-            return function(el) {
-                var box = el.getBoundingClientRect();
-
-                var rootNode = el.ownerDocument;
-                return [box.left + Y.Dom.getDocumentScrollLeft(rootNode), box.top +
-                        Y.Dom.getDocumentScrollTop(rootNode)];
-            };
-        } else {
-            return function(el) { // manually calculate by crawling up offsetParents
-                var pos = [el.offsetLeft, el.offsetTop];
-                var parentNode = el.offsetParent;
-
-                // safari: subtract body offsets if el is abs (or any offsetParent), unless body is offsetParent
-                var accountForBody = (isSafari &&
-                        Y.Dom.getStyle(el, 'position') == 'absolute' &&
-                        el.offsetParent == el.ownerDocument.body);
-
-                if (parentNode != el) {
-                    while (parentNode) {
-                        pos[0] += parentNode.offsetLeft;
-                        pos[1] += parentNode.offsetTop;
-                        if (!accountForBody && isSafari && 
-                                Y.Dom.getStyle(parentNode,'position') == 'absolute' ) { 
-                            accountForBody = true;
-                        }
-                        parentNode = parentNode.offsetParent;
-                    }
-                }
-
-                if (accountForBody) { //safari doubles in this case
-                    pos[0] -= el.ownerDocument.body.offsetLeft;
-                    pos[1] -= el.ownerDocument.body.offsetTop;
-                } 
-                parentNode = el.parentNode;
-
-                // account for any scrolled ancestors
-                while ( parentNode.tagName && !patterns.ROOT_TAG.test(parentNode.tagName) ) 
-                {
-                   // work around opera inline/table scrollLeft/Top bug
-                   if (Y.Dom.getStyle(parentNode, 'display').search(/^inline|table-row.*$/i)) { 
-                        pos[0] -= parentNode.scrollLeft;
-                        pos[1] -= parentNode.scrollTop;
-                    }
-                    
-                    parentNode = parentNode.parentNode; 
-                }
-
-                return pos;
-            };
-        }
-    }() // NOTE: Executing for loadtime branching
-})();
-/**
- * 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 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 as index, for symmetry with set/getXY
-     * @property 0
-     * @type Int
-     */
-    this[0] = l;
-};
-
-/**
- * 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    );
-    var r = Math.min( this.right,  region.right  );
-    var b = Math.min( this.bottom, region.bottom );
-    var 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    );
-    var r = Math.max( this.right,  region.right  );
-    var b = Math.max( this.bottom, region.bottom );
-    var 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   + 
-             "}" );
-};
-
-/**
- * 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);
-
-    var t = p[1];
-    var r = p[0] + el.offsetWidth;
-    var b = p[1] + el.offsetHeight;
-    var 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];
-   }
-   
-    /**
-     * The X position of the point, which is also the right, left and index zero (for Dom.getXY symmetry)
-     * @property x
-     * @type Int
-     */
-
-    this.x = this.right = this.left = this[0] = x;
-     
-    /**
-     * The Y position of the point, which is also the top, bottom and index one (for Dom.getXY symmetry)
-     * @property y
-     * @type Int
-     */
-    this.y = this.top = this.bottom = this[1] = y;
-};
-
-YAHOO.util.Point.prototype = new YAHOO.util.Region();
-
-YAHOO.register("dom", YAHOO.util.Dom, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/dom/dom-min.js b/lib/yui/dom/dom-min.js
deleted file mode 100755 (executable)
index 51f1ddb..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-(function(){var B=YAHOO.util,K,I,J={},F={},M=window.document;YAHOO.env._id_counter=YAHOO.env._id_counter||0;var C=YAHOO.env.ua.opera,L=YAHOO.env.ua.webkit,A=YAHOO.env.ua.gecko,G=YAHOO.env.ua.ie;var E={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i};var N=function(P){if(!E.HYPHEN.test(P)){return P;}if(J[P]){return J[P];}var Q=P;while(E.HYPHEN.exec(Q)){Q=Q.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}J[P]=Q;return Q;};var O=function(Q){var P=F[Q];if(!P){P=new RegExp("(?:^|\\s+)"+Q+"(?:\\s+|$)");F[Q]=P;}return P;};if(M.defaultView&&M.defaultView.getComputedStyle){K=function(P,S){var R=null;if(S=="float"){S="cssFloat";}var Q=M.defaultView.getComputedStyle(P,"");if(Q){R=Q[N(S)];}return P.style[S]||R;};}else{if(M.documentElement.currentStyle&&G){K=function(P,R){switch(N(R)){case"opacity":var T=100;try{T=P.filters["DXImageTransform.Microsoft.Alpha"].opacity;}catch(S){try{T=P.filters("alpha").opacity;}catch(S){}}return T/100;case"float":R="styleFloat";default:var Q=P.currentStyle?P.currentStyle[R]:null;return(P.style[R]||Q);}};}else{K=function(P,Q){return P.style[Q];};}}if(G){I=function(P,Q,R){switch(Q){case"opacity":if(YAHOO.lang.isString(P.style.filter)){P.style.filter="alpha(opacity="+R*100+")";if(!P.currentStyle||!P.currentStyle.hasLayout){P.style.zoom=1;}}break;case"float":Q="styleFloat";default:P.style[Q]=R;}};}else{I=function(P,Q,R){if(Q=="float"){Q="cssFloat";}P.style[Q]=R;};}var D=function(P,Q){return P&&P.nodeType==1&&(!Q||Q(P));};YAHOO.util.Dom={get:function(R){if(R&&(R.nodeType||R.item)){return R;}if(YAHOO.lang.isString(R)||!R){return M.getElementById(R);}if(R.length!==undefined){var S=[];for(var Q=0,P=R.length;Q<P;++Q){S[S.length]=B.Dom.get(R[Q]);}return S;}return R;},getStyle:function(P,R){R=N(R);var Q=function(S){return K(S,R);};return B.Dom.batch(P,Q,B.Dom,true);},setStyle:function(P,R,S){R=N(R);var Q=function(T){I(T,R,S);};B.Dom.batch(P,Q,B.Dom,true);},getXY:function(P){var Q=function(R){if((R.parentNode===null||R.offsetParent===null||this.getStyle(R,"display")=="none")&&R!=R.ownerDocument.body){return false;}return H(R);};return B.Dom.batch(P,Q,B.Dom,true);},getX:function(P){var Q=function(R){return B.Dom.getXY(R)[0];};return B.Dom.batch(P,Q,B.Dom,true);},getY:function(P){var Q=function(R){return B.Dom.getXY(R)[1];};return B.Dom.batch(P,Q,B.Dom,true);},setXY:function(P,S,R){var Q=function(V){var U=this.getStyle(V,"position");if(U=="static"){this.setStyle(V,"position","relative");U="relative";}var X=this.getXY(V);if(X===false){return false;}var W=[parseInt(this.getStyle(V,"left"),10),parseInt(this.getStyle(V,"top"),10)];if(isNaN(W[0])){W[0]=(U=="relative")?0:V.offsetLeft;}if(isNaN(W[1])){W[1]=(U=="relative")?0:V.offsetTop;}if(S[0]!==null){V.style.left=S[0]-X[0]+W[0]+"px";}if(S[1]!==null){V.style.top=S[1]-X[1]+W[1]+"px";}if(!R){var T=this.getXY(V);if((S[0]!==null&&T[0]!=S[0])||(S[1]!==null&&T[1]!=S[1])){this.setXY(V,S,true);}}};B.Dom.batch(P,Q,B.Dom,true);},setX:function(Q,P){B.Dom.setXY(Q,[P,null]);},setY:function(P,Q){B.Dom.setXY(P,[null,Q]);},getRegion:function(P){var Q=function(R){if((R.parentNode===null||R.offsetParent===null||this.getStyle(R,"display")=="none")&&R!=M.body){return false;}var S=B.Region.getRegion(R);return S;};return B.Dom.batch(P,Q,B.Dom,true);},getClientWidth:function(){return B.Dom.getViewportWidth();},getClientHeight:function(){return B.Dom.getViewportHeight();},getElementsByClassName:function(T,X,U,V){X=X||"*";U=(U)?B.Dom.get(U):null||M;if(!U){return[];}var Q=[],P=U.getElementsByTagName(X),W=O(T);for(var R=0,S=P.length;R<S;++R){if(W.test(P[R].className)){Q[Q.length]=P[R];if(V){V.call(P[R],P[R]);}}}return Q;},hasClass:function(R,Q){var P=O(Q);var S=function(T){return P.test(T.className);};return B.Dom.batch(R,S,B.Dom,true);},addClass:function(Q,P){var R=function(S){if(this.hasClass(S,P)){return false;}S.className=YAHOO.lang.trim([S.className,P].join(" "));return true;};return B.Dom.batch(Q,R,B.Dom,true);},removeClass:function(R,Q){var P=O(Q);var S=function(T){if(!Q||!this.hasClass(T,Q)){return false;}var U=T.className;T.className=U.replace(P," ");if(this.hasClass(T,Q)){this.removeClass(T,Q);}T.className=YAHOO.lang.trim(T.className);return true;};return B.Dom.batch(R,S,B.Dom,true);},replaceClass:function(S,Q,P){if(!P||Q===P){return false;}var R=O(Q);var T=function(U){if(!this.hasClass(U,Q)){this.addClass(U,P);return true;}U.className=U.className.replace(R," "+P+" ");if(this.hasClass(U,Q)){this.replaceClass(U,Q,P);}U.className=YAHOO.lang.trim(U.className);return true;};return B.Dom.batch(S,T,B.Dom,true);},generateId:function(P,R){R=R||"yui-gen";var Q=function(S){if(S&&S.id){return S.id;}var T=R+YAHOO.env._id_counter++;if(S){S.id=T;}return T;};return B.Dom.batch(P,Q,B.Dom,true)||Q.apply(B.Dom,arguments);},isAncestor:function(P,Q){P=B.Dom.get(P);Q=B.Dom.get(Q);if(!P||!Q){return false;}if(P.contains&&Q.nodeType&&!L){return P.contains(Q);}else{if(P.compareDocumentPosition&&Q.nodeType){return !!(P.compareDocumentPosition(Q)&16);}else{if(Q.nodeType){return !!this.getAncestorBy(Q,function(R){return R==P;});}}}return false;},inDocument:function(P){return this.isAncestor(M.documentElement,P);},getElementsBy:function(W,Q,R,T){Q=Q||"*";R=(R)?B.Dom.get(R):null||M;if(!R){return[];}var S=[],V=R.getElementsByTagName(Q);for(var U=0,P=V.length;U<P;++U){if(W(V[U])){S[S.length]=V[U];if(T){T(V[U]);}}}return S;},batch:function(T,W,V,R){T=(T&&(T.tagName||T.item))?T:B.Dom.get(T);if(!T||!W){return false;}var S=(R)?V:window;if(T.tagName||T.length===undefined){return W.call(S,T,V);}var U=[];for(var Q=0,P=T.length;Q<P;++Q){U[U.length]=W.call(S,T[Q],V);}return U;},getDocumentHeight:function(){var Q=(M.compatMode!="CSS1Compat")?M.body.scrollHeight:M.documentElement.scrollHeight;var P=Math.max(Q,B.Dom.getViewportHeight());return P;},getDocumentWidth:function(){var Q=(M.compatMode!="CSS1Compat")?M.body.scrollWidth:M.documentElement.scrollWidth;var P=Math.max(Q,B.Dom.getViewportWidth());return P;},getViewportHeight:function(){var P=self.innerHeight;var Q=M.compatMode;if((Q||G)&&!C){P=(Q=="CSS1Compat")?M.documentElement.clientHeight:M.body.clientHeight;
-}return P;},getViewportWidth:function(){var P=self.innerWidth;var Q=M.compatMode;if(Q||G){P=(Q=="CSS1Compat")?M.documentElement.clientWidth:M.body.clientWidth;}return P;},getAncestorBy:function(P,Q){while(P=P.parentNode){if(D(P,Q)){return P;}}return null;},getAncestorByClassName:function(Q,P){Q=B.Dom.get(Q);if(!Q){return null;}var R=function(S){return B.Dom.hasClass(S,P);};return B.Dom.getAncestorBy(Q,R);},getAncestorByTagName:function(Q,P){Q=B.Dom.get(Q);if(!Q){return null;}var R=function(S){return S.tagName&&S.tagName.toUpperCase()==P.toUpperCase();};return B.Dom.getAncestorBy(Q,R);},getPreviousSiblingBy:function(P,Q){while(P){P=P.previousSibling;if(D(P,Q)){return P;}}return null;},getPreviousSibling:function(P){P=B.Dom.get(P);if(!P){return null;}return B.Dom.getPreviousSiblingBy(P);},getNextSiblingBy:function(P,Q){while(P){P=P.nextSibling;if(D(P,Q)){return P;}}return null;},getNextSibling:function(P){P=B.Dom.get(P);if(!P){return null;}return B.Dom.getNextSiblingBy(P);},getFirstChildBy:function(P,R){var Q=(D(P.firstChild,R))?P.firstChild:null;return Q||B.Dom.getNextSiblingBy(P.firstChild,R);},getFirstChild:function(P,Q){P=B.Dom.get(P);if(!P){return null;}return B.Dom.getFirstChildBy(P);},getLastChildBy:function(P,R){if(!P){return null;}var Q=(D(P.lastChild,R))?P.lastChild:null;return Q||B.Dom.getPreviousSiblingBy(P.lastChild,R);},getLastChild:function(P){P=B.Dom.get(P);return B.Dom.getLastChildBy(P);},getChildrenBy:function(Q,S){var R=B.Dom.getFirstChildBy(Q,S);var P=R?[R]:[];B.Dom.getNextSiblingBy(R,function(T){if(!S||S(T)){P[P.length]=T;}return false;});return P;},getChildren:function(P){P=B.Dom.get(P);if(!P){}return B.Dom.getChildrenBy(P);},getDocumentScrollLeft:function(P){P=P||M;return Math.max(P.documentElement.scrollLeft,P.body.scrollLeft);},getDocumentScrollTop:function(P){P=P||M;return Math.max(P.documentElement.scrollTop,P.body.scrollTop);},insertBefore:function(Q,P){Q=B.Dom.get(Q);P=B.Dom.get(P);if(!Q||!P||!P.parentNode){return null;}return P.parentNode.insertBefore(Q,P);},insertAfter:function(Q,P){Q=B.Dom.get(Q);P=B.Dom.get(P);if(!Q||!P||!P.parentNode){return null;}if(P.nextSibling){return P.parentNode.insertBefore(Q,P.nextSibling);}else{return P.parentNode.appendChild(Q);}},getClientRegion:function(){var R=B.Dom.getDocumentScrollTop(),Q=B.Dom.getDocumentScrollLeft(),S=B.Dom.getViewportWidth()+Q,P=B.Dom.getViewportHeight()+R;return new B.Region(R,S,P,Q);}};var H=function(){if(M.documentElement.getBoundingClientRect){return function(Q){var R=Q.getBoundingClientRect();var P=Q.ownerDocument;return[R.left+B.Dom.getDocumentScrollLeft(P),R.top+B.Dom.getDocumentScrollTop(P)];};}else{return function(R){var S=[R.offsetLeft,R.offsetTop];var Q=R.offsetParent;var P=(L&&B.Dom.getStyle(R,"position")=="absolute"&&R.offsetParent==R.ownerDocument.body);if(Q!=R){while(Q){S[0]+=Q.offsetLeft;S[1]+=Q.offsetTop;if(!P&&L&&B.Dom.getStyle(Q,"position")=="absolute"){P=true;}Q=Q.offsetParent;}}if(P){S[0]-=R.ownerDocument.body.offsetLeft;S[1]-=R.ownerDocument.body.offsetTop;}Q=R.parentNode;while(Q.tagName&&!E.ROOT_TAG.test(Q.tagName)){if(B.Dom.getStyle(Q,"display").search(/^inline|table-row.*$/i)){S[0]-=Q.scrollLeft;S[1]-=Q.scrollTop;}Q=Q.parentNode;}return S;};}}();})();YAHOO.util.Region=function(C,D,A,B){this.top=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this[0]=B;};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);var D=Math.min(this.right,E.right);var A=Math.min(this.bottom,E.bottom);var 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);var D=Math.max(this.right,E.right);var A=Math.max(this.bottom,E.bottom);var 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+"}");};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D);var C=F[1];var E=F[0]+D.offsetWidth;var A=F[1]+D.offsetHeight;var 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];}this.x=this.right=this.left=this[0]=A;this.y=this.top=this.bottom=this[1]=B;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register("dom",YAHOO.util.Dom,{version:"2.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/dom/dom.js b/lib/yui/dom/dom.js
deleted file mode 100755 (executable)
index 76a3702..0000000
+++ /dev/null
@@ -1,1225 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * The dom module provides helper methods for manipulating Dom elements.
- * @module dom
- *
- */
-
-(function() {
-    var Y = YAHOO.util,     // internal shorthand
-        getStyle,           // for load time browser branching
-        setStyle,           // ditto
-        propertyCache = {}, // for faster hyphen converts
-        reClassNameCache = {},          // cache regexes for className
-        document = window.document;     // cache for faster lookups
-    
-    YAHOO.env._id_counter = YAHOO.env._id_counter || 0;     // for use with generateId (global to save state if Dom is overwritten)
-
-    // brower detection
-    var isOpera = YAHOO.env.ua.opera,
-        isSafari = YAHOO.env.ua.webkit, 
-        isGecko = YAHOO.env.ua.gecko,
-        isIE = YAHOO.env.ua.ie; 
-    
-    // regex cache
-    var patterns = {
-        HYPHEN: /(-[a-z])/i, // to normalize get/setStyle
-        ROOT_TAG: /^body|html$/i // body for quirks mode, html for standards
-    };
-
-    var toCamel = function(property) {
-        if ( !patterns.HYPHEN.test(property) ) {
-            return property; // no hyphens
-        }
-        
-        if (propertyCache[property]) { // already converted
-            return propertyCache[property];
-        }
-       
-        var converted = property;
-        while( patterns.HYPHEN.exec(converted) ) {
-            converted = converted.replace(RegExp.$1,
-                    RegExp.$1.substr(1).toUpperCase());
-        }
-        
-        propertyCache[property] = converted;
-        return converted;
-        //return property.replace(/-([a-z])/gi, function(m0, m1) {return m1.toUpperCase()}) // cant use function as 2nd arg yet due to safari bug
-    };
-    
-    var getClassRegEx = function(className) {
-        var re = reClassNameCache[className];
-        if (!re) {
-            re = new RegExp('(?:^|\\s+)' + className + '(?:\\s+|$)');
-            reClassNameCache[className] = re;
-        }
-        return re;
-    };
-
-    // branching at load instead of runtime
-    if (document.defaultView && document.defaultView.getComputedStyle) { // W3C DOM method
-        getStyle = function(el, property) {
-            var value = null;
-            
-            if (property == 'float') { // fix reserved word
-                property = 'cssFloat';
-            }
-
-            var computed = document.defaultView.getComputedStyle(el, '');
-            if (computed) { // test computed before touching for safari
-                value = computed[toCamel(property)];
-            }
-            
-            return el.style[property] || value;
-        };
-    } else if (document.documentElement.currentStyle && isIE) { // IE method
-        getStyle = function(el, property) {                         
-            switch( toCamel(property) ) {
-                case 'opacity' :// IE opacity uses filter
-                    var val = 100;
-                    try { // will error if no DXImageTransform
-                        val = el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
-
-                    } catch(e) {
-                        try { // make sure its in the document
-                            val = el.filters('alpha').opacity;
-                        } catch(e) {
-                        }
-                    }
-                    return val / 100;
-                case 'float': // fix reserved word
-                    property = 'styleFloat'; // fall through
-                default: 
-                    // test currentStyle before touching
-                    var value = el.currentStyle ? el.currentStyle[property] : null;
-                    return ( el.style[property] || value );
-            }
-        };
-    } else { // default to inline only
-        getStyle = function(el, property) { return el.style[property]; };
-    }
-    
-    if (isIE) {
-        setStyle = function(el, property, val) {
-            switch (property) {
-                case 'opacity':
-                    if ( YAHOO.lang.isString(el.style.filter) ) { // in case not appended
-                        el.style.filter = 'alpha(opacity=' + val * 100 + ')';
-                        
-                        if (!el.currentStyle || !el.currentStyle.hasLayout) {
-                            el.style.zoom = 1; // when no layout or cant tell
-                        }
-                    }
-                    break;
-                case 'float':
-                    property = 'styleFloat';
-                default:
-                el.style[property] = val;
-            }
-        };
-    } else {
-        setStyle = function(el, property, val) {
-            if (property == 'float') {
-                property = 'cssFloat';
-            }
-            el.style[property] = val;
-        };
-    }
-
-    var testElement = function(node, method) {
-        return node && node.nodeType == 1 && ( !method || method(node) );
-    };
-
-    /**
-     * Provides helper methods for DOM elements.
-     * @namespace YAHOO.util
-     * @class Dom
-     */
-    YAHOO.util.Dom = {
-        /**
-         * 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) {
-            if (el && (el.nodeType || el.item)) { // Node, or NodeList
-                return el;
-            }
-
-            if (YAHOO.lang.isString(el) || !el) { // id or null
-                return document.getElementById(el);
-            }
-            
-            if (el.length !== undefined) { // array-like 
-                var c = [];
-                for (var 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
-        },
-    
-        /**
-         * 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) {
-            property = toCamel(property);
-            
-            var f = function(element) {
-                return getStyle(element, property);
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-    
-        /**
-         * 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) {
-            property = toCamel(property);
-            
-            var f = function(element) {
-                setStyle(element, property, val);
-                
-            };
-            
-            Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * 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) {
-            var f = function(el) {
-                // has to be part of document to have pageXY
-                if ( (el.parentNode === null || el.offsetParent === null ||
-                        this.getStyle(el, 'display') == 'none') && el != el.ownerDocument.body) {
-                    return false;
-                }
-                
-                return getXY(el);
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * 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) {
-            var f = function(el) {
-                var style_pos = this.getStyle(el, 'position');
-                if (style_pos == 'static') { // default to relative
-                    this.setStyle(el, 'position', 'relative');
-                    style_pos = 'relative';
-                }
-
-                var pageXY = this.getXY(el);
-                if (pageXY === false) { // has to be part of doc to have pageXY
-                    return false; 
-                }
-                
-                var delta = [ // assuming pixels; if not we will have to retry
-                    parseInt( this.getStyle(el, 'left'), 10 ),
-                    parseInt( this.getStyle(el, 'top'), 10 )
-                ];
-            
-                if ( isNaN(delta[0]) ) {// in case of 'auto'
-                    delta[0] = (style_pos == 'relative') ? 0 : el.offsetLeft;
-                } 
-                if ( isNaN(delta[1]) ) { // in case of 'auto'
-                    delta[1] = (style_pos == 'relative') ? 0 : el.offsetTop;
-                } 
-        
-                if (pos[0] !== null) { el.style.left = pos[0] - pageXY[0] + delta[0] + 'px'; }
-                if (pos[1] !== null) { el.style.top = pos[1] - pageXY[1] + delta[1] + 'px'; }
-              
-                if (!noRetry) {
-                    var newXY = this.getXY(el);
-
-                    // if retry is true, try one more time if we miss 
-                   if ( (pos[0] !== null && newXY[0] != pos[0]) || 
-                        (pos[1] !== null && newXY[1] != pos[1]) ) {
-                       this.setXY(el, pos, true);
-                   }
-                }        
-        
-            };
-            
-            Y.Dom.batch(el, f, Y.Dom, 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) {
-                if ( (el.parentNode === null || el.offsetParent === null ||
-                        this.getStyle(el, 'display') == 'none') && el != document.body) {
-                    return false;
-                }
-
-                var region = Y.Region.getRegion(el);
-                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 a array of HTMLElements with the given class.
-         * For optimized performance, include a tag and/or root node when possible.
-         * @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 
-         * @param {Function} apply (optional) A function to apply to each element when found 
-         * @return {Array} An array of elements that have the given class name
-         */
-        getElementsByClassName: function(className, tag, root, apply) {
-            tag = tag || '*';
-            root = (root) ? Y.Dom.get(root) : null || document; 
-            if (!root) {
-                return [];
-            }
-
-            var nodes = [],
-                elements = root.getElementsByTagName(tag),
-                re = getClassRegEx(className);
-
-            for (var i = 0, len = elements.length; i < len; ++i) {
-                if ( re.test(elements[i].className) ) {
-                    nodes[nodes.length] = elements[i];
-                    if (apply) {
-                        apply.call(elements[i], elements[i]);
-                    }
-                }
-            }
-            
-            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) {
-            var re = getClassRegEx(className);
-
-            var f = function(el) {
-                return re.test(el.className);
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-    
-        /**
-         * 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) {
-            var f = function(el) {
-                if (this.hasClass(el, className)) {
-                    return false; // already present
-                }
-                
-                
-                el.className = YAHOO.lang.trim([el.className, className].join(' '));
-                return true;
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-    
-        /**
-         * 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) {
-            var re = getClassRegEx(className);
-            
-            var f = function(el) {
-                if (!className || !this.hasClass(el, className)) {
-                    return false; // not present
-                }                 
-
-                
-                var c = el.className;
-                el.className = c.replace(re, ' ');
-                if ( this.hasClass(el, className) ) { // in case of multiple adjacent
-                    this.removeClass(el, className);
-                }
-
-                el.className = YAHOO.lang.trim(el.className); // remove any trailing spaces
-                return true;
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * 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) {
-            if (!newClassName || oldClassName === newClassName) { // avoid infinite loop
-                return false;
-            }
-            
-            var re = getClassRegEx(oldClassName);
-
-            var f = function(el) {
-            
-                if ( !this.hasClass(el, oldClassName) ) {
-                    this.addClass(el, newClassName); // just add it if nothing to replace
-                    return true; // NOTE: return
-                }
-            
-                el.className = el.className.replace(re, ' ' + newClassName + ' ');
-
-                if ( this.hasClass(el, oldClassName) ) { // in case of multiple adjacent
-                    this.replaceClass(el, oldClassName, newClassName);
-                }
-
-                el.className = YAHOO.lang.trim(el.className); // remove any trailing spaces
-                return true;
-            };
-            
-            return Y.Dom.batch(el, f, Y.Dom, true);
-        },
-        
-        /**
-         * 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) {
-                    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);
-            
-            if (!haystack || !needle) {
-                return false;
-            }
-
-            if (haystack.contains && needle.nodeType && !isSafari) { // safari contains is broken
-                return haystack.contains(needle);
-            }
-            else if ( haystack.compareDocumentPosition && needle.nodeType ) {
-                return !!(haystack.compareDocumentPosition(needle) & 16);
-            } else if (needle.nodeType) {
-                // fallback to crawling up (safari)
-                return !!this.getAncestorBy(needle, function(el) {
-                    return el == haystack; 
-                }); 
-            }
-            return false;
-        },
-        
-        /**
-         * Determines whether an HTMLElement is present in the current document.
-         * @method inDocument         
-         * @param {String | HTMLElement} el The element to search for
-         * @return {Boolean} Whether or not the element is present in the current document
-         */
-        inDocument: function(el) {
-            return this.isAncestor(document.documentElement, el);
-        },
-        
-        /**
-         * Returns a array of HTMLElements that pass the test applied by supplied boolean method.
-         * For optimized performance, include a tag and/or root node when possible.
-         * @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 
-         * @return {Array} Array of HTMLElements
-         */
-        getElementsBy: function(method, tag, root, apply) {
-            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]) ) {
-                    nodes[nodes.length] = elements[i];
-                    if (apply) {
-                        apply(elements[i]);
-                    }
-                }
-            }
-
-            
-            return nodes;
-        },
-        
-        /**
-         * 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} override (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, override) {
-            el = (el && (el.tagName || el.item)) ? el : Y.Dom.get(el); // skip get() when possible
-
-            if (!el || !method) {
-                return false;
-            } 
-            var scope = (override) ? o : window;
-            
-            if (el.tagName || el.length === undefined) { // element or not array-like 
-                return method.call(scope, el, o);
-            } 
-
-            var collection = [];
-            
-            for (var i = 0, len = el.length; i < len; ++i) {
-                collection[collection.length] = method.call(scope, el[i], o);
-            }
-            
-            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.compatMode != 'CSS1Compat') ? document.body.scrollHeight : document.documentElement.scrollHeight;
-
-            var 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.compatMode != 'CSS1Compat') ? document.body.scrollWidth : document.documentElement.scrollWidth;
-            var 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
-            var mode = document.compatMode;
-        
-            if ( (mode || isIE) && !isOpera ) { // IE, Gecko
-                height = (mode == 'CSS1Compat') ?
-                        document.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
-            var mode = document.compatMode;
-            
-            if (mode || isIE) { // IE, Gecko, Opera
-                width = (mode == 'CSS1Compat') ?
-                        document.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.parentNode) { // NOTE: assignment
-                if ( 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.tagName && el.tagName.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 ( 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 ( 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 = ( 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 = ( 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);
-            var 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.documentElement.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.documentElement.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.parentNode) {
-                return null;
-            }       
-
-            return referenceNode.parentNode.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.parentNode) {
-                return null;
-            }       
-
-            if (referenceNode.nextSibling) {
-                return referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling); 
-            } else {
-                return referenceNode.parentNode.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);
-        }
-    };
-    
-    var getXY = function() {
-        if (document.documentElement.getBoundingClientRect) { // IE
-            return function(el) {
-                var box = el.getBoundingClientRect();
-
-                var rootNode = el.ownerDocument;
-                return [box.left + Y.Dom.getDocumentScrollLeft(rootNode), box.top +
-                        Y.Dom.getDocumentScrollTop(rootNode)];
-            };
-        } else {
-            return function(el) { // manually calculate by crawling up offsetParents
-                var pos = [el.offsetLeft, el.offsetTop];
-                var parentNode = el.offsetParent;
-
-                // safari: subtract body offsets if el is abs (or any offsetParent), unless body is offsetParent
-                var accountForBody = (isSafari &&
-                        Y.Dom.getStyle(el, 'position') == 'absolute' &&
-                        el.offsetParent == el.ownerDocument.body);
-
-                if (parentNode != el) {
-                    while (parentNode) {
-                        pos[0] += parentNode.offsetLeft;
-                        pos[1] += parentNode.offsetTop;
-                        if (!accountForBody && isSafari && 
-                                Y.Dom.getStyle(parentNode,'position') == 'absolute' ) { 
-                            accountForBody = true;
-                        }
-                        parentNode = parentNode.offsetParent;
-                    }
-                }
-
-                if (accountForBody) { //safari doubles in this case
-                    pos[0] -= el.ownerDocument.body.offsetLeft;
-                    pos[1] -= el.ownerDocument.body.offsetTop;
-                } 
-                parentNode = el.parentNode;
-
-                // account for any scrolled ancestors
-                while ( parentNode.tagName && !patterns.ROOT_TAG.test(parentNode.tagName) ) 
-                {
-                   // work around opera inline/table scrollLeft/Top bug
-                   if (Y.Dom.getStyle(parentNode, 'display').search(/^inline|table-row.*$/i)) { 
-                        pos[0] -= parentNode.scrollLeft;
-                        pos[1] -= parentNode.scrollTop;
-                    }
-                    
-                    parentNode = parentNode.parentNode; 
-                }
-
-                return pos;
-            };
-        }
-    }() // NOTE: Executing for loadtime branching
-})();
-/**
- * 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 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 as index, for symmetry with set/getXY
-     * @property 0
-     * @type Int
-     */
-    this[0] = l;
-};
-
-/**
- * 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    );
-    var r = Math.min( this.right,  region.right  );
-    var b = Math.min( this.bottom, region.bottom );
-    var 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    );
-    var r = Math.max( this.right,  region.right  );
-    var b = Math.max( this.bottom, region.bottom );
-    var 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   + 
-             "}" );
-};
-
-/**
- * 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);
-
-    var t = p[1];
-    var r = p[0] + el.offsetWidth;
-    var b = p[1] + el.offsetHeight;
-    var 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];
-   }
-   
-    /**
-     * The X position of the point, which is also the right, left and index zero (for Dom.getXY symmetry)
-     * @property x
-     * @type Int
-     */
-
-    this.x = this.right = this.left = this[0] = x;
-     
-    /**
-     * The Y position of the point, which is also the top, bottom and index one (for Dom.getXY symmetry)
-     * @property y
-     * @type Int
-     */
-    this.y = this.top = this.bottom = this[1] = y;
-};
-
-YAHOO.util.Point.prototype = new YAHOO.util.Region();
-
-YAHOO.register("dom", YAHOO.util.Dom, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/dragdrop/README b/lib/yui/dragdrop/README
deleted file mode 100755 (executable)
index 9ee166e..0000000
+++ /dev/null
@@ -1,165 +0,0 @@
-Drag and Drop Release Notes
-
-2.5.0
-    * Added CustomEvents in addition to method overrides
-        (See API Docs for more information)
-    * Added an IFRAME element to the proxy div (only in IE) to keep select
-        elements and other object from bleeding through
-
-2.4.0
-  * Added configuration option called "dragOnly". If dragOnly is set to true,
-    all event in the fireEvents method will not fire. These events are:
-        onInvalidDrop
-        b4DragOut & onDragOut
-        onDragEnter
-        b4DragOver & onDragOver
-        b4DragDrop & onDragDrop
-    This config option should be used to drag elements that have no need for
-        drop interaction. They are elements that just need to move.
-
-2.3.1
-  * No change
-
-2.3.0
-  * YAHOO.util.DragDropMgr.stopDrag is now public, and can be used to cancel
-    a drag in progress.  An optional "silent" flag was added to skip the
-    onMouseUp and endDrag functions when needed (eliminating the need to
-    supply mouseup page coordinates to these functions).
-  * DDProxy: the position of the proxy is not set before the drag is confirmed,
-    preventing auto-scroll from distrupting the user experience.
-  * Modified the default proxy so that IE properly registers the proxy as
-    the event target during the drag.
-  * If a dd instance is created using a dom reference rather than an id, that
-    reference is stored and used throughout making it possible to control
-    instances outside the current window.
-  * The document mousemove listener no longer returns true.
-
-2.2.2
-  * No change
-
-2.2.1
-
-  * Added YAHOO.util.DragDropMgr.interactionInfo, which is
-    a repository of interaction information accumulated during
-    the current event loop result, and accessible from the
-    handlers for the events.
-  * The region for the dragged element is now cached while
-    processing the drag and drop events
-  * List example supports moving an item to an empty list
-  * Fixed missing html tags in the examples
-  * The debug version now works when included before the logger is included.
-
-2.2.0
-
-  * onMouseDown event is executed before element positions are calculated
-  * refreshCache refreshes everything if groups array is not provided
-  * setX/setYConstraint doesn't fail when presented ints cast as strings
-
-0.12.2
-
-  * No change
-
-0.12.1
-
-  * Added a STRICT_INTERSECT drag and drop interaction mode.  This alters the
-    behavior of DDM::getBestMatch.  INTERSECT mode first tests the cursor
-    location, and if it is over the target that target wins, otherwise it
-    tests the overlap of the elements.  STRICT_INTERSECT mode tests only 
-    the overlap, the largest overlap wins.
-
-  * getBestMatch will work for targeted elements that have no overlap.
-
-0.12.0
-
-   * The logic to determine if a drag should be initiated has been isolated
-     to the clickValidator method.  This method can be overridden to provide
-     custom valdiation logic.  For example, it is possible to specify hotspots
-     of any dimension or shape.  The provided example shows how to make only
-     a circular region in the middle of the element initiate a drag.
-
-   * Added a new drag and drop event: onInvalidDrop.  This is executed when
-     the dragged element in dropped in a location without a target.  Previously
-     this condition could only detected by implementing handlers for three 
-     other events.
-
-   * Now accepts an element reference in lieu of an id.  Ids will
-     be generated if the element does not have one.
-
-   * Fixed horizontal autoscroll when scrollTop is zero.
-
-   * Added hasOuterHandles property to bypass the isOverTarget check in the
-     mousedown validation routine.  Fixes setOuterHandleElId.
-
-0.11.4
-
-   * YAHOO.util.DragDropMgr.swapNode now handles adjacent nodes properly
-   
-   * Fixed missing variable declarations
-
-0.11.3
-   * Fixed a JavaScript error that would be generated when trying to implement
-     DDProxy using the default settings and a tiny element.
-
-   * Fixed an error that resulted when constraints were applied to DragDrop 
-     instances.
-
-0.11.2
-
-   * Drag and drop will no longer interfere with selecting text on elements
-     that are not involved in drag and drop.
-
-   * The shared drag and drop proxy element now resizes correctly when autoResize
-     is enabled.
-
-0.11.1
-
-   * Fixes an issue where the setXY cache could get out of sync if the element's
-     offsetParent is changed during onDragDrop.
-
-0.11.0
-
-   * The Dom.util.setXY calculation for the initial placement of the dragged
-     element is cached during the drag, enhancing the drag performance.
-
-   * DDProxy no longer enforces having a single proxy element for all instances.
-     dragElId can be set in the config object in the constructor.  If the
-     element already exists it will use that element, otherwise a new one will
-     be created with that id.
-
-   * DDProxy->borderWidth has been removed. The value is calculated on the fly
-     instead.
-
-   * Added DragDrop->clearTicks and DragDrop->clearConstraints
-
-   * All drag and drop constructors now have an additional, optional parameter
-     call "config".  It is an object that can contain properties for a
-     number of configuration settings.
-
-   * Drag and drop will not be disabled for elements that cannot have their
-     location determined.
-
-   * isLegalTarget won't return dd objects that are not targetable.
-
-   * Added DragDrop->removeFromGroup.
-
-   * Constraints are now applied properly when determining which drag and drop
-     events should fire.
-
-
-0.10.0
-
-   * Improved the performance when in intersect mode
-
-   * It was possible for the drag and drop initialization to be skipped
-     for very slow loading pages.  This was fixed.
-
-   * New methods to exclude regions within your drag and drop element: 
-     addInvalidHandleId(), addInvalidHandleClass()
-
-   * Added an onAvailable handler that is executed after the initial state is set.
-
-   * Drag and drop is more forgiving when the implementer attempts to create the
-     instance prior to the element being in the document, but after the window
-     load event has fired.
-
diff --git a/lib/yui/dragdrop/dragdrop-debug.js b/lib/yui/dragdrop/dragdrop-debug.js
deleted file mode 100755 (executable)
index 8cdd977..0000000
+++ /dev/null
@@ -1,3587 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * The drag and drop utility provides a framework for building drag and drop
- * applications.  In addition to enabling drag and drop for specific elements,
- * the drag and drop elements are tracked by the manager class, and the
- * interactions between the various elements are tracked during the drag and
- * the implementing code is notified about these important moments.
- * @module dragdrop
- * @title Drag and Drop
- * @requires yahoo,dom,event
- * @namespace YAHOO.util
- */
-
-// Only load the library once.  Rewriting the manager class would orphan 
-// existing drag and drop instances.
-if (!YAHOO.util.DragDropMgr) {
-
-/**
- * DragDropMgr is a singleton that tracks the element interaction for 
- * all DragDrop items in the window.  Generally, you will not call 
- * this class directly, but it does have helper methods that could 
- * be useful in your DragDrop implementations.
- * @class DragDropMgr
- * @static
- */
-YAHOO.util.DragDropMgr = function() {
-
-    var Event = YAHOO.util.Event;
-
-    return {
-        /**
-         * Two dimensional Array of registered DragDrop objects.  The first 
-         * dimension is the DragDrop item group, the second the DragDrop 
-         * object.
-         * @property ids
-         * @type {string: string}
-         * @private
-         * @static
-         */
-        ids: {},
-
-        /**
-         * Array of element ids defined as drag handles.  Used to determine 
-         * if the element that generated the mousedown event is actually the 
-         * handle and not the html element itself.
-         * @property handleIds
-         * @type {string: string}
-         * @private
-         * @static
-         */
-        handleIds: {},
-
-        /**
-         * the DragDrop object that is currently being dragged
-         * @property dragCurrent
-         * @type DragDrop
-         * @private
-         * @static
-         **/
-        dragCurrent: null,
-
-        /**
-         * the DragDrop object(s) that are being hovered over
-         * @property dragOvers
-         * @type Array
-         * @private
-         * @static
-         */
-        dragOvers: {},
-
-        /**
-         * the X distance between the cursor and the object being dragged
-         * @property deltaX
-         * @type int
-         * @private
-         * @static
-         */
-        deltaX: 0,
-
-        /**
-         * the Y distance between the cursor and the object being dragged
-         * @property deltaY
-         * @type int
-         * @private
-         * @static
-         */
-        deltaY: 0,
-
-        /**
-         * Flag to determine if we should prevent the default behavior of the
-         * events we define. By default this is true, but this can be set to 
-         * false if you need the default behavior (not recommended)
-         * @property preventDefault
-         * @type boolean
-         * @static
-         */
-        preventDefault: true,
-
-        /**
-         * Flag to determine if we should stop the propagation of the events 
-         * we generate. This is true by default but you may want to set it to
-         * false if the html element contains other features that require the
-         * mouse click.
-         * @property stopPropagation
-         * @type boolean
-         * @static
-         */
-        stopPropagation: true,
-
-        /**
-         * Internal flag that is set to true when drag and drop has been
-         * initialized
-         * @property initialized
-         * @private
-         * @static
-         */
-        initialized: false,
-
-        /**
-         * All drag and drop can be disabled.
-         * @property locked
-         * @private
-         * @static
-         */
-        locked: false,
-
-        /**
-         * Provides additional information about the the current set of
-         * interactions.  Can be accessed from the event handlers. It
-         * contains the following properties:
-         *
-         *       out:       onDragOut interactions
-         *       enter:     onDragEnter interactions
-         *       over:      onDragOver interactions
-         *       drop:      onDragDrop interactions
-         *       point:     The location of the cursor
-         *       draggedRegion: The location of dragged element at the time
-         *                      of the interaction
-         *       sourceRegion: The location of the source elemtn at the time
-         *                     of the interaction
-         *       validDrop: boolean
-         * @property interactionInfo
-         * @type object
-         * @static
-         */
-        interactionInfo: null,
-
-        /**
-         * Called the first time an element is registered.
-         * @method init
-         * @private
-         * @static
-         */
-        init: function() {
-            this.initialized = true;
-        },
-
-        /**
-         * In point mode, drag and drop interaction is defined by the 
-         * location of the cursor during the drag/drop
-         * @property POINT
-         * @type int
-         * @static
-         * @final
-         */
-        POINT: 0,
-
-        /**
-         * In intersect mode, drag and drop interaction is defined by the 
-         * cursor position or the amount of overlap of two or more drag and 
-         * drop objects.
-         * @property INTERSECT
-         * @type int
-         * @static
-         * @final
-         */
-        INTERSECT: 1,
-
-        /**
-         * In intersect mode, drag and drop interaction is defined only by the 
-         * overlap of two or more drag and drop objects.
-         * @property STRICT_INTERSECT
-         * @type int
-         * @static
-         * @final
-         */
-        STRICT_INTERSECT: 2,
-
-        /**
-         * The current drag and drop mode.  Default: POINT
-         * @property mode
-         * @type int
-         * @static
-         */
-        mode: 0,
-
-        /**
-         * Runs method on all drag and drop objects
-         * @method _execOnAll
-         * @private
-         * @static
-         */
-        _execOnAll: function(sMethod, args) {
-            for (var i in this.ids) {
-                for (var j in this.ids[i]) {
-                    var oDD = this.ids[i][j];
-                    if (! this.isTypeOfDD(oDD)) {
-                        continue;
-                    }
-                    oDD[sMethod].apply(oDD, args);
-                }
-            }
-        },
-
-        /**
-         * Drag and drop initialization.  Sets up the global event handlers
-         * @method _onLoad
-         * @private
-         * @static
-         */
-        _onLoad: function() {
-
-            this.init();
-
-            YAHOO.log("DragDropMgr onload", "info", "DragDropMgr");
-
-            Event.on(document, "mouseup",   this.handleMouseUp, this, true);
-            Event.on(document, "mousemove", this.handleMouseMove, this, true);
-            Event.on(window,   "unload",    this._onUnload, this, true);
-            Event.on(window,   "resize",    this._onResize, this, true);
-            // Event.on(window,   "mouseout",    this._test);
-
-        },
-
-        /**
-         * Reset constraints on all drag and drop objs
-         * @method _onResize
-         * @private
-         * @static
-         */
-        _onResize: function(e) {
-            YAHOO.log("window resize", "info", "DragDropMgr");
-            this._execOnAll("resetConstraints", []);
-        },
-
-        /**
-         * Lock all drag and drop functionality
-         * @method lock
-         * @static
-         */
-        lock: function() { this.locked = true; },
-
-        /**
-         * Unlock all drag and drop functionality
-         * @method unlock
-         * @static
-         */
-        unlock: function() { this.locked = false; },
-
-        /**
-         * Is drag and drop locked?
-         * @method isLocked
-         * @return {boolean} True if drag and drop is locked, false otherwise.
-         * @static
-         */
-        isLocked: function() { return this.locked; },
-
-        /**
-         * Location cache that is set for all drag drop objects when a drag is
-         * initiated, cleared when the drag is finished.
-         * @property locationCache
-         * @private
-         * @static
-         */
-        locationCache: {},
-
-        /**
-         * Set useCache to false if you want to force object the lookup of each
-         * drag and drop linked element constantly during a drag.
-         * @property useCache
-         * @type boolean
-         * @static
-         */
-        useCache: true,
-
-        /**
-         * The number of pixels that the mouse needs to move after the 
-         * mousedown before the drag is initiated.  Default=3;
-         * @property clickPixelThresh
-         * @type int
-         * @static
-         */
-        clickPixelThresh: 3,
-
-        /**
-         * The number of milliseconds after the mousedown event to initiate the
-         * drag if we don't get a mouseup event. Default=1000
-         * @property clickTimeThresh
-         * @type int
-         * @static
-         */
-        clickTimeThresh: 1000,
-
-        /**
-         * Flag that indicates that either the drag pixel threshold or the 
-         * mousdown time threshold has been met
-         * @property dragThreshMet
-         * @type boolean
-         * @private
-         * @static
-         */
-        dragThreshMet: false,
-
-        /**
-         * Timeout used for the click time threshold
-         * @property clickTimeout
-         * @type Object
-         * @private
-         * @static
-         */
-        clickTimeout: null,
-
-        /**
-         * The X position of the mousedown event stored for later use when a 
-         * drag threshold is met.
-         * @property startX
-         * @type int
-         * @private
-         * @static
-         */
-        startX: 0,
-
-        /**
-         * The Y position of the mousedown event stored for later use when a 
-         * drag threshold is met.
-         * @property startY
-         * @type int
-         * @private
-         * @static
-         */
-        startY: 0,
-
-        /**
-         * Flag to determine if the drag event was fired from the click timeout and
-         * not the mouse move threshold.
-         * @property fromTimeout
-         * @type boolean
-         * @private
-         * @static
-         */
-        fromTimeout: false,
-
-        /**
-         * Each DragDrop instance must be registered with the DragDropMgr.  
-         * This is executed in DragDrop.init()
-         * @method regDragDrop
-         * @param {DragDrop} oDD the DragDrop object to register
-         * @param {String} sGroup the name of the group this element belongs to
-         * @static
-         */
-        regDragDrop: function(oDD, sGroup) {
-            if (!this.initialized) { this.init(); }
-            
-            if (!this.ids[sGroup]) {
-                this.ids[sGroup] = {};
-            }
-            this.ids[sGroup][oDD.id] = oDD;
-        },
-
-        /**
-         * Removes the supplied dd instance from the supplied group. Executed
-         * by DragDrop.removeFromGroup, so don't call this function directly.
-         * @method removeDDFromGroup
-         * @private
-         * @static
-         */
-        removeDDFromGroup: function(oDD, sGroup) {
-            if (!this.ids[sGroup]) {
-                this.ids[sGroup] = {};
-            }
-
-            var obj = this.ids[sGroup];
-            if (obj && obj[oDD.id]) {
-                delete obj[oDD.id];
-            }
-        },
-
-        /**
-         * Unregisters a drag and drop item.  This is executed in 
-         * DragDrop.unreg, use that method instead of calling this directly.
-         * @method _remove
-         * @private
-         * @static
-         */
-        _remove: function(oDD) {
-            for (var g in oDD.groups) {
-                if (g && this.ids[g][oDD.id]) {
-                    delete this.ids[g][oDD.id];
-                    //YAHOO.log("NEW LEN " + this.ids.length, "warn");
-                }
-            }
-            delete this.handleIds[oDD.id];
-        },
-
-        /**
-         * Each DragDrop handle element must be registered.  This is done
-         * automatically when executing DragDrop.setHandleElId()
-         * @method regHandle
-         * @param {String} sDDId the DragDrop id this element is a handle for
-         * @param {String} sHandleId the id of the element that is the drag 
-         * handle
-         * @static
-         */
-        regHandle: function(sDDId, sHandleId) {
-            if (!this.handleIds[sDDId]) {
-                this.handleIds[sDDId] = {};
-            }
-            this.handleIds[sDDId][sHandleId] = sHandleId;
-        },
-
-        /**
-         * Utility function to determine if a given element has been 
-         * registered as a drag drop item.
-         * @method isDragDrop
-         * @param {String} id the element id to check
-         * @return {boolean} true if this element is a DragDrop item, 
-         * false otherwise
-         * @static
-         */
-        isDragDrop: function(id) {
-            return ( this.getDDById(id) ) ? true : false;
-        },
-
-        /**
-         * Returns the drag and drop instances that are in all groups the
-         * passed in instance belongs to.
-         * @method getRelated
-         * @param {DragDrop} p_oDD the obj to get related data for
-         * @param {boolean} bTargetsOnly if true, only return targetable objs
-         * @return {DragDrop[]} the related instances
-         * @static
-         */
-        getRelated: function(p_oDD, bTargetsOnly) {
-            var oDDs = [];
-            for (var i in p_oDD.groups) {
-                for (var j in this.ids[i]) {
-                    var dd = this.ids[i][j];
-                    if (! this.isTypeOfDD(dd)) {
-                        continue;
-                    }
-                    if (!bTargetsOnly || dd.isTarget) {
-                        oDDs[oDDs.length] = dd;
-                    }
-                }
-            }
-
-            return oDDs;
-        },
-
-        /**
-         * Returns true if the specified dd target is a legal target for 
-         * the specifice drag obj
-         * @method isLegalTarget
-         * @param {DragDrop} the drag obj
-         * @param {DragDrop} the target
-         * @return {boolean} true if the target is a legal target for the 
-         * dd obj
-         * @static
-         */
-        isLegalTarget: function (oDD, oTargetDD) {
-            var targets = this.getRelated(oDD, true);
-            for (var i=0, len=targets.length;i<len;++i) {
-                if (targets[i].id == oTargetDD.id) {
-                    return true;
-                }
-            }
-
-            return false;
-        },
-
-        /**
-         * My goal is to be able to transparently determine if an object is
-         * typeof DragDrop, and the exact subclass of DragDrop.  typeof 
-         * returns "object", oDD.constructor.toString() always returns
-         * "DragDrop" and not the name of the subclass.  So for now it just
-         * evaluates a well-known variable in DragDrop.
-         * @method isTypeOfDD
-         * @param {Object} the object to evaluate
-         * @return {boolean} true if typeof oDD = DragDrop
-         * @static
-         */
-        isTypeOfDD: function (oDD) {
-            return (oDD && oDD.__ygDragDrop);
-        },
-
-        /**
-         * Utility function to determine if a given element has been 
-         * registered as a drag drop handle for the given Drag Drop object.
-         * @method isHandle
-         * @param {String} id the element id to check
-         * @return {boolean} true if this element is a DragDrop handle, false 
-         * otherwise
-         * @static
-         */
-        isHandle: function(sDDId, sHandleId) {
-            return ( this.handleIds[sDDId] && 
-                            this.handleIds[sDDId][sHandleId] );
-        },
-
-        /**
-         * Returns the DragDrop instance for a given id
-         * @method getDDById
-         * @param {String} id the id of the DragDrop object
-         * @return {DragDrop} the drag drop object, null if it is not found
-         * @static
-         */
-        getDDById: function(id) {
-            for (var i in this.ids) {
-                if (this.ids[i][id]) {
-                    return this.ids[i][id];
-                }
-            }
-            return null;
-        },
-
-        /**
-         * Fired after a registered DragDrop object gets the mousedown event.
-         * Sets up the events required to track the object being dragged
-         * @method handleMouseDown
-         * @param {Event} e the event
-         * @param oDD the DragDrop object being dragged
-         * @private
-         * @static
-         */
-        handleMouseDown: function(e, oDD) {
-
-            this.currentTarget = YAHOO.util.Event.getTarget(e);
-
-            this.dragCurrent = oDD;
-
-            var el = oDD.getEl();
-
-            // track start position
-            this.startX = YAHOO.util.Event.getPageX(e);
-            this.startY = YAHOO.util.Event.getPageY(e);
-
-            this.deltaX = this.startX - el.offsetLeft;
-            this.deltaY = this.startY - el.offsetTop;
-
-            this.dragThreshMet = false;
-
-            this.clickTimeout = setTimeout( 
-                    function() { 
-                        var DDM = YAHOO.util.DDM;
-                        DDM.startDrag(DDM.startX, DDM.startY);
-                        DDM.fromTimeout = true;
-                    }, 
-                    this.clickTimeThresh );
-        },
-
-        /**
-         * Fired when either the drag pixel threshol or the mousedown hold 
-         * time threshold has been met.
-         * @method startDrag
-         * @param x {int} the X position of the original mousedown
-         * @param y {int} the Y position of the original mousedown
-         * @static
-         */
-        startDrag: function(x, y) {
-            YAHOO.log("firing drag start events", "info", "DragDropMgr");
-            clearTimeout(this.clickTimeout);
-            var dc = this.dragCurrent;
-            if (dc && dc.events.b4StartDrag) {
-                dc.b4StartDrag(x, y);
-                dc.fireEvent('b4StartDragEvent', { x: x, y: y });
-            }
-            if (dc && dc.events.startDrag) {
-                dc.startDrag(x, y);
-                dc.fireEvent('startDragEvent', { x: x, y: y });
-            }
-            this.dragThreshMet = true;
-        },
-
-        /**
-         * Internal function to handle the mouseup event.  Will be invoked 
-         * from the context of the document.
-         * @method handleMouseUp
-         * @param {Event} e the event
-         * @private
-         * @static
-         */
-        handleMouseUp: function(e) {
-            if (this.dragCurrent) {
-                clearTimeout(this.clickTimeout);
-
-                if (this.dragThreshMet) {
-                    YAHOO.log("mouseup detected - completing drag", "info", "DragDropMgr");
-                    if (this.fromTimeout) {
-                        YAHOO.log('fromTimeout is true (mouse didn\'t move), call handleMouseMove so we can get the dragOver event', 'info', 'DragDropMgr');
-                        this.handleMouseMove(e);
-                    }
-                    this.fromTimeout = false;
-                    this.fireEvents(e, true);
-                } else {
-                    YAHOO.log("drag threshold not met", "info", "DragDropMgr");
-                }
-
-                this.stopDrag(e);
-
-                this.stopEvent(e);
-            }
-        },
-
-        /**
-         * Utility to stop event propagation and event default, if these 
-         * features are turned on.
-         * @method stopEvent
-         * @param {Event} e the event as returned by this.getEvent()
-         * @static
-         */
-        stopEvent: function(e) {
-            if (this.stopPropagation) {
-                YAHOO.util.Event.stopPropagation(e);
-            }
-
-            if (this.preventDefault) {
-                YAHOO.util.Event.preventDefault(e);
-            }
-        },
-
-        /** 
-         * Ends the current drag, cleans up the state, and fires the endDrag
-         * and mouseUp events.  Called internally when a mouseup is detected
-         * during the drag.  Can be fired manually during the drag by passing
-         * either another event (such as the mousemove event received in onDrag)
-         * or a fake event with pageX and pageY defined (so that endDrag and
-         * onMouseUp have usable position data.).  Alternatively, pass true
-         * for the silent parameter so that the endDrag and onMouseUp events
-         * are skipped (so no event data is needed.)
-         *
-         * @method stopDrag
-         * @param {Event} e the mouseup event, another event (or a fake event) 
-         *                  with pageX and pageY defined, or nothing if the 
-         *                  silent parameter is true
-         * @param {boolean} silent skips the enddrag and mouseup events if true
-         * @static
-         */
-        stopDrag: function(e, silent) {
-            // YAHOO.log("mouseup - removing event handlers");
-            var dc = this.dragCurrent;
-            // Fire the drag end event for the item that was dragged
-            if (dc && !silent) {
-                if (this.dragThreshMet) {
-                    YAHOO.log("firing endDrag events", "info", "DragDropMgr");
-                    if (dc.events.b4EndDrag) {
-                        dc.b4EndDrag(e);
-                        dc.fireEvent('b4EndDragEvent', { e: e });
-                    }
-                    if (dc.events.endDrag) {
-                        dc.endDrag(e);
-                        dc.fireEvent('endDragEvent', { e: e });
-                    }
-                }
-                if (dc.events.mouseUp) {
-                    YAHOO.log("firing dragdrop onMouseUp event", "info", "DragDropMgr");
-                    dc.onMouseUp(e);
-                    dc.fireEvent('mouseUpEvent', { e: e });
-                }
-            }
-
-            this.dragCurrent = null;
-            this.dragOvers = {};
-        },
-
-        /** 
-         * Internal function to handle the mousemove event.  Will be invoked 
-         * from the context of the html element.
-         *
-         * @TODO figure out what we can do about mouse events lost when the 
-         * user drags objects beyond the window boundary.  Currently we can 
-         * detect this in internet explorer by verifying that the mouse is 
-         * down during the mousemove event.  Firefox doesn't give us the 
-         * button state on the mousemove event.
-         * @method handleMouseMove
-         * @param {Event} e the event
-         * @private
-         * @static
-         */
-        handleMouseMove: function(e) {
-            //YAHOO.log("handlemousemove");
-            
-            var dc = this.dragCurrent;
-            if (dc) {
-                // YAHOO.log("no current drag obj");
-
-                // var button = e.which || e.button;
-                // YAHOO.log("which: " + e.which + ", button: "+ e.button);
-
-                // check for IE mouseup outside of page boundary
-                if (YAHOO.util.Event.isIE && !e.button) {
-                    YAHOO.log("button failure", "info", "DragDropMgr");
-                    this.stopEvent(e);
-                    return this.handleMouseUp(e);
-                } else {
-                    if (e.clientX < 0 || e.clientY < 0) {
-                        //This will stop the element from leaving the viewport in FF, Opera & Safari
-                        //Not turned on yet
-                        //YAHOO.log("Either clientX or clientY is negative, stop the event.", "info", "DragDropMgr");
-                        //this.stopEvent(e);
-                        //return false;
-                    }
-                }
-
-                if (!this.dragThreshMet) {
-                    var diffX = Math.abs(this.startX - YAHOO.util.Event.getPageX(e));
-                    var diffY = Math.abs(this.startY - YAHOO.util.Event.getPageY(e));
-                    // YAHOO.log("diffX: " + diffX + "diffY: " + diffY);
-                    if (diffX > this.clickPixelThresh || 
-                                diffY > this.clickPixelThresh) {
-                        YAHOO.log("pixel threshold met", "info", "DragDropMgr");
-                        this.startDrag(this.startX, this.startY);
-                    }
-                }
-
-                if (this.dragThreshMet) {
-                    if (dc && dc.events.b4Drag) {
-                        dc.b4Drag(e);
-                        dc.fireEvent('b4DragEvent', { e: e});
-                    }
-                    if (dc && dc.events.drag) {
-                        dc.onDrag(e);
-                        dc.fireEvent('dragEvent', { e: e});
-                    }
-                    if (dc) {
-                        this.fireEvents(e, false);
-                    }
-                }
-
-                this.stopEvent(e);
-            }
-        },
-        
-        /**
-         * Iterates over all of the DragDrop elements to find ones we are 
-         * hovering over or dropping on
-         * @method fireEvents
-         * @param {Event} e the event
-         * @param {boolean} isDrop is this a drop op or a mouseover op?
-         * @private
-         * @static
-         */
-        fireEvents: function(e, isDrop) {
-            var dc = this.dragCurrent;
-
-            // If the user did the mouse up outside of the window, we could 
-            // get here even though we have ended the drag.
-            // If the config option dragOnly is true, bail out and don't fire the events
-            if (!dc || dc.isLocked() || dc.dragOnly) {
-                return;
-            }
-
-            var x = YAHOO.util.Event.getPageX(e),
-                y = YAHOO.util.Event.getPageY(e),
-                pt = new YAHOO.util.Point(x,y),
-                pos = dc.getTargetCoord(pt.x, pt.y),
-                el = dc.getDragEl(),
-                events = ['out', 'over', 'drop', 'enter'],
-                curRegion = new YAHOO.util.Region( pos.y, 
-                                               pos.x + el.offsetWidth,
-                                               pos.y + el.offsetHeight, 
-                                               pos.x ),
-            
-                oldOvers = [], // cache the previous dragOver array
-                inGroupsObj  = {},
-                inGroups  = [],
-                data = {
-                    outEvts: [],
-                    overEvts: [],
-                    dropEvts: [],
-                    enterEvts: []
-                };
-
-
-            // Check to see if the object(s) we were hovering over is no longer 
-            // being hovered over so we can fire the onDragOut event
-            for (var i in this.dragOvers) {
-
-                var ddo = this.dragOvers[i];
-
-                if (! this.isTypeOfDD(ddo)) {
-                    continue;
-                }
-                if (! this.isOverTarget(pt, ddo, this.mode, curRegion)) {
-                    data.outEvts.push( ddo );
-                }
-
-                oldOvers[i] = true;
-                delete this.dragOvers[i];
-            }
-
-            for (var sGroup in dc.groups) {
-                // YAHOO.log("Processing group " + sGroup);
-                
-                if ("string" != typeof sGroup) {
-                    continue;
-                }
-
-                for (i in this.ids[sGroup]) {
-                    var oDD = this.ids[sGroup][i];
-                    if (! this.isTypeOfDD(oDD)) {
-                        continue;
-                    }
-
-                    if (oDD.isTarget && !oDD.isLocked() && oDD != dc) {
-                        if (this.isOverTarget(pt, oDD, this.mode, curRegion)) {
-                            inGroupsObj[sGroup] = true;
-                            // look for drop interactions
-                            if (isDrop) {
-                                data.dropEvts.push( oDD );
-                            // look for drag enter and drag over interactions
-                            } else {
-
-                                // initial drag over: dragEnter fires
-                                if (!oldOvers[oDD.id]) {
-                                    data.enterEvts.push( oDD );
-                                // subsequent drag overs: dragOver fires
-                                } else {
-                                    data.overEvts.push( oDD );
-                                }
-
-                                this.dragOvers[oDD.id] = oDD;
-                            }
-                        }
-                    }
-                }
-            }
-
-            this.interactionInfo = {
-                out:       data.outEvts,
-                enter:     data.enterEvts,
-                over:      data.overEvts,
-                drop:      data.dropEvts,
-                point:     pt,
-                draggedRegion:    curRegion,
-                sourceRegion: this.locationCache[dc.id],
-                validDrop: isDrop
-            };
-
-            
-            for (var inG in inGroupsObj) {
-                inGroups.push(inG);
-            }
-
-            // notify about a drop that did not find a target
-            if (isDrop && !data.dropEvts.length) {
-                YAHOO.log(dc.id + " dropped, but not on a target", "info", "DragDropMgr");
-                this.interactionInfo.validDrop = false;
-                if (dc.events.invalidDrop) {
-                    dc.onInvalidDrop(e);
-                    dc.fireEvent('invalidDropEvent', { e: e });
-                }
-            }
-
-            for (i = 0; i < events.length; i++) {
-                var tmp = null;
-                if (data[events[i] + 'Evts']) {
-                    tmp = data[events[i] + 'Evts'];
-                }
-                if (tmp && tmp.length) {
-                    var type = events[i].charAt(0).toUpperCase() + events[i].substr(1),
-                        ev = 'onDrag' + type,
-                        b4 = 'b4Drag' + type,
-                        cev = 'drag' + type + 'Event',
-                        check = 'drag' + type;
-                    
-                    if (this.mode) {
-                        YAHOO.log(dc.id + ' ' + ev + ': ' + tmp, "info", "DragDropMgr");
-                        if (dc.events[b4]) {
-                            dc[b4](e, tmp, inGroups);
-                            dc.fireEvent(b4 + 'Event', { event: e, info: tmp, group: inGroups });
-                        }
-                        if (dc.events[check]) {
-                            dc[ev](e, tmp, inGroups);
-                            dc.fireEvent(cev, { event: e, info: tmp, group: inGroups });
-                        }
-                    } else {
-                        for (var b = 0, len = tmp.length; b < len; ++b) {
-                            YAHOO.log(dc.id + ' ' + ev + ': ' + tmp[b].id, "info", "DragDropMgr");
-                            if (dc.events[b4]) {
-                                dc[b4](e, tmp[b].id, inGroups[0]);
-                                dc.fireEvent(b4 + 'Event', { event: e, info: tmp[b].id, group: inGroups[0] });
-                            }
-                            if (dc.events[check]) {
-                                dc[ev](e, tmp[b].id, inGroups[0]);
-                                dc.fireEvent(cev, { event: e, info: tmp[b].id, group: inGroups[0] });
-                            }
-                        }
-                    }
-                }
-            }
-        },
-
-        /**
-         * Helper function for getting the best match from the list of drag 
-         * and drop objects returned by the drag and drop events when we are 
-         * in INTERSECT mode.  It returns either the first object that the 
-         * cursor is over, or the object that has the greatest overlap with 
-         * the dragged element.
-         * @method getBestMatch
-         * @param  {DragDrop[]} dds The array of drag and drop objects 
-         * targeted
-         * @return {DragDrop}       The best single match
-         * @static
-         */
-        getBestMatch: function(dds) {
-            var winner = null;
-
-            var len = dds.length;
-
-            if (len == 1) {
-                winner = dds[0];
-            } else {
-                // Loop through the targeted items
-                for (var i=0; i<len; ++i) {
-                    var dd = dds[i];
-                    // If the cursor is over the object, it wins.  If the 
-                    // cursor is over multiple matches, the first one we come
-                    // to wins.
-                    if (this.mode == this.INTERSECT && dd.cursorIsOver) {
-                        winner = dd;
-                        break;
-                    // Otherwise the object with the most overlap wins
-                    } else {
-                        if (!winner || !winner.overlap || (dd.overlap &&
-                            winner.overlap.getArea() < dd.overlap.getArea())) {
-                            winner = dd;
-                        }
-                    }
-                }
-            }
-
-            return winner;
-        },
-
-        /**
-         * Refreshes the cache of the top-left and bottom-right points of the 
-         * drag and drop objects in the specified group(s).  This is in the
-         * format that is stored in the drag and drop instance, so typical 
-         * usage is:
-         * <code>
-         * YAHOO.util.DragDropMgr.refreshCache(ddinstance.groups);
-         * </code>
-         * Alternatively:
-         * <code>
-         * YAHOO.util.DragDropMgr.refreshCache({group1:true, group2:true});
-         * </code>
-         * @TODO this really should be an indexed array.  Alternatively this
-         * method could accept both.
-         * @method refreshCache
-         * @param {Object} groups an associative array of groups to refresh
-         * @static
-         */
-        refreshCache: function(groups) {
-            YAHOO.log("refreshing element location cache", "info", "DragDropMgr");
-
-            // refresh everything if group array is not provided
-            var g = groups || this.ids;
-
-            for (var sGroup in g) {
-                if ("string" != typeof sGroup) {
-                    continue;
-                }
-                for (var i in this.ids[sGroup]) {
-                    var oDD = this.ids[sGroup][i];
-
-                    if (this.isTypeOfDD(oDD)) {
-                        var loc = this.getLocation(oDD);
-                        if (loc) {
-                            this.locationCache[oDD.id] = loc;
-                        } else {
-                            delete this.locationCache[oDD.id];
-YAHOO.log("Could not get the loc for " + oDD.id, "warn", "DragDropMgr");
-                        }
-                    }
-                }
-            }
-        },
-
-        /**
-         * This checks to make sure an element exists and is in the DOM.  The
-         * main purpose is to handle cases where innerHTML is used to remove
-         * drag and drop objects from the DOM.  IE provides an 'unspecified
-         * error' when trying to access the offsetParent of such an element
-         * @method verifyEl
-         * @param {HTMLElement} el the element to check
-         * @return {boolean} true if the element looks usable
-         * @static
-         */
-        verifyEl: function(el) {
-            try {
-                if (el) {
-                    var parent = el.offsetParent;
-                    if (parent) {
-                        return true;
-                    }
-                }
-            } catch(e) {
-                YAHOO.log("detected problem with an element", "info", "DragDropMgr");
-            }
-
-            return false;
-        },
-        
-        /**
-         * Returns a Region object containing the drag and drop element's position
-         * and size, including the padding configured for it
-         * @method getLocation
-         * @param {DragDrop} oDD the drag and drop object to get the 
-         *                       location for
-         * @return {YAHOO.util.Region} a Region object representing the total area
-         *                             the element occupies, including any padding
-         *                             the instance is configured for.
-         * @static
-         */
-        getLocation: function(oDD) {
-            if (! this.isTypeOfDD(oDD)) {
-                YAHOO.log(oDD + " is not a DD obj", "info", "DragDropMgr");
-                return null;
-            }
-
-            var el = oDD.getEl(), pos, x1, x2, y1, y2, t, r, b, l;
-
-            try {
-                pos= YAHOO.util.Dom.getXY(el);
-            } catch (e) { }
-
-            if (!pos) {
-                YAHOO.log("getXY failed", "info", "DragDropMgr");
-                return null;
-            }
-
-            x1 = pos[0];
-            x2 = x1 + el.offsetWidth;
-            y1 = pos[1];
-            y2 = y1 + el.offsetHeight;
-
-            t = y1 - oDD.padding[0];
-            r = x2 + oDD.padding[1];
-            b = y2 + oDD.padding[2];
-            l = x1 - oDD.padding[3];
-
-            return new YAHOO.util.Region( t, r, b, l );
-        },
-
-        /**
-         * Checks the cursor location to see if it over the target
-         * @method isOverTarget
-         * @param {YAHOO.util.Point} pt The point to evaluate
-         * @param {DragDrop} oTarget the DragDrop object we are inspecting
-         * @param {boolean} intersect true if we are in intersect mode
-         * @param {YAHOO.util.Region} pre-cached location of the dragged element
-         * @return {boolean} true if the mouse is over the target
-         * @private
-         * @static
-         */
-        isOverTarget: function(pt, oTarget, intersect, curRegion) {
-            // use cache if available
-            var loc = this.locationCache[oTarget.id];
-            if (!loc || !this.useCache) {
-                YAHOO.log("cache not populated", "info", "DragDropMgr");
-                loc = this.getLocation(oTarget);
-                this.locationCache[oTarget.id] = loc;
-
-                YAHOO.log("cache: " + loc, "info", "DragDropMgr");
-            }
-
-            if (!loc) {
-                YAHOO.log("could not get the location of the element", "info", "DragDropMgr");
-                return false;
-            }
-
-            //YAHOO.log("loc: " + loc + ", pt: " + pt);
-            oTarget.cursorIsOver = loc.contains( pt );
-
-            // DragDrop is using this as a sanity check for the initial mousedown
-            // in this case we are done.  In POINT mode, if the drag obj has no
-            // contraints, we are done. Otherwise we need to evaluate the 
-            // region the target as occupies to determine if the dragged element
-            // overlaps with it.
-            
-            var dc = this.dragCurrent;
-            if (!dc || (!intersect && !dc.constrainX && !dc.constrainY)) {
-
-                //if (oTarget.cursorIsOver) {
-                    //YAHOO.log("over " + oTarget + ", " + loc + ", " + pt, "warn");
-                //}
-                return oTarget.cursorIsOver;
-            }
-
-            oTarget.overlap = null;
-
-            // Get the current location of the drag element, this is the
-            // location of the mouse event less the delta that represents
-            // where the original mousedown happened on the element.  We
-            // need to consider constraints and ticks as well.
-
-            if (!curRegion) {
-                var pos = dc.getTargetCoord(pt.x, pt.y);
-                var el = dc.getDragEl();
-                curRegion = new YAHOO.util.Region( pos.y, 
-                                                   pos.x + el.offsetWidth,
-                                                   pos.y + el.offsetHeight, 
-                                                   pos.x );
-            }
-
-            var overlap = curRegion.intersect(loc);
-
-            if (overlap) {
-                oTarget.overlap = overlap;
-                return (intersect) ? true : oTarget.cursorIsOver;
-            } else {
-                return false;
-            }
-        },
-
-        /**
-         * unload event handler
-         * @method _onUnload
-         * @private
-         * @static
-         */
-        _onUnload: function(e, me) {
-            this.unregAll();
-        },
-
-        /**
-         * Cleans up the drag and drop events and objects.
-         * @method unregAll
-         * @private
-         * @static
-         */
-        unregAll: function() {
-            YAHOO.log("unregister all", "info", "DragDropMgr");
-
-            if (this.dragCurrent) {
-                this.stopDrag();
-                this.dragCurrent = null;
-            }
-
-            this._execOnAll("unreg", []);
-
-            //for (var i in this.elementCache) {
-                //delete this.elementCache[i];
-            //}
-            //this.elementCache = {};
-
-            this.ids = {};
-        },
-
-        /**
-         * A cache of DOM elements
-         * @property elementCache
-         * @private
-         * @static
-         * @deprecated elements are not cached now
-         */
-        elementCache: {},
-        
-        /**
-         * Get the wrapper for the DOM element specified
-         * @method getElWrapper
-         * @param {String} id the id of the element to get
-         * @return {YAHOO.util.DDM.ElementWrapper} the wrapped element
-         * @private
-         * @deprecated This wrapper isn't that useful
-         * @static
-         */
-        getElWrapper: function(id) {
-            var oWrapper = this.elementCache[id];
-            if (!oWrapper || !oWrapper.el) {
-                oWrapper = this.elementCache[id] = 
-                    new this.ElementWrapper(YAHOO.util.Dom.get(id));
-            }
-            return oWrapper;
-        },
-
-        /**
-         * Returns the actual DOM element
-         * @method getElement
-         * @param {String} id the id of the elment to get
-         * @return {Object} The element
-         * @deprecated use YAHOO.util.Dom.get instead
-         * @static
-         */
-        getElement: function(id) {
-            return YAHOO.util.Dom.get(id);
-        },
-        
-        /**
-         * Returns the style property for the DOM element (i.e., 
-         * document.getElById(id).style)
-         * @method getCss
-         * @param {String} id the id of the elment to get
-         * @return {Object} The style property of the element
-         * @deprecated use YAHOO.util.Dom instead
-         * @static
-         */
-        getCss: function(id) {
-            var el = YAHOO.util.Dom.get(id);
-            return (el) ? el.style : null;
-        },
-
-        /**
-         * Inner class for cached elements
-         * @class DragDropMgr.ElementWrapper
-         * @for DragDropMgr
-         * @private
-         * @deprecated
-         */
-        ElementWrapper: function(el) {
-                /**
-                 * The element
-                 * @property el
-                 */
-                this.el = el || null;
-                /**
-                 * The element id
-                 * @property id
-                 */
-                this.id = this.el && el.id;
-                /**
-                 * A reference to the style property
-                 * @property css
-                 */
-                this.css = this.el && el.style;
-            },
-
-        /**
-         * Returns the X position of an html element
-         * @method getPosX
-         * @param el the element for which to get the position
-         * @return {int} the X coordinate
-         * @for DragDropMgr
-         * @deprecated use YAHOO.util.Dom.getX instead
-         * @static
-         */
-        getPosX: function(el) {
-            return YAHOO.util.Dom.getX(el);
-        },
-
-        /**
-         * Returns the Y position of an html element
-         * @method getPosY
-         * @param el the element for which to get the position
-         * @return {int} the Y coordinate
-         * @deprecated use YAHOO.util.Dom.getY instead
-         * @static
-         */
-        getPosY: function(el) {
-            return YAHOO.util.Dom.getY(el); 
-        },
-
-        /**
-         * Swap two nodes.  In IE, we use the native method, for others we 
-         * emulate the IE behavior
-         * @method swapNode
-         * @param n1 the first node to swap
-         * @param n2 the other node to swap
-         * @static
-         */
-        swapNode: function(n1, n2) {
-            if (n1.swapNode) {
-                n1.swapNode(n2);
-            } else {
-                var p = n2.parentNode;
-                var s = n2.nextSibling;
-
-                if (s == n1) {
-                    p.insertBefore(n1, n2);
-                } else if (n2 == n1.nextSibling) {
-                    p.insertBefore(n2, n1);
-                } else {
-                    n1.parentNode.replaceChild(n2, n1);
-                    p.insertBefore(n1, s);
-                }
-            }
-        },
-
-        /**
-         * Returns the current scroll position
-         * @method getScroll
-         * @private
-         * @static
-         */
-        getScroll: function () {
-            var t, l, dde=document.documentElement, db=document.body;
-            if (dde && (dde.scrollTop || dde.scrollLeft)) {
-                t = dde.scrollTop;
-                l = dde.scrollLeft;
-            } else if (db) {
-                t = db.scrollTop;
-                l = db.scrollLeft;
-            } else {
-                YAHOO.log("could not get scroll property", "info", "DragDropMgr");
-            }
-            return { top: t, left: l };
-        },
-
-        /**
-         * Returns the specified element style property
-         * @method getStyle
-         * @param {HTMLElement} el          the element
-         * @param {string}      styleProp   the style property
-         * @return {string} The value of the style property
-         * @deprecated use YAHOO.util.Dom.getStyle
-         * @static
-         */
-        getStyle: function(el, styleProp) {
-            return YAHOO.util.Dom.getStyle(el, styleProp);
-        },
-
-        /**
-         * Gets the scrollTop
-         * @method getScrollTop
-         * @return {int} the document's scrollTop
-         * @static
-         */
-        getScrollTop: function () { return this.getScroll().top; },
-
-        /**
-         * Gets the scrollLeft
-         * @method getScrollLeft
-         * @return {int} the document's scrollTop
-         * @static
-         */
-        getScrollLeft: function () { return this.getScroll().left; },
-
-        /**
-         * Sets the x/y position of an element to the location of the
-         * target element.
-         * @method moveToEl
-         * @param {HTMLElement} moveEl      The element to move
-         * @param {HTMLElement} targetEl    The position reference element
-         * @static
-         */
-        moveToEl: function (moveEl, targetEl) {
-            var aCoord = YAHOO.util.Dom.getXY(targetEl);
-            YAHOO.log("moveToEl: " + aCoord, "info", "DragDropMgr");
-            YAHOO.util.Dom.setXY(moveEl, aCoord);
-        },
-
-        /**
-         * Gets the client height
-         * @method getClientHeight
-         * @return {int} client height in px
-         * @deprecated use YAHOO.util.Dom.getViewportHeight instead
-         * @static
-         */
-        getClientHeight: function() {
-            return YAHOO.util.Dom.getViewportHeight();
-        },
-
-        /**
-         * Gets the client width
-         * @method getClientWidth
-         * @return {int} client width in px
-         * @deprecated use YAHOO.util.Dom.getViewportWidth instead
-         * @static
-         */
-        getClientWidth: function() {
-            return YAHOO.util.Dom.getViewportWidth();
-        },
-
-        /**
-         * Numeric array sort function
-         * @method numericSort
-         * @static
-         */
-        numericSort: function(a, b) { return (a - b); },
-
-        /**
-         * Internal counter
-         * @property _timeoutCount
-         * @private
-         * @static
-         */
-        _timeoutCount: 0,
-
-        /**
-         * Trying to make the load order less important.  Without this we get
-         * an error if this file is loaded before the Event Utility.
-         * @method _addListeners
-         * @private
-         * @static
-         */
-        _addListeners: function() {
-            var DDM = YAHOO.util.DDM;
-            if ( YAHOO.util.Event && document ) {
-                DDM._onLoad();
-            } else {
-                if (DDM._timeoutCount > 2000) {
-                    YAHOO.log("DragDrop requires the Event Utility", "error", "DragDropMgr");
-                } else {
-                    setTimeout(DDM._addListeners, 10);
-                    if (document && document.body) {
-                        DDM._timeoutCount += 1;
-                    }
-                }
-            }
-        },
-
-        /**
-         * Recursively searches the immediate parent and all child nodes for 
-         * the handle element in order to determine wheter or not it was 
-         * clicked.
-         * @method handleWasClicked
-         * @param node the html element to inspect
-         * @static
-         */
-        handleWasClicked: function(node, id) {
-            if (this.isHandle(id, node.id)) {
-                YAHOO.log("clicked node is a handle", "info", "DragDropMgr");
-                return true;
-            } else {
-                // check to see if this is a text node child of the one we want
-                var p = node.parentNode;
-                // YAHOO.log("p: " + p);
-
-                while (p) {
-                    if (this.isHandle(id, p.id)) {
-                        return true;
-                    } else {
-                        YAHOO.log(p.id + " is not a handle", "info", "DragDropMgr");
-                        p = p.parentNode;
-                    }
-                }
-            }
-
-            return false;
-        }
-
-    };
-
-}();
-
-// shorter alias, save a few bytes
-YAHOO.util.DDM = YAHOO.util.DragDropMgr;
-YAHOO.util.DDM._addListeners();
-
-}
-
-(function() {
-
-var Event=YAHOO.util.Event; 
-var Dom=YAHOO.util.Dom;
-
-/**
- * Defines the interface and base operation of items that that can be 
- * dragged or can be drop targets.  It was designed to be extended, overriding
- * the event handlers for startDrag, onDrag, onDragOver, onDragOut.
- * Up to three html elements can be associated with a DragDrop instance:
- * <ul>
- * <li>linked element: the element that is passed into the constructor.
- * This is the element which defines the boundaries for interaction with 
- * other DragDrop objects.</li>
- * <li>handle element(s): The drag operation only occurs if the element that 
- * was clicked matches a handle element.  By default this is the linked 
- * element, but there are times that you will want only a portion of the 
- * linked element to initiate the drag operation, and the setHandleElId() 
- * method provides a way to define this.</li>
- * <li>drag element: this represents an the element that would be moved along
- * with the cursor during a drag operation.  By default, this is the linked
- * element itself as in {@link YAHOO.util.DD}.  setDragElId() lets you define
- * a separate element that would be moved, as in {@link YAHOO.util.DDProxy}
- * </li>
- * </ul>
- * This class should not be instantiated until the onload event to ensure that
- * the associated elements are available.
- * The following would define a DragDrop obj that would interact with any 
- * other DragDrop obj in the "group1" group:
- * <pre>
- *  dd = new YAHOO.util.DragDrop("div1", "group1");
- * </pre>
- * Since none of the event handlers have been implemented, nothing would 
- * actually happen if you were to run the code above.  Normally you would 
- * override this class or one of the default implementations, but you can 
- * also override the methods you want on an instance of the class...
- * <pre>
- *  dd.onDragDrop = function(e, id) {
- *  &nbsp;&nbsp;alert("dd was dropped on " + id);
- *  }
- * </pre>
- * @namespace YAHOO.util
- * @class DragDrop
- * @constructor
- * @param {String} id of the element that is linked to this instance
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- *                Valid properties for DragDrop: 
- *                    padding, isTarget, maintainOffset, primaryButtonOnly,
- */
-YAHOO.util.DragDrop = function(id, sGroup, config) {
-    if (id) {
-        this.init(id, sGroup, config); 
-    }
-};
-
-YAHOO.util.DragDrop.prototype = {
-    /**
-     * An Object Literal containing the events that we will be using: mouseDown, b4MouseDown, mouseUp, b4StartDrag, startDrag, b4EndDrag, endDrag, mouseUp, drag, b4Drag, invalidDrop, b4DragOut, dragOut, dragEnter, b4DragOver, dragOver, b4DragDrop, dragDrop
-     * By setting any of these to false, then event will not be fired.
-     * @property events
-     * @type object
-     */
-    events: null,
-    /**
-    * @method on
-    * @description Shortcut for EventProvider.subscribe, see <a href="YAHOO.util.EventProvider.html#subscribe">YAHOO.util.EventProvider.subscribe</a>
-    */
-    on: function() {
-        this.subscribe.apply(this, arguments);
-    },
-    /**
-     * The id of the element associated with this object.  This is what we 
-     * refer to as the "linked element" because the size and position of 
-     * this element is used to determine when the drag and drop objects have 
-     * interacted.
-     * @property id
-     * @type String
-     */
-    id: null,
-
-    /**
-     * Configuration attributes passed into the constructor
-     * @property config
-     * @type object
-     */
-    config: null,
-
-    /**
-     * The id of the element that will be dragged.  By default this is same 
-     * as the linked element , but could be changed to another element. Ex: 
-     * YAHOO.util.DDProxy
-     * @property dragElId
-     * @type String
-     * @private
-     */
-    dragElId: null, 
-
-    /**
-     * the id of the element that initiates the drag operation.  By default 
-     * this is the linked element, but could be changed to be a child of this
-     * element.  This lets us do things like only starting the drag when the 
-     * header element within the linked html element is clicked.
-     * @property handleElId
-     * @type String
-     * @private
-     */
-    handleElId: null, 
-
-    /**
-     * An associative array of HTML tags that will be ignored if clicked.
-     * @property invalidHandleTypes
-     * @type {string: string}
-     */
-    invalidHandleTypes: null, 
-
-    /**
-     * An associative array of ids for elements that will be ignored if clicked
-     * @property invalidHandleIds
-     * @type {string: string}
-     */
-    invalidHandleIds: null, 
-
-    /**
-     * An indexted array of css class names for elements that will be ignored
-     * if clicked.
-     * @property invalidHandleClasses
-     * @type string[]
-     */
-    invalidHandleClasses: null, 
-
-    /**
-     * The linked element's absolute X position at the time the drag was 
-     * started
-     * @property startPageX
-     * @type int
-     * @private
-     */
-    startPageX: 0,
-
-    /**
-     * The linked element's absolute X position at the time the drag was 
-     * started
-     * @property startPageY
-     * @type int
-     * @private
-     */
-    startPageY: 0,
-
-    /**
-     * The group defines a logical collection of DragDrop objects that are 
-     * related.  Instances only get events when interacting with other 
-     * DragDrop object in the same group.  This lets us define multiple 
-     * groups using a single DragDrop subclass if we want.
-     * @property groups
-     * @type {string: string}
-     */
-    groups: null,
-
-    /**
-     * Individual drag/drop instances can be locked.  This will prevent 
-     * onmousedown start drag.
-     * @property locked
-     * @type boolean
-     * @private
-     */
-    locked: false,
-
-    /**
-     * Lock this instance
-     * @method lock
-     */
-    lock: function() { this.locked = true; },
-
-    /**
-     * Unlock this instace
-     * @method unlock
-     */
-    unlock: function() { this.locked = false; },
-
-    /**
-     * By default, all instances can be a drop target.  This can be disabled by
-     * setting isTarget to false.
-     * @property isTarget
-     * @type boolean
-     */
-    isTarget: true,
-
-    /**
-     * The padding configured for this drag and drop object for calculating
-     * the drop zone intersection with this object.
-     * @property padding
-     * @type int[]
-     */
-    padding: null,
-    /**
-     * If this flag is true, do not fire drop events. The element is a drag only element (for movement not dropping)
-     * @property dragOnly
-     * @type Boolean
-     */
-    dragOnly: false,
-
-    /**
-     * Cached reference to the linked element
-     * @property _domRef
-     * @private
-     */
-    _domRef: null,
-
-    /**
-     * Internal typeof flag
-     * @property __ygDragDrop
-     * @private
-     */
-    __ygDragDrop: true,
-
-    /**
-     * Set to true when horizontal contraints are applied
-     * @property constrainX
-     * @type boolean
-     * @private
-     */
-    constrainX: false,
-
-    /**
-     * Set to true when vertical contraints are applied
-     * @property constrainY
-     * @type boolean
-     * @private
-     */
-    constrainY: false,
-
-    /**
-     * The left constraint
-     * @property minX
-     * @type int
-     * @private
-     */
-    minX: 0,
-
-    /**
-     * The right constraint
-     * @property maxX
-     * @type int
-     * @private
-     */
-    maxX: 0,
-
-    /**
-     * The up constraint 
-     * @property minY
-     * @type int
-     * @type int
-     * @private
-     */
-    minY: 0,
-
-    /**
-     * The down constraint 
-     * @property maxY
-     * @type int
-     * @private
-     */
-    maxY: 0,
-
-    /**
-     * The difference between the click position and the source element's location
-     * @property deltaX
-     * @type int
-     * @private
-     */
-    deltaX: 0,
-
-    /**
-     * The difference between the click position and the source element's location
-     * @property deltaY
-     * @type int
-     * @private
-     */
-    deltaY: 0,
-
-    /**
-     * Maintain offsets when we resetconstraints.  Set to true when you want
-     * the position of the element relative to its parent to stay the same
-     * when the page changes
-     *
-     * @property maintainOffset
-     * @type boolean
-     */
-    maintainOffset: false,
-
-    /**
-     * Array of pixel locations the element will snap to if we specified a 
-     * horizontal graduation/interval.  This array is generated automatically
-     * when you define a tick interval.
-     * @property xTicks
-     * @type int[]
-     */
-    xTicks: null,
-
-    /**
-     * Array of pixel locations the element will snap to if we specified a 
-     * vertical graduation/interval.  This array is generated automatically 
-     * when you define a tick interval.
-     * @property yTicks
-     * @type int[]
-     */
-    yTicks: null,
-
-    /**
-     * By default the drag and drop instance will only respond to the primary
-     * button click (left button for a right-handed mouse).  Set to true to
-     * allow drag and drop to start with any mouse click that is propogated
-     * by the browser
-     * @property primaryButtonOnly
-     * @type boolean
-     */
-    primaryButtonOnly: true,
-
-    /**
-     * The availabe property is false until the linked dom element is accessible.
-     * @property available
-     * @type boolean
-     */
-    available: false,
-
-    /**
-     * By default, drags can only be initiated if the mousedown occurs in the
-     * region the linked element is.  This is done in part to work around a
-     * bug in some browsers that mis-report the mousedown if the previous
-     * mouseup happened outside of the window.  This property is set to true
-     * if outer handles are defined.
-     *
-     * @property hasOuterHandles
-     * @type boolean
-     * @default false
-     */
-    hasOuterHandles: false,
-
-    /**
-     * Property that is assigned to a drag and drop object when testing to
-     * see if it is being targeted by another dd object.  This property
-     * can be used in intersect mode to help determine the focus of
-     * the mouse interaction.  DDM.getBestMatch uses this property first to
-     * determine the closest match in INTERSECT mode when multiple targets
-     * are part of the same interaction.
-     * @property cursorIsOver
-     * @type boolean
-     */
-    cursorIsOver: false,
-
-    /**
-     * Property that is assigned to a drag and drop object when testing to
-     * see if it is being targeted by another dd object.  This is a region
-     * that represents the area the draggable element overlaps this target.
-     * DDM.getBestMatch uses this property to compare the size of the overlap
-     * to that of other targets in order to determine the closest match in
-     * INTERSECT mode when multiple targets are part of the same interaction.
-     * @property overlap 
-     * @type YAHOO.util.Region
-     */
-    overlap: null,
-
-    /**
-     * Code that executes immediately before the startDrag event
-     * @method b4StartDrag
-     * @private
-     */
-    b4StartDrag: function(x, y) { },
-
-    /**
-     * Abstract method called after a drag/drop object is clicked
-     * and the drag or mousedown time thresholds have beeen met.
-     * @method startDrag
-     * @param {int} X click location
-     * @param {int} Y click location
-     */
-    startDrag: function(x, y) { /* override this */ },
-
-    /**
-     * Code that executes immediately before the onDrag event
-     * @method b4Drag
-     * @private
-     */
-    b4Drag: function(e) { },
-
-    /**
-     * Abstract method called during the onMouseMove event while dragging an 
-     * object.
-     * @method onDrag
-     * @param {Event} e the mousemove event
-     */
-    onDrag: function(e) { /* override this */ },
-
-    /**
-     * Abstract method called when this element fist begins hovering over 
-     * another DragDrop obj
-     * @method onDragEnter
-     * @param {Event} e the mousemove event
-     * @param {String|DragDrop[]} id In POINT mode, the element
-     * id this is hovering over.  In INTERSECT mode, an array of one or more 
-     * dragdrop items being hovered over.
-     */
-    onDragEnter: function(e, id) { /* override this */ },
-
-    /**
-     * Code that executes immediately before the onDragOver event
-     * @method b4DragOver
-     * @private
-     */
-    b4DragOver: function(e) { },
-
-    /**
-     * Abstract method called when this element is hovering over another 
-     * DragDrop obj
-     * @method onDragOver
-     * @param {Event} e the mousemove event
-     * @param {String|DragDrop[]} id In POINT mode, the element
-     * id this is hovering over.  In INTERSECT mode, an array of dd items 
-     * being hovered over.
-     */
-    onDragOver: function(e, id) { /* override this */ },
-
-    /**
-     * Code that executes immediately before the onDragOut event
-     * @method b4DragOut
-     * @private
-     */
-    b4DragOut: function(e) { },
-
-    /**
-     * Abstract method called when we are no longer hovering over an element
-     * @method onDragOut
-     * @param {Event} e the mousemove event
-     * @param {String|DragDrop[]} id In POINT mode, the element
-     * id this was hovering over.  In INTERSECT mode, an array of dd items 
-     * that the mouse is no longer over.
-     */
-    onDragOut: function(e, id) { /* override this */ },
-
-    /**
-     * Code that executes immediately before the onDragDrop event
-     * @method b4DragDrop
-     * @private
-     */
-    b4DragDrop: function(e) { },
-
-    /**
-     * Abstract method called when this item is dropped on another DragDrop 
-     * obj
-     * @method onDragDrop
-     * @param {Event} e the mouseup event
-     * @param {String|DragDrop[]} id In POINT mode, the element
-     * id this was dropped on.  In INTERSECT mode, an array of dd items this 
-     * was dropped on.
-     */
-    onDragDrop: function(e, id) { /* override this */ },
-
-    /**
-     * Abstract method called when this item is dropped on an area with no
-     * drop target
-     * @method onInvalidDrop
-     * @param {Event} e the mouseup event
-     */
-    onInvalidDrop: function(e) { /* override this */ },
-
-    /**
-     * Code that executes immediately before the endDrag event
-     * @method b4EndDrag
-     * @private
-     */
-    b4EndDrag: function(e) { },
-
-    /**
-     * Fired when we are done dragging the object
-     * @method endDrag
-     * @param {Event} e the mouseup event
-     */
-    endDrag: function(e) { /* override this */ },
-
-    /**
-     * Code executed immediately before the onMouseDown event
-     * @method b4MouseDown
-     * @param {Event} e the mousedown event
-     * @private
-     */
-    b4MouseDown: function(e) {  },
-
-    /**
-     * Event handler that fires when a drag/drop obj gets a mousedown
-     * @method onMouseDown
-     * @param {Event} e the mousedown event
-     */
-    onMouseDown: function(e) { /* override this */ },
-
-    /**
-     * Event handler that fires when a drag/drop obj gets a mouseup
-     * @method onMouseUp
-     * @param {Event} e the mouseup event
-     */
-    onMouseUp: function(e) { /* override this */ },
-   
-    /**
-     * Override the onAvailable method to do what is needed after the initial
-     * position was determined.
-     * @method onAvailable
-     */
-    onAvailable: function () { 
-        //this.logger.log("onAvailable (base)"); 
-    },
-
-    /**
-     * Returns a reference to the linked element
-     * @method getEl
-     * @return {HTMLElement} the html element 
-     */
-    getEl: function() { 
-        if (!this._domRef) {
-            this._domRef = Dom.get(this.id); 
-        }
-
-        return this._domRef;
-    },
-
-    /**
-     * Returns a reference to the actual element to drag.  By default this is
-     * the same as the html element, but it can be assigned to another 
-     * element. An example of this can be found in YAHOO.util.DDProxy
-     * @method getDragEl
-     * @return {HTMLElement} the html element 
-     */
-    getDragEl: function() {
-        return Dom.get(this.dragElId);
-    },
-
-    /**
-     * Sets up the DragDrop object.  Must be called in the constructor of any
-     * YAHOO.util.DragDrop subclass
-     * @method init
-     * @param id the id of the linked element
-     * @param {String} sGroup the group of related items
-     * @param {object} config configuration attributes
-     */
-    init: function(id, sGroup, config) {
-        this.initTarget(id, sGroup, config);
-        Event.on(this._domRef || this.id, "mousedown", 
-                        this.handleMouseDown, this, true);
-
-        // Event.on(this.id, "selectstart", Event.preventDefault);
-        for (var i in this.events) {
-            this.createEvent(i + 'Event');
-        }
-        
-    },
-
-    /**
-     * Initializes Targeting functionality only... the object does not
-     * get a mousedown handler.
-     * @method initTarget
-     * @param id the id of the linked element
-     * @param {String} sGroup the group of related items
-     * @param {object} config configuration attributes
-     */
-    initTarget: function(id, sGroup, config) {
-
-        // configuration attributes 
-        this.config = config || {};
-
-        this.events = {};
-
-        // create a local reference to the drag and drop manager
-        this.DDM = YAHOO.util.DDM;
-
-        // initialize the groups object
-        this.groups = {};
-
-        // assume that we have an element reference instead of an id if the
-        // parameter is not a string
-        if (typeof id !== "string") {
-            YAHOO.log("id is not a string, assuming it is an HTMLElement");
-            this._domRef = id;
-            id = Dom.generateId(id);
-        }
-
-        // set the id
-        this.id = id;
-
-        // add to an interaction group
-        this.addToGroup((sGroup) ? sGroup : "default");
-
-        // We don't want to register this as the handle with the manager
-        // so we just set the id rather than calling the setter.
-        this.handleElId = id;
-
-        Event.onAvailable(id, this.handleOnAvailable, this, true);
-
-        // create a logger instance
-        this.logger = (YAHOO.widget.LogWriter) ? 
-                new YAHOO.widget.LogWriter(this.toString()) : YAHOO;
-
-        // the linked element is the element that gets dragged by default
-        this.setDragElId(id); 
-
-        // by default, clicked anchors will not start drag operations. 
-        // @TODO what else should be here?  Probably form fields.
-        this.invalidHandleTypes = { A: "A" };
-        this.invalidHandleIds = {};
-        this.invalidHandleClasses = [];
-
-        this.applyConfig();
-    },
-
-    /**
-     * Applies the configuration parameters that were passed into the constructor.
-     * This is supposed to happen at each level through the inheritance chain.  So
-     * a DDProxy implentation will execute apply config on DDProxy, DD, and 
-     * DragDrop in order to get all of the parameters that are available in
-     * each object.
-     * @method applyConfig
-     */
-    applyConfig: function() {
-        this.events = {
-            mouseDown: true,
-            b4MouseDown: true,
-            mouseUp: true,
-            b4StartDrag: true,
-            startDrag: true,
-            b4EndDrag: true,
-            endDrag: true,
-            drag: true,
-            b4Drag: true,
-            invalidDrop: true,
-            b4DragOut: true,
-            dragOut: true,
-            dragEnter: true,
-            b4DragOver: true,
-            dragOver: true,
-            b4DragDrop: true,
-            dragDrop: true
-        };
-        
-        if (this.config.events) {
-            for (var i in this.config.events) {
-                if (this.config.events[i] === false) {
-                    this.events[i] = false;
-                }
-            }
-        }
-
-
-        // configurable properties: 
-        //    padding, isTarget, maintainOffset, primaryButtonOnly
-        this.padding           = this.config.padding || [0, 0, 0, 0];
-        this.isTarget          = (this.config.isTarget !== false);
-        this.maintainOffset    = (this.config.maintainOffset);
-        this.primaryButtonOnly = (this.config.primaryButtonOnly !== false);
-        this.dragOnly = ((this.config.dragOnly === true) ? true : false);
-    },
-
-    /**
-     * Executed when the linked element is available
-     * @method handleOnAvailable
-     * @private
-     */
-    handleOnAvailable: function() {
-        //this.logger.log("handleOnAvailable");
-        this.available = true;
-        this.resetConstraints();
-        this.onAvailable();
-    },
-
-     /**
-     * Configures the padding for the target zone in px.  Effectively expands
-     * (or reduces) the virtual object size for targeting calculations.  
-     * Supports css-style shorthand; if only one parameter is passed, all sides
-     * will have that padding, and if only two are passed, the top and bottom
-     * will have the first param, the left and right the second.
-     * @method setPadding
-     * @param {int} iTop    Top pad
-     * @param {int} iRight  Right pad
-     * @param {int} iBot    Bot pad
-     * @param {int} iLeft   Left pad
-     */
-    setPadding: function(iTop, iRight, iBot, iLeft) {
-        // this.padding = [iLeft, iRight, iTop, iBot];
-        if (!iRight && 0 !== iRight) {
-            this.padding = [iTop, iTop, iTop, iTop];
-        } else if (!iBot && 0 !== iBot) {
-            this.padding = [iTop, iRight, iTop, iRight];
-        } else {
-            this.padding = [iTop, iRight, iBot, iLeft];
-        }
-    },
-
-    /**
-     * Stores the initial placement of the linked element.
-     * @method setInitialPosition
-     * @param {int} diffX   the X offset, default 0
-     * @param {int} diffY   the Y offset, default 0
-     * @private
-     */
-    setInitPosition: function(diffX, diffY) {
-        var el = this.getEl();
-
-        if (!this.DDM.verifyEl(el)) {
-            if (el && el.style && (el.style.display == 'none')) {
-                this.logger.log(this.id + " can not get initial position, element style is display: none");
-            } else {
-                this.logger.log(this.id + " element is broken");
-            }
-            return;
-        }
-
-        var dx = diffX || 0;
-        var dy = diffY || 0;
-
-        var p = Dom.getXY( el );
-
-        this.initPageX = p[0] - dx;
-        this.initPageY = p[1] - dy;
-
-        this.lastPageX = p[0];
-        this.lastPageY = p[1];
-
-        this.logger.log(this.id + " initial position: " + this.initPageX + 
-                ", " + this.initPageY);
-
-
-        this.setStartPosition(p);
-    },
-
-    /**
-     * Sets the start position of the element.  This is set when the obj
-     * is initialized, the reset when a drag is started.
-     * @method setStartPosition
-     * @param pos current position (from previous lookup)
-     * @private
-     */
-    setStartPosition: function(pos) {
-        var p = pos || Dom.getXY(this.getEl());
-
-        this.deltaSetXY = null;
-
-        this.startPageX = p[0];
-        this.startPageY = p[1];
-    },
-
-    /**
-     * Add this instance to a group of related drag/drop objects.  All 
-     * instances belong to at least one group, and can belong to as many 
-     * groups as needed.
-     * @method addToGroup
-     * @param sGroup {string} the name of the group
-     */
-    addToGroup: function(sGroup) {
-        this.groups[sGroup] = true;
-        this.DDM.regDragDrop(this, sGroup);
-    },
-
-    /**
-     * Remove's this instance from the supplied interaction group
-     * @method removeFromGroup
-     * @param {string}  sGroup  The group to drop
-     */
-    removeFromGroup: function(sGroup) {
-        this.logger.log("Removing from group: " + sGroup);
-        if (this.groups[sGroup]) {
-            delete this.groups[sGroup];
-        }
-
-        this.DDM.removeDDFromGroup(this, sGroup);
-    },
-
-    /**
-     * Allows you to specify that an element other than the linked element 
-     * will be moved with the cursor during a drag
-     * @method setDragElId
-     * @param id {string} the id of the element that will be used to initiate the drag
-     */
-    setDragElId: function(id) {
-        this.dragElId = id;
-    },
-
-    /**
-     * Allows you to specify a child of the linked element that should be 
-     * used to initiate the drag operation.  An example of this would be if 
-     * you have a content div with text and links.  Clicking anywhere in the 
-     * content area would normally start the drag operation.  Use this method
-     * to specify that an element inside of the content div is the element 
-     * that starts the drag operation.
-     * @method setHandleElId
-     * @param id {string} the id of the element that will be used to 
-     * initiate the drag.
-     */
-    setHandleElId: function(id) {
-        if (typeof id !== "string") {
-            YAHOO.log("id is not a string, assuming it is an HTMLElement");
-            id = Dom.generateId(id);
-        }
-        this.handleElId = id;
-        this.DDM.regHandle(this.id, id);
-    },
-
-    /**
-     * Allows you to set an element outside of the linked element as a drag 
-     * handle
-     * @method setOuterHandleElId
-     * @param id the id of the element that will be used to initiate the drag
-     */
-    setOuterHandleElId: function(id) {
-        if (typeof id !== "string") {
-            YAHOO.log("id is not a string, assuming it is an HTMLElement");
-            id = Dom.generateId(id);
-        }
-        this.logger.log("Adding outer handle event: " + id);
-        Event.on(id, "mousedown", 
-                this.handleMouseDown, this, true);
-        this.setHandleElId(id);
-
-        this.hasOuterHandles = true;
-    },
-
-    /**
-     * Remove all drag and drop hooks for this element
-     * @method unreg
-     */
-    unreg: function() {
-        this.logger.log("DragDrop obj cleanup " + this.id);
-        Event.removeListener(this.id, "mousedown", 
-                this.handleMouseDown);
-        this._domRef = null;
-        this.DDM._remove(this);
-    },
-
-    /**
-     * Returns true if this instance is locked, or the drag drop mgr is locked
-     * (meaning that all drag/drop is disabled on the page.)
-     * @method isLocked
-     * @return {boolean} true if this obj or all drag/drop is locked, else 
-     * false
-     */
-    isLocked: function() {
-        return (this.DDM.isLocked() || this.locked);
-    },
-
-    /**
-     * Fired when this object is clicked
-     * @method handleMouseDown
-     * @param {Event} e 
-     * @param {YAHOO.util.DragDrop} oDD the clicked dd object (this dd obj)
-     * @private
-     */
-    handleMouseDown: function(e, oDD) {
-
-        var button = e.which || e.button;
-        this.logger.log("button: " + button);
-
-        if (this.primaryButtonOnly && button > 1) {
-            this.logger.log("Mousedown was not produced by the primary button");
-            return;
-        }
-
-        if (this.isLocked()) {
-            this.logger.log("Drag and drop is disabled, aborting");
-            return;
-        }
-
-        this.logger.log("mousedown " + this.id);
-
-        this.logger.log("firing onMouseDown events");
-
-        // firing the mousedown events prior to calculating positions
-        var b4Return = this.b4MouseDown(e);
-        if (this.events.b4MouseDown) {
-            b4Return = this.fireEvent('b4MouseDownEvent', e);
-        }
-        var mDownReturn = this.onMouseDown(e);
-        if (this.events.mouseDown) {
-            mDownReturn = this.fireEvent('mouseDownEvent', e);
-        }
-
-        if ((b4Return === false) || (mDownReturn === false)) {
-            this.logger.log('b4MouseDown or onMouseDown returned false, exiting drag');
-            return;
-        }
-
-        this.DDM.refreshCache(this.groups);
-        // var self = this;
-        // setTimeout( function() { self.DDM.refreshCache(self.groups); }, 0);
-
-        // Only process the event if we really clicked within the linked 
-        // element.  The reason we make this check is that in the case that 
-        // another element was moved between the clicked element and the 
-        // cursor in the time between the mousedown and mouseup events. When 
-        // this happens, the element gets the next mousedown event 
-        // regardless of where on the screen it happened.  
-        var pt = new YAHOO.util.Point(Event.getPageX(e), Event.getPageY(e));
-        if (!this.hasOuterHandles && !this.DDM.isOverTarget(pt, this) )  {
-                this.logger.log("Click was not over the element: " + this.id);
-        } else {
-            if (this.clickValidator(e)) {
-
-                this.logger.log("click was a valid handle");
-
-                // set the initial element position
-                this.setStartPosition();
-
-                // start tracking mousemove distance and mousedown time to
-                // determine when to start the actual drag
-                this.DDM.handleMouseDown(e, this);
-
-                // this mousedown is mine
-                this.DDM.stopEvent(e);
-            } else {
-
-this.logger.log("clickValidator returned false, drag not initiated");
-
-            }
-        }
-    },
-
-    /**
-     * @method clickValidator
-     * @description Method validates that the clicked element
-     * was indeed the handle or a valid child of the handle
-     * @param {Event} e 
-     */
-    clickValidator: function(e) {
-        var target = YAHOO.util.Event.getTarget(e);
-        return ( this.isValidHandleChild(target) &&
-                    (this.id == this.handleElId || 
-                        this.DDM.handleWasClicked(target, this.id)) );
-    },
-
-    /**
-     * Finds the location the element should be placed if we want to move
-     * it to where the mouse location less the click offset would place us.
-     * @method getTargetCoord
-     * @param {int} iPageX the X coordinate of the click
-     * @param {int} iPageY the Y coordinate of the click
-     * @return an object that contains the coordinates (Object.x and Object.y)
-     * @private
-     */
-    getTargetCoord: function(iPageX, iPageY) {
-
-        // this.logger.log("getTargetCoord: " + iPageX + ", " + iPageY);
-
-        var x = iPageX - this.deltaX;
-        var y = iPageY - this.deltaY;
-
-        if (this.constrainX) {
-            if (x < this.minX) { x = this.minX; }
-            if (x > this.maxX) { x = this.maxX; }
-        }
-
-        if (this.constrainY) {
-            if (y < this.minY) { y = this.minY; }
-            if (y > this.maxY) { y = this.maxY; }
-        }
-
-        x = this.getTick(x, this.xTicks);
-        y = this.getTick(y, this.yTicks);
-
-        // this.logger.log("getTargetCoord " + 
-                // " iPageX: " + iPageX +
-                // " iPageY: " + iPageY +
-                // " x: " + x + ", y: " + y);
-
-        return {x:x, y:y};
-    },
-
-    /**
-     * Allows you to specify a tag name that should not start a drag operation
-     * when clicked.  This is designed to facilitate embedding links within a
-     * drag handle that do something other than start the drag.
-     * @method addInvalidHandleType
-     * @param {string} tagName the type of element to exclude
-     */
-    addInvalidHandleType: function(tagName) {
-        var type = tagName.toUpperCase();
-        this.invalidHandleTypes[type] = type;
-    },
-
-    /**
-     * Lets you to specify an element id for a child of a drag handle
-     * that should not initiate a drag
-     * @method addInvalidHandleId
-     * @param {string} id the element id of the element you wish to ignore
-     */
-    addInvalidHandleId: function(id) {
-        if (typeof id !== "string") {
-            YAHOO.log("id is not a string, assuming it is an HTMLElement");
-            id = Dom.generateId(id);
-        }
-        this.invalidHandleIds[id] = id;
-    },
-
-
-    /**
-     * Lets you specify a css class of elements that will not initiate a drag
-     * @method addInvalidHandleClass
-     * @param {string} cssClass the class of the elements you wish to ignore
-     */
-    addInvalidHandleClass: function(cssClass) {
-        this.invalidHandleClasses.push(cssClass);
-    },
-
-    /**
-     * Unsets an excluded tag name set by addInvalidHandleType
-     * @method removeInvalidHandleType
-     * @param {string} tagName the type of element to unexclude
-     */
-    removeInvalidHandleType: function(tagName) {
-        var type = tagName.toUpperCase();
-        // this.invalidHandleTypes[type] = null;
-        delete this.invalidHandleTypes[type];
-    },
-    
-    /**
-     * Unsets an invalid handle id
-     * @method removeInvalidHandleId
-     * @param {string} id the id of the element to re-enable
-     */
-    removeInvalidHandleId: function(id) {
-        if (typeof id !== "string") {
-            YAHOO.log("id is not a string, assuming it is an HTMLElement");
-            id = Dom.generateId(id);
-        }
-        delete this.invalidHandleIds[id];
-    },
-
-    /**
-     * Unsets an invalid css class
-     * @method removeInvalidHandleClass
-     * @param {string} cssClass the class of the element(s) you wish to 
-     * re-enable
-     */
-    removeInvalidHandleClass: function(cssClass) {
-        for (var i=0, len=this.invalidHandleClasses.length; i<len; ++i) {
-            if (this.invalidHandleClasses[i] == cssClass) {
-                delete this.invalidHandleClasses[i];
-            }
-        }
-    },
-
-    /**
-     * Checks the tag exclusion list to see if this click should be ignored
-     * @method isValidHandleChild
-     * @param {HTMLElement} node the HTMLElement to evaluate
-     * @return {boolean} true if this is a valid tag type, false if not
-     */
-    isValidHandleChild: function(node) {
-
-        var valid = true;
-        // var n = (node.nodeName == "#text") ? node.parentNode : node;
-        var nodeName;
-        try {
-            nodeName = node.nodeName.toUpperCase();
-        } catch(e) {
-            nodeName = node.nodeName;
-        }
-        valid = valid && !this.invalidHandleTypes[nodeName];
-        valid = valid && !this.invalidHandleIds[node.id];
-
-        for (var i=0, len=this.invalidHandleClasses.length; valid && i<len; ++i) {
-            valid = !Dom.hasClass(node, this.invalidHandleClasses[i]);
-        }
-
-        this.logger.log("Valid handle? ... " + valid);
-
-        return valid;
-
-    },
-
-    /**
-     * Create the array of horizontal tick marks if an interval was specified
-     * in setXConstraint().
-     * @method setXTicks
-     * @private
-     */
-    setXTicks: function(iStartX, iTickSize) {
-        this.xTicks = [];
-        this.xTickSize = iTickSize;
-        
-        var tickMap = {};
-
-        for (var i = this.initPageX; i >= this.minX; i = i - iTickSize) {
-            if (!tickMap[i]) {
-                this.xTicks[this.xTicks.length] = i;
-                tickMap[i] = true;
-            }
-        }
-
-        for (i = this.initPageX; i <= this.maxX; i = i + iTickSize) {
-            if (!tickMap[i]) {
-                this.xTicks[this.xTicks.length] = i;
-                tickMap[i] = true;
-            }
-        }
-
-        this.xTicks.sort(this.DDM.numericSort) ;
-        this.logger.log("xTicks: " + this.xTicks.join());
-    },
-
-    /**
-     * Create the array of vertical tick marks if an interval was specified in 
-     * setYConstraint().
-     * @method setYTicks
-     * @private
-     */
-    setYTicks: function(iStartY, iTickSize) {
-        // this.logger.log("setYTicks: " + iStartY + ", " + iTickSize
-               // + ", " + this.initPageY + ", " + this.minY + ", " + this.maxY );
-        this.yTicks = [];
-        this.yTickSize = iTickSize;
-
-        var tickMap = {};
-
-        for (var i = this.initPageY; i >= this.minY; i = i - iTickSize) {
-            if (!tickMap[i]) {
-                this.yTicks[this.yTicks.length] = i;
-                tickMap[i] = true;
-            }
-        }
-
-        for (i = this.initPageY; i <= this.maxY; i = i + iTickSize) {
-            if (!tickMap[i]) {
-                this.yTicks[this.yTicks.length] = i;
-                tickMap[i] = true;
-            }
-        }
-
-        this.yTicks.sort(this.DDM.numericSort) ;
-        this.logger.log("yTicks: " + this.yTicks.join());
-    },
-
-    /**
-     * By default, the element can be dragged any place on the screen.  Use 
-     * this method to limit the horizontal travel of the element.  Pass in 
-     * 0,0 for the parameters if you want to lock the drag to the y axis.
-     * @method setXConstraint
-     * @param {int} iLeft the number of pixels the element can move to the left
-     * @param {int} iRight the number of pixels the element can move to the 
-     * right
-     * @param {int} iTickSize optional parameter for specifying that the 
-     * element
-     * should move iTickSize pixels at a time.
-     */
-    setXConstraint: function(iLeft, iRight, iTickSize) {
-        this.leftConstraint = parseInt(iLeft, 10);
-        this.rightConstraint = parseInt(iRight, 10);
-
-        this.minX = this.initPageX - this.leftConstraint;
-        this.maxX = this.initPageX + this.rightConstraint;
-        if (iTickSize) { this.setXTicks(this.initPageX, iTickSize); }
-
-        this.constrainX = true;
-        this.logger.log("initPageX:" + this.initPageX + " minX:" + this.minX + 
-                " maxX:" + this.maxX);
-    },
-
-    /**
-     * Clears any constraints applied to this instance.  Also clears ticks
-     * since they can't exist independent of a constraint at this time.
-     * @method clearConstraints
-     */
-    clearConstraints: function() {
-        this.logger.log("Clearing constraints");
-        this.constrainX = false;
-        this.constrainY = false;
-        this.clearTicks();
-    },
-
-    /**
-     * Clears any tick interval defined for this instance
-     * @method clearTicks
-     */
-    clearTicks: function() {
-        this.logger.log("Clearing ticks");
-        this.xTicks = null;
-        this.yTicks = null;
-        this.xTickSize = 0;
-        this.yTickSize = 0;
-    },
-
-    /**
-     * By default, the element can be dragged any place on the screen.  Set 
-     * this to limit the vertical travel of the element.  Pass in 0,0 for the
-     * parameters if you want to lock the drag to the x axis.
-     * @method setYConstraint
-     * @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 iTickSize pixels at a time.
-     */
-    setYConstraint: function(iUp, iDown, iTickSize) {
-        this.logger.log("setYConstraint: " + iUp + "," + iDown + "," + iTickSize);
-        this.topConstraint = parseInt(iUp, 10);
-        this.bottomConstraint = parseInt(iDown, 10);
-
-        this.minY = this.initPageY - this.topConstraint;
-        this.maxY = this.initPageY + this.bottomConstraint;
-        if (iTickSize) { this.setYTicks(this.initPageY, iTickSize); }
-
-        this.constrainY = true;
-        
-        this.logger.log("initPageY:" + this.initPageY + " minY:" + this.minY + 
-                " maxY:" + this.maxY);
-    },
-
-    /**
-     * resetConstraints must be called if you manually reposition a dd element.
-     * @method resetConstraints
-     */
-    resetConstraints: function() {
-
-        //this.logger.log("resetConstraints");
-
-        // Maintain offsets if necessary
-        if (this.initPageX || this.initPageX === 0) {
-            //this.logger.log("init pagexy: " + this.initPageX + ", " + 
-                               //this.initPageY);
-            //this.logger.log("last pagexy: " + this.lastPageX + ", " + 
-                               //this.lastPageY);
-            // figure out how much this thing has moved
-            var dx = (this.maintainOffset) ? this.lastPageX - this.initPageX : 0;
-            var dy = (this.maintainOffset) ? this.lastPageY - this.initPageY : 0;
-
-            this.setInitPosition(dx, dy);
-
-        // This is the first time we have detected the element's position
-        } else {
-            this.setInitPosition();
-        }
-
-        if (this.constrainX) {
-            this.setXConstraint( this.leftConstraint, 
-                                 this.rightConstraint, 
-                                 this.xTickSize        );
-        }
-
-        if (this.constrainY) {
-            this.setYConstraint( this.topConstraint, 
-                                 this.bottomConstraint, 
-                                 this.yTickSize         );
-        }
-    },
-
-    /**
-     * Normally the drag element is moved pixel by pixel, but we can specify 
-     * that it move a number of pixels at a time.  This method resolves the 
-     * location when we have it set up like this.
-     * @method getTick
-     * @param {int} val where we want to place the object
-     * @param {int[]} tickArray sorted array of valid points
-     * @return {int} the closest tick
-     * @private
-     */
-    getTick: function(val, tickArray) {
-
-        if (!tickArray) {
-            // If tick interval is not defined, it is effectively 1 pixel, 
-            // so we return the value passed to us.
-            return val; 
-        } else if (tickArray[0] >= val) {
-            // The value is lower than the first tick, so we return the first
-            // tick.
-            return tickArray[0];
-        } else {
-            for (var i=0, len=tickArray.length; i<len; ++i) {
-                var next = i + 1;
-                if (tickArray[next] && tickArray[next] >= val) {
-                    var diff1 = val - tickArray[i];
-                    var diff2 = tickArray[next] - val;
-                    return (diff2 > diff1) ? tickArray[i] : tickArray[next];
-                }
-            }
-
-            // The value is larger than the last tick, so we return the last
-            // tick.
-            return tickArray[tickArray.length - 1];
-        }
-    },
-
-    /**
-     * toString method
-     * @method toString
-     * @return {string} string representation of the dd obj
-     */
-    toString: function() {
-        return ("DragDrop " + this.id);
-    }
-
-};
-YAHOO.augment(YAHOO.util.DragDrop, YAHOO.util.EventProvider);
-
-/**
-* @event mouseDownEvent
-* @description Provides access to the mousedown event. The mousedown does not always result in a drag operation.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4MouseDownEvent
-* @description Provides access to the mousedown event, before the mouseDownEvent gets fired. Returning false will cancel the drag.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event mouseUpEvent
-* @description Fired from inside DragDropMgr when the drag operation is finished.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4StartDragEvent
-* @description Fires before the startDragEvent, returning false will cancel the startDrag Event.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event startDragEvent
-* @description Occurs after a mouse down and the drag threshold has been met. The drag threshold default is either 3 pixels of mouse movement or 1 full second of holding the mousedown. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4EndDragEvent
-* @description Fires before the endDragEvent. Returning false will cancel.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event endDragEvent
-* @description Fires on the mouseup event after a drag has been initiated (startDrag fired).
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event dragEvent
-* @description Occurs every mousemove event while dragging.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragEvent
-* @description Fires before the dragEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event invalidDropEvent
-* @description Fires when the dragged objects is dropped in a location that contains no drop targets.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOutEvent
-* @description Fires before the dragOutEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOutEvent
-* @description Fires when a dragged object is no longer over an object that had the onDragEnter fire. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragEnterEvent
-* @description Occurs when the dragged object first interacts with another targettable drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOverEvent
-* @description Fires before the dragOverEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOverEvent
-* @description Fires every mousemove event while over a drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragDropEvent 
-* @description Fires before the dragDropEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragDropEvent
-* @description Fires when the dragged objects is dropped on another.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-})();
-/**
- * A DragDrop implementation where the linked element follows the 
- * mouse cursor during a drag.
- * @class DD
- * @extends YAHOO.util.DragDrop
- * @constructor
- * @param {String} id the id of the linked element 
- * @param {String} sGroup the group of related DragDrop items
- * @param {object} config an object containing configurable attributes
- *                Valid properties for DD: 
- *                    scroll
- */
-YAHOO.util.DD = function(id, sGroup, config) {
-    if (id) {
-        this.init(id, sGroup, config);
-    }
-};
-
-YAHOO.extend(YAHOO.util.DD, YAHOO.util.DragDrop, {
-
-    /**
-     * When set to true, the utility automatically tries to scroll the browser
-     * window wehn a drag and drop element is dragged near the viewport boundary.
-     * Defaults to true.
-     * @property scroll
-     * @type boolean
-     */
-    scroll: true, 
-
-    /**
-     * Sets the pointer offset to the distance between the linked element's top 
-     * left corner and the location the element was clicked
-     * @method autoOffset
-     * @param {int} iPageX the X coordinate of the click
-     * @param {int} iPageY the Y coordinate of the click
-     */
-    autoOffset: function(iPageX, iPageY) {
-        var x = iPageX - this.startPageX;
-        var y = iPageY - this.startPageY;
-        this.setDelta(x, y);
-        // this.logger.log("autoOffset el pos: " + aCoord + ", delta: " + x + "," + y);
-    },
-
-    /** 
-     * Sets the pointer offset.  You can call this directly to force the 
-     * offset to be in a particular location (e.g., pass in 0,0 to set it 
-     * to the center of the object, as done in YAHOO.widget.Slider)
-     * @method setDelta
-     * @param {int} iDeltaX the distance from the left
-     * @param {int} iDeltaY the distance from the top
-     */
-    setDelta: function(iDeltaX, iDeltaY) {
-        this.deltaX = iDeltaX;
-        this.deltaY = iDeltaY;
-        this.logger.log("deltaX:" + this.deltaX + ", deltaY:" + this.deltaY);
-    },
-
-    /**
-     * Sets the drag element to the location of the mousedown or click event, 
-     * maintaining the cursor location relative to the location on the element 
-     * that was clicked.  Override this if you want to place the element in a 
-     * location other than where the cursor is.
-     * @method setDragElPos
-     * @param {int} iPageX the X coordinate of the mousedown or drag event
-     * @param {int} iPageY the Y coordinate of the mousedown or drag event
-     */
-    setDragElPos: function(iPageX, iPageY) {
-        // the first time we do this, we are going to check to make sure
-        // the element has css positioning
-
-        var el = this.getDragEl();
-        this.alignElWithMouse(el, iPageX, iPageY);
-    },
-
-    /**
-     * Sets the element to the location of the mousedown or click event, 
-     * maintaining the cursor location relative to the location on the element 
-     * that was clicked.  Override this if you want to place the element in a 
-     * location other than where the cursor is.
-     * @method alignElWithMouse
-     * @param {HTMLElement} el the element to move
-     * @param {int} iPageX the X coordinate of the mousedown or drag event
-     * @param {int} iPageY the Y coordinate of the mousedown or drag event
-     */
-    alignElWithMouse: function(el, iPageX, iPageY) {
-        var oCoord = this.getTargetCoord(iPageX, iPageY);
-        // this.logger.log("****alignElWithMouse : " + el.id + ", " + aCoord + ", " + el.style.display);
-
-        if (!this.deltaSetXY) {
-            var aCoord = [oCoord.x, oCoord.y];
-            YAHOO.util.Dom.setXY(el, aCoord);
-            var newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
-            var newTop  = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
-            this.deltaSetXY = [ newLeft - oCoord.x, newTop - oCoord.y ];
-        } else {
-            YAHOO.util.Dom.setStyle(el, "left", (oCoord.x + this.deltaSetXY[0]) + "px");
-            YAHOO.util.Dom.setStyle(el, "top",  (oCoord.y + this.deltaSetXY[1]) + "px");
-        }
-        
-        this.cachePosition(oCoord.x, oCoord.y);
-        var self = this;
-        setTimeout(function() {
-            self.autoScroll.call(self, oCoord.x, oCoord.y, el.offsetHeight, el.offsetWidth);
-        }, 0);
-    },
-
-    /**
-     * Saves the most recent position so that we can reset the constraints and
-     * tick marks on-demand.  We need to know this so that we can calculate the
-     * number of pixels the element is offset from its original position.
-     * @method cachePosition
-     * @param iPageX the current x position (optional, this just makes it so we
-     * don't have to look it up again)
-     * @param iPageY the current y position (optional, this just makes it so we
-     * don't have to look it up again)
-     */
-    cachePosition: function(iPageX, iPageY) {
-        if (iPageX) {
-            this.lastPageX = iPageX;
-            this.lastPageY = iPageY;
-        } else {
-            var aCoord = YAHOO.util.Dom.getXY(this.getEl());
-            this.lastPageX = aCoord[0];
-            this.lastPageY = aCoord[1];
-        }
-    },
-
-    /**
-     * Auto-scroll the window if the dragged object has been moved beyond the 
-     * visible window boundary.
-     * @method autoScroll
-     * @param {int} x the drag element's x position
-     * @param {int} y the drag element's y position
-     * @param {int} h the height of the drag element
-     * @param {int} w the width of the drag element
-     * @private
-     */
-    autoScroll: function(x, y, h, w) {
-
-        if (this.scroll) {
-            // The client height
-            var clientH = this.DDM.getClientHeight();
-
-            // The client width
-            var clientW = this.DDM.getClientWidth();
-
-            // The amt scrolled down
-            var st = this.DDM.getScrollTop();
-
-            // The amt scrolled right
-            var sl = this.DDM.getScrollLeft();
-
-            // Location of the bottom of the element
-            var bot = h + y;
-
-            // Location of the right of the element
-            var right = w + x;
-
-            // The distance from the cursor to the bottom of the visible area, 
-            // adjusted so that we don't scroll if the cursor is beyond the
-            // element drag constraints
-            var toBot = (clientH + st - y - this.deltaY);
-
-            // The distance from the cursor to the right of the visible area
-            var toRight = (clientW + sl - x - this.deltaX);
-
-            // this.logger.log( " x: " + x + " y: " + y + " h: " + h + 
-            // " clientH: " + clientH + " clientW: " + clientW + 
-            // " st: " + st + " sl: " + sl + " bot: " + bot + 
-            // " right: " + right + " toBot: " + toBot + " toRight: " + toRight);
-
-            // How close to the edge the cursor must be before we scroll
-            // var thresh = (document.all) ? 100 : 40;
-            var thresh = 40;
-
-            // How many pixels to scroll per autoscroll op.  This helps to reduce 
-            // clunky scrolling. IE is more sensitive about this ... it needs this 
-            // value to be higher.
-            var scrAmt = (document.all) ? 80 : 30;
-
-            // Scroll down if we are near the bottom of the visible page and the 
-            // obj extends below the crease
-            if ( bot > clientH && toBot < thresh ) { 
-                window.scrollTo(sl, st + scrAmt); 
-            }
-
-            // Scroll up if the window is scrolled down and the top of the object
-            // goes above the top border
-            if ( y < st && st > 0 && y - st < thresh ) { 
-                window.scrollTo(sl, st - scrAmt); 
-            }
-
-            // Scroll right if the obj is beyond the right border and the cursor is
-            // near the border.
-            if ( right > clientW && toRight < thresh ) { 
-                window.scrollTo(sl + scrAmt, st); 
-            }
-
-            // Scroll left if the window has been scrolled to the right and the obj
-            // extends past the left border
-            if ( x < sl && sl > 0 && x - sl < thresh ) { 
-                window.scrollTo(sl - scrAmt, st);
-            }
-        }
-    },
-
-    /*
-     * Sets up config options specific to this class. Overrides
-     * YAHOO.util.DragDrop, but all versions of this method through the 
-     * inheritance chain are called
-     */
-    applyConfig: function() {
-        YAHOO.util.DD.superclass.applyConfig.call(this);
-        this.scroll = (this.config.scroll !== false);
-    },
-
-    /*
-     * Event that fires prior to the onMouseDown event.  Overrides 
-     * YAHOO.util.DragDrop.
-     */
-    b4MouseDown: function(e) {
-        this.setStartPosition();
-        // this.resetConstraints();
-        this.autoOffset(YAHOO.util.Event.getPageX(e), 
-                            YAHOO.util.Event.getPageY(e));
-    },
-
-    /*
-     * Event that fires prior to the onDrag event.  Overrides 
-     * YAHOO.util.DragDrop.
-     */
-    b4Drag: function(e) {
-        this.setDragElPos(YAHOO.util.Event.getPageX(e), 
-                            YAHOO.util.Event.getPageY(e));
-    },
-
-    toString: function() {
-        return ("DD " + this.id);
-    }
-
-    //////////////////////////////////////////////////////////////////////////
-    // Debugging ygDragDrop events that can be overridden
-    //////////////////////////////////////////////////////////////////////////
-    /*
-    startDrag: function(x, y) {
-        this.logger.log(this.id.toString()  + " startDrag");
-    },
-
-    onDrag: function(e) {
-        this.logger.log(this.id.toString() + " onDrag");
-    },
-
-    onDragEnter: function(e, id) {
-        this.logger.log(this.id.toString() + " onDragEnter: " + id);
-    },
-
-    onDragOver: function(e, id) {
-        this.logger.log(this.id.toString() + " onDragOver: " + id);
-    },
-
-    onDragOut: function(e, id) {
-        this.logger.log(this.id.toString() + " onDragOut: " + id);
-    },
-
-    onDragDrop: function(e, id) {
-        this.logger.log(this.id.toString() + " onDragDrop: " + id);
-    },
-
-    endDrag: function(e) {
-        this.logger.log(this.id.toString() + " endDrag");
-    }
-
-    */
-
-/**
-* @event mouseDownEvent
-* @description Provides access to the mousedown event. The mousedown does not always result in a drag operation.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4MouseDownEvent
-* @description Provides access to the mousedown event, before the mouseDownEvent gets fired. Returning false will cancel the drag.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event mouseUpEvent
-* @description Fired from inside DragDropMgr when the drag operation is finished.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4StartDragEvent
-* @description Fires before the startDragEvent, returning false will cancel the startDrag Event.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event startDragEvent
-* @description Occurs after a mouse down and the drag threshold has been met. The drag threshold default is either 3 pixels of mouse movement or 1 full second of holding the mousedown. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4EndDragEvent
-* @description Fires before the endDragEvent. Returning false will cancel.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event endDragEvent
-* @description Fires on the mouseup event after a drag has been initiated (startDrag fired).
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event dragEvent
-* @description Occurs every mousemove event while dragging.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragEvent
-* @description Fires before the dragEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event invalidDropEvent
-* @description Fires when the dragged objects is dropped in a location that contains no drop targets.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOutEvent
-* @description Fires before the dragOutEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOutEvent
-* @description Fires when a dragged object is no longer over an object that had the onDragEnter fire. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragEnterEvent
-* @description Occurs when the dragged object first interacts with another targettable drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOverEvent
-* @description Fires before the dragOverEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOverEvent
-* @description Fires every mousemove event while over a drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragDropEvent 
-* @description Fires before the dragDropEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragDropEvent
-* @description Fires when the dragged objects is dropped on another.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-});
-/**
- * A DragDrop implementation that inserts an empty, bordered div into
- * the document that follows the cursor during drag operations.  At the time of
- * the click, the frame div is resized to the dimensions of the linked html
- * element, and moved to the exact location of the linked element.
- *
- * References to the "frame" element refer to the single proxy element that
- * was created to be dragged in place of all DDProxy elements on the
- * page.
- *
- * @class DDProxy
- * @extends YAHOO.util.DD
- * @constructor
- * @param {String} id the id of the linked html element
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- *                Valid properties for DDProxy in addition to those in DragDrop: 
- *                   resizeFrame, centerFrame, dragElId
- */
-YAHOO.util.DDProxy = function(id, sGroup, config) {
-    if (id) {
-        this.init(id, sGroup, config);
-        this.initFrame(); 
-    }
-};
-
-/**
- * The default drag frame div id
- * @property YAHOO.util.DDProxy.dragElId
- * @type String
- * @static
- */
-YAHOO.util.DDProxy.dragElId = "ygddfdiv";
-
-YAHOO.extend(YAHOO.util.DDProxy, YAHOO.util.DD, {
-
-    /**
-     * By default we resize the drag frame to be the same size as the element
-     * we want to drag (this is to get the frame effect).  We can turn it off
-     * if we want a different behavior.
-     * @property resizeFrame
-     * @type boolean
-     */
-    resizeFrame: true,
-
-    /**
-     * By default the frame is positioned exactly where the drag element is, so
-     * we use the cursor offset provided by YAHOO.util.DD.  Another option that works only if
-     * you do not have constraints on the obj is to have the drag frame centered
-     * around the cursor.  Set centerFrame to true for this effect.
-     * @property centerFrame
-     * @type boolean
-     */
-    centerFrame: false,
-
-    /**
-     * Creates the proxy element if it does not yet exist
-     * @method createFrame
-     */
-    createFrame: function() {
-        var self=this, body=document.body;
-
-        if (!body || !body.firstChild) {
-            setTimeout( function() { self.createFrame(); }, 50 );
-            return;
-        }
-
-        var div=this.getDragEl(), Dom=YAHOO.util.Dom;
-
-        if (!div) {
-            div    = document.createElement("div");
-            div.id = this.dragElId;
-            var s  = div.style;
-
-            s.position   = "absolute";
-            s.visibility = "hidden";
-            s.cursor     = "move";
-            s.border     = "2px solid #aaa";
-            s.zIndex     = 999;
-            s.height     = "25px";
-            s.width      = "25px";
-
-            var _data = document.createElement('div');
-            Dom.setStyle(_data, 'height', '100%');
-            Dom.setStyle(_data, 'width', '100%');
-            /**
-            * If the proxy element has no background-color, then it is considered to the "transparent" by Internet Explorer.
-            * Since it is "transparent" then the events pass through it to the iframe below.
-            * So creating a "fake" div inside the proxy element and giving it a background-color, then setting it to an
-            * opacity of 0, it appears to not be there, however IE still thinks that it is so the events never pass through.
-            */
-            Dom.setStyle(_data, 'background-color', '#ccc');
-            Dom.setStyle(_data, 'opacity', '0');
-            div.appendChild(_data);
-
-            /**
-            * It seems that IE will fire the mouseup event if you pass a proxy element over a select box
-            * Placing the IFRAME element inside seems to stop this issue
-            */
-            if (YAHOO.env.ua.ie) {
-                //Only needed for Internet Explorer
-                var ifr = document.createElement('iframe');
-                ifr.setAttribute('src', 'about:blank');
-                ifr.setAttribute('scrolling', 'no');
-                ifr.setAttribute('frameborder', '0');
-                div.insertBefore(ifr, div.firstChild);
-                Dom.setStyle(ifr, 'height', '100%');
-                Dom.setStyle(ifr, 'width', '100%');
-                Dom.setStyle(ifr, 'position', 'absolute');
-                Dom.setStyle(ifr, 'top', '0');
-                Dom.setStyle(ifr, 'left', '0');
-                Dom.setStyle(ifr, 'opacity', '0');
-                Dom.setStyle(ifr, 'zIndex', '-1');
-                Dom.setStyle(ifr.nextSibling, 'zIndex', '2');
-            }
-
-            // appendChild can blow up IE if invoked prior to the window load event
-            // while rendering a table.  It is possible there are other scenarios 
-            // that would cause this to happen as well.
-            body.insertBefore(div, body.firstChild);
-        }
-    },
-
-    /**
-     * Initialization for the drag frame element.  Must be called in the
-     * constructor of all subclasses
-     * @method initFrame
-     */
-    initFrame: function() {
-        this.createFrame();
-    },
-
-    applyConfig: function() {
-        //this.logger.log("DDProxy applyConfig");
-        YAHOO.util.DDProxy.superclass.applyConfig.call(this);
-
-        this.resizeFrame = (this.config.resizeFrame !== false);
-        this.centerFrame = (this.config.centerFrame);
-        this.setDragElId(this.config.dragElId || YAHOO.util.DDProxy.dragElId);
-    },
-
-    /**
-     * Resizes the drag frame to the dimensions of the clicked object, positions 
-     * it over the object, and finally displays it
-     * @method showFrame
-     * @param {int} iPageX X click position
-     * @param {int} iPageY Y click position
-     * @private
-     */
-    showFrame: function(iPageX, iPageY) {
-        var el = this.getEl();
-        var dragEl = this.getDragEl();
-        var s = dragEl.style;
-
-        this._resizeProxy();
-
-        if (this.centerFrame) {
-            this.setDelta( Math.round(parseInt(s.width,  10)/2), 
-                           Math.round(parseInt(s.height, 10)/2) );
-        }
-
-        this.setDragElPos(iPageX, iPageY);
-
-        YAHOO.util.Dom.setStyle(dragEl, "visibility", "visible"); 
-    },
-
-    /**
-     * The proxy is automatically resized to the dimensions of the linked
-     * element when a drag is initiated, unless resizeFrame is set to false
-     * @method _resizeProxy
-     * @private
-     */
-    _resizeProxy: function() {
-        if (this.resizeFrame) {
-            var DOM    = YAHOO.util.Dom;
-            var el     = this.getEl();
-            var dragEl = this.getDragEl();
-
-            var bt = parseInt( DOM.getStyle(dragEl, "borderTopWidth"    ), 10);
-            var br = parseInt( DOM.getStyle(dragEl, "borderRightWidth"  ), 10);
-            var bb = parseInt( DOM.getStyle(dragEl, "borderBottomWidth" ), 10);
-            var bl = parseInt( DOM.getStyle(dragEl, "borderLeftWidth"   ), 10);
-
-            if (isNaN(bt)) { bt = 0; }
-            if (isNaN(br)) { br = 0; }
-            if (isNaN(bb)) { bb = 0; }
-            if (isNaN(bl)) { bl = 0; }
-
-            this.logger.log("proxy size: " + bt + "  " + br + " " + bb + " " + bl);
-
-            var newWidth  = Math.max(0, el.offsetWidth  - br - bl);                                                                                           
-            var newHeight = Math.max(0, el.offsetHeight - bt - bb);
-
-            this.logger.log("Resizing proxy element");
-
-            DOM.setStyle( dragEl, "width",  newWidth  + "px" );
-            DOM.setStyle( dragEl, "height", newHeight + "px" );
-        }
-    },
-
-    // overrides YAHOO.util.DragDrop
-    b4MouseDown: function(e) {
-        this.setStartPosition();
-        var x = YAHOO.util.Event.getPageX(e);
-        var y = YAHOO.util.Event.getPageY(e);
-        this.autoOffset(x, y);
-
-        // This causes the autoscroll code to kick off, which means autoscroll can
-        // happen prior to the check for a valid drag handle.
-        // this.setDragElPos(x, y);
-    },
-
-    // overrides YAHOO.util.DragDrop
-    b4StartDrag: function(x, y) {
-        // show the drag frame
-        this.logger.log("start drag show frame, x: " + x + ", y: " + y);
-        this.showFrame(x, y);
-    },
-
-    // overrides YAHOO.util.DragDrop
-    b4EndDrag: function(e) {
-        this.logger.log(this.id + " b4EndDrag");
-        YAHOO.util.Dom.setStyle(this.getDragEl(), "visibility", "hidden"); 
-    },
-
-    // overrides YAHOO.util.DragDrop
-    // By default we try to move the element to the last location of the frame.  
-    // This is so that the default behavior mirrors that of YAHOO.util.DD.  
-    endDrag: function(e) {
-        var DOM = YAHOO.util.Dom;
-        this.logger.log(this.id + " endDrag");
-        var lel = this.getEl();
-        var del = this.getDragEl();
-
-        // Show the drag frame briefly so we can get its position
-        // del.style.visibility = "";
-        DOM.setStyle(del, "visibility", ""); 
-
-        // Hide the linked element before the move to get around a Safari 
-        // rendering bug.
-        //lel.style.visibility = "hidden";
-        DOM.setStyle(lel, "visibility", "hidden"); 
-        YAHOO.util.DDM.moveToEl(lel, del);
-        //del.style.visibility = "hidden";
-        DOM.setStyle(del, "visibility", "hidden"); 
-        //lel.style.visibility = "";
-        DOM.setStyle(lel, "visibility", ""); 
-    },
-
-    toString: function() {
-        return ("DDProxy " + this.id);
-    }
-/**
-* @event mouseDownEvent
-* @description Provides access to the mousedown event. The mousedown does not always result in a drag operation.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4MouseDownEvent
-* @description Provides access to the mousedown event, before the mouseDownEvent gets fired. Returning false will cancel the drag.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event mouseUpEvent
-* @description Fired from inside DragDropMgr when the drag operation is finished.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4StartDragEvent
-* @description Fires before the startDragEvent, returning false will cancel the startDrag Event.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event startDragEvent
-* @description Occurs after a mouse down and the drag threshold has been met. The drag threshold default is either 3 pixels of mouse movement or 1 full second of holding the mousedown. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4EndDragEvent
-* @description Fires before the endDragEvent. Returning false will cancel.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event endDragEvent
-* @description Fires on the mouseup event after a drag has been initiated (startDrag fired).
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event dragEvent
-* @description Occurs every mousemove event while dragging.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragEvent
-* @description Fires before the dragEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event invalidDropEvent
-* @description Fires when the dragged objects is dropped in a location that contains no drop targets.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOutEvent
-* @description Fires before the dragOutEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOutEvent
-* @description Fires when a dragged object is no longer over an object that had the onDragEnter fire. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragEnterEvent
-* @description Occurs when the dragged object first interacts with another targettable drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOverEvent
-* @description Fires before the dragOverEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOverEvent
-* @description Fires every mousemove event while over a drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragDropEvent 
-* @description Fires before the dragDropEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragDropEvent
-* @description Fires when the dragged objects is dropped on another.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-});
-/**
- * A DragDrop implementation that does not move, but can be a drop 
- * target.  You would get the same result by simply omitting implementation 
- * for the event callbacks, but this way we reduce the processing cost of the 
- * event listener and the callbacks.
- * @class DDTarget
- * @extends YAHOO.util.DragDrop 
- * @constructor
- * @param {String} id the id of the element that is a drop target
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- *                 Valid properties for DDTarget in addition to those in 
- *                 DragDrop: 
- *                    none
- */
-YAHOO.util.DDTarget = function(id, sGroup, config) {
-    if (id) {
-        this.initTarget(id, sGroup, config);
-    }
-};
-
-// YAHOO.util.DDTarget.prototype = new YAHOO.util.DragDrop();
-YAHOO.extend(YAHOO.util.DDTarget, YAHOO.util.DragDrop, {
-    toString: function() {
-        return ("DDTarget " + this.id);
-    }
-});
-YAHOO.register("dragdrop", YAHOO.util.DragDropMgr, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/dragdrop/dragdrop-min.js b/lib/yui/dragdrop/dragdrop-min.js
deleted file mode 100755 (executable)
index 013ed4c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var A=YAHOO.util.Event;return{ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true;},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(D,C){for(var E in this.ids){for(var B in this.ids[E]){var F=this.ids[E][B];if(!this.isTypeOfDD(F)){continue;}F[D].apply(F,C);}}},_onLoad:function(){this.init();A.on(document,"mouseup",this.handleMouseUp,this,true);A.on(document,"mousemove",this.handleMouseMove,this,true);A.on(window,"unload",this._onUnload,this,true);A.on(window,"resize",this._onResize,this,true);},_onResize:function(B){this._execOnAll("resetConstraints",[]);},lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isLocked:function(){return this.locked;},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,fromTimeout:false,regDragDrop:function(C,B){if(!this.initialized){this.init();}if(!this.ids[B]){this.ids[B]={};}this.ids[B][C.id]=C;},removeDDFromGroup:function(D,B){if(!this.ids[B]){this.ids[B]={};}var C=this.ids[B];if(C&&C[D.id]){delete C[D.id];}},_remove:function(C){for(var B in C.groups){if(B&&this.ids[B][C.id]){delete this.ids[B][C.id];}}delete this.handleIds[C.id];},regHandle:function(C,B){if(!this.handleIds[C]){this.handleIds[C]={};}this.handleIds[C][B]=B;},isDragDrop:function(B){return(this.getDDById(B))?true:false;},getRelated:function(G,C){var F=[];for(var E in G.groups){for(var D in this.ids[E]){var B=this.ids[E][D];if(!this.isTypeOfDD(B)){continue;}if(!C||B.isTarget){F[F.length]=B;}}}return F;},isLegalTarget:function(F,E){var C=this.getRelated(F,true);for(var D=0,B=C.length;D<B;++D){if(C[D].id==E.id){return true;}}return false;},isTypeOfDD:function(B){return(B&&B.__ygDragDrop);},isHandle:function(C,B){return(this.handleIds[C]&&this.handleIds[C][B]);},getDDById:function(C){for(var B in this.ids){if(this.ids[B][C]){return this.ids[B][C];}}return null;},handleMouseDown:function(D,C){this.currentTarget=YAHOO.util.Event.getTarget(D);this.dragCurrent=C;var B=C.getEl();this.startX=YAHOO.util.Event.getPageX(D);this.startY=YAHOO.util.Event.getPageY(D);this.deltaX=this.startX-B.offsetLeft;this.deltaY=this.startY-B.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var E=YAHOO.util.DDM;E.startDrag(E.startX,E.startY);E.fromTimeout=true;},this.clickTimeThresh);},startDrag:function(B,D){clearTimeout(this.clickTimeout);var C=this.dragCurrent;if(C&&C.events.b4StartDrag){C.b4StartDrag(B,D);C.fireEvent("b4StartDragEvent",{x:B,y:D});}if(C&&C.events.startDrag){C.startDrag(B,D);C.fireEvent("startDragEvent",{x:B,y:D});}this.dragThreshMet=true;},handleMouseUp:function(B){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.handleMouseMove(B);}this.fromTimeout=false;this.fireEvents(B,true);}else{}this.stopDrag(B);this.stopEvent(B);}},stopEvent:function(B){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(B);}if(this.preventDefault){YAHOO.util.Event.preventDefault(B);}},stopDrag:function(D,C){var B=this.dragCurrent;if(B&&!C){if(this.dragThreshMet){if(B.events.b4EndDrag){B.b4EndDrag(D);B.fireEvent("b4EndDragEvent",{e:D});}if(B.events.endDrag){B.endDrag(D);B.fireEvent("endDragEvent",{e:D});}}if(B.events.mouseUp){B.onMouseUp(D);B.fireEvent("mouseUpEvent",{e:D});}}this.dragCurrent=null;this.dragOvers={};},handleMouseMove:function(E){var B=this.dragCurrent;if(B){if(YAHOO.util.Event.isIE&&!E.button){this.stopEvent(E);return this.handleMouseUp(E);}else{if(E.clientX<0||E.clientY<0){}}if(!this.dragThreshMet){var D=Math.abs(this.startX-YAHOO.util.Event.getPageX(E));var C=Math.abs(this.startY-YAHOO.util.Event.getPageY(E));if(D>this.clickPixelThresh||C>this.clickPixelThresh){this.startDrag(this.startX,this.startY);}}if(this.dragThreshMet){if(B&&B.events.b4Drag){B.b4Drag(E);B.fireEvent("b4DragEvent",{e:E});}if(B&&B.events.drag){B.onDrag(E);B.fireEvent("dragEvent",{e:E});}if(B){this.fireEvents(E,false);}}this.stopEvent(E);}},fireEvents:function(U,K){var Z=this.dragCurrent;if(!Z||Z.isLocked()||Z.dragOnly){return ;}var M=YAHOO.util.Event.getPageX(U),L=YAHOO.util.Event.getPageY(U),O=new YAHOO.util.Point(M,L),J=Z.getTargetCoord(O.x,O.y),E=Z.getDragEl(),D=["out","over","drop","enter"],T=new YAHOO.util.Region(J.y,J.x+E.offsetWidth,J.y+E.offsetHeight,J.x),H=[],C={},P=[],a={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var R in this.dragOvers){var c=this.dragOvers[R];if(!this.isTypeOfDD(c)){continue;}if(!this.isOverTarget(O,c,this.mode,T)){a.outEvts.push(c);}H[R]=true;delete this.dragOvers[R];}for(var Q in Z.groups){if("string"!=typeof Q){continue;}for(R in this.ids[Q]){var F=this.ids[Q][R];if(!this.isTypeOfDD(F)){continue;}if(F.isTarget&&!F.isLocked()&&F!=Z){if(this.isOverTarget(O,F,this.mode,T)){C[Q]=true;if(K){a.dropEvts.push(F);}else{if(!H[F.id]){a.enterEvts.push(F);}else{a.overEvts.push(F);}this.dragOvers[F.id]=F;}}}}}this.interactionInfo={out:a.outEvts,enter:a.enterEvts,over:a.overEvts,drop:a.dropEvts,point:O,draggedRegion:T,sourceRegion:this.locationCache[Z.id],validDrop:K};for(var B in C){P.push(B);}if(K&&!a.dropEvts.length){this.interactionInfo.validDrop=false;if(Z.events.invalidDrop){Z.onInvalidDrop(U);Z.fireEvent("invalidDropEvent",{e:U});}}for(R=0;R<D.length;R++){var X=null;if(a[D[R]+"Evts"]){X=a[D[R]+"Evts"];}if(X&&X.length){var G=D[R].charAt(0).toUpperCase()+D[R].substr(1),W="onDrag"+G,I="b4Drag"+G,N="drag"+G+"Event",V="drag"+G;if(this.mode){if(Z.events[I]){Z[I](U,X,P);Z.fireEvent(I+"Event",{event:U,info:X,group:P});}if(Z.events[V]){Z[W](U,X,P);Z.fireEvent(N,{event:U,info:X,group:P});}}else{for(var Y=0,S=X.length;Y<S;++Y){if(Z.events[I]){Z[I](U,X[Y].id,P[0]);Z.fireEvent(I+"Event",{event:U,info:X[Y].id,group:P[0]});}if(Z.events[V]){Z[W](U,X[Y].id,P[0]);Z.fireEvent(N,{event:U,info:X[Y].id,group:P[0]});}}}}}},getBestMatch:function(D){var F=null;
-var C=D.length;if(C==1){F=D[0];}else{for(var E=0;E<C;++E){var B=D[E];if(this.mode==this.INTERSECT&&B.cursorIsOver){F=B;break;}else{if(!F||!F.overlap||(B.overlap&&F.overlap.getArea()<B.overlap.getArea())){F=B;}}}}return F;},refreshCache:function(C){var E=C||this.ids;for(var B in E){if("string"!=typeof B){continue;}for(var D in this.ids[B]){var F=this.ids[B][D];if(this.isTypeOfDD(F)){var G=this.getLocation(F);if(G){this.locationCache[F.id]=G;}else{delete this.locationCache[F.id];}}}}},verifyEl:function(C){try{if(C){var B=C.offsetParent;if(B){return true;}}}catch(D){}return false;},getLocation:function(G){if(!this.isTypeOfDD(G)){return null;}var E=G.getEl(),J,D,C,L,K,M,B,I,F;try{J=YAHOO.util.Dom.getXY(E);}catch(H){}if(!J){return null;}D=J[0];C=D+E.offsetWidth;L=J[1];K=L+E.offsetHeight;M=L-G.padding[0];B=C+G.padding[1];I=K+G.padding[2];F=D-G.padding[3];return new YAHOO.util.Region(M,B,I,F);},isOverTarget:function(J,B,D,E){var F=this.locationCache[B.id];if(!F||!this.useCache){F=this.getLocation(B);this.locationCache[B.id]=F;}if(!F){return false;}B.cursorIsOver=F.contains(J);var I=this.dragCurrent;if(!I||(!D&&!I.constrainX&&!I.constrainY)){return B.cursorIsOver;}B.overlap=null;if(!E){var G=I.getTargetCoord(J.x,J.y);var C=I.getDragEl();E=new YAHOO.util.Region(G.y,G.x+C.offsetWidth,G.y+C.offsetHeight,G.x);}var H=E.intersect(F);if(H){B.overlap=H;return(D)?true:B.cursorIsOver;}else{return false;}},_onUnload:function(C,B){this.unregAll();},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null;}this._execOnAll("unreg",[]);this.ids={};},elementCache:{},getElWrapper:function(C){var B=this.elementCache[C];if(!B||!B.el){B=this.elementCache[C]=new this.ElementWrapper(YAHOO.util.Dom.get(C));}return B;},getElement:function(B){return YAHOO.util.Dom.get(B);},getCss:function(C){var B=YAHOO.util.Dom.get(C);return(B)?B.style:null;},ElementWrapper:function(B){this.el=B||null;this.id=this.el&&B.id;this.css=this.el&&B.style;},getPosX:function(B){return YAHOO.util.Dom.getX(B);},getPosY:function(B){return YAHOO.util.Dom.getY(B);},swapNode:function(D,B){if(D.swapNode){D.swapNode(B);}else{var E=B.parentNode;var C=B.nextSibling;if(C==D){E.insertBefore(D,B);}else{if(B==D.nextSibling){E.insertBefore(B,D);}else{D.parentNode.replaceChild(B,D);E.insertBefore(D,C);}}}},getScroll:function(){var D,B,E=document.documentElement,C=document.body;if(E&&(E.scrollTop||E.scrollLeft)){D=E.scrollTop;B=E.scrollLeft;}else{if(C){D=C.scrollTop;B=C.scrollLeft;}else{}}return{top:D,left:B};},getStyle:function(C,B){return YAHOO.util.Dom.getStyle(C,B);},getScrollTop:function(){return this.getScroll().top;},getScrollLeft:function(){return this.getScroll().left;},moveToEl:function(B,D){var C=YAHOO.util.Dom.getXY(D);YAHOO.util.Dom.setXY(B,C);},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight();},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth();},numericSort:function(C,B){return(C-B);},_timeoutCount:0,_addListeners:function(){var B=YAHOO.util.DDM;if(YAHOO.util.Event&&document){B._onLoad();}else{if(B._timeoutCount>2000){}else{setTimeout(B._addListeners,10);if(document&&document.body){B._timeoutCount+=1;}}}},handleWasClicked:function(B,D){if(this.isHandle(D,B.id)){return true;}else{var C=B.parentNode;while(C){if(this.isHandle(D,C.id)){return true;}else{C=C.parentNode;}}}return false;}};}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners();}(function(){var A=YAHOO.util.Event;var B=YAHOO.util.Dom;YAHOO.util.DragDrop=function(E,C,D){if(E){this.init(E,C,D);}};YAHOO.util.DragDrop.prototype={events:null,on:function(){this.subscribe.apply(this,arguments);},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true;},unlock:function(){this.locked=false;},isTarget:true,padding:null,dragOnly:false,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(C,D){},startDrag:function(C,D){},b4Drag:function(C){},onDrag:function(C){},onDragEnter:function(C,D){},b4DragOver:function(C){},onDragOver:function(C,D){},b4DragOut:function(C){},onDragOut:function(C,D){},b4DragDrop:function(C){},onDragDrop:function(C,D){},onInvalidDrop:function(C){},b4EndDrag:function(C){},endDrag:function(C){},b4MouseDown:function(C){},onMouseDown:function(C){},onMouseUp:function(C){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=B.get(this.id);}return this._domRef;},getDragEl:function(){return B.get(this.dragElId);},init:function(F,C,D){this.initTarget(F,C,D);A.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,true);for(var E in this.events){this.createEvent(E+"Event");}},initTarget:function(E,C,D){this.config=D||{};this.events={};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof E!=="string"){this._domRef=E;E=B.generateId(E);}this.id=E;this.addToGroup((C)?C:"default");this.handleElId=E;A.onAvailable(E,this.handleOnAvailable,this,true);this.setDragElId(E);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();},applyConfig:function(){this.events={mouseDown:true,b4MouseDown:true,mouseUp:true,b4StartDrag:true,startDrag:true,b4EndDrag:true,endDrag:true,drag:true,b4Drag:true,invalidDrop:true,b4DragOut:true,dragOut:true,dragEnter:true,b4DragOver:true,dragOver:true,b4DragDrop:true,dragDrop:true};if(this.config.events){for(var C in this.config.events){if(this.config.events[C]===false){this.events[C]=false;}}}this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);this.dragOnly=((this.config.dragOnly===true)?true:false);},handleOnAvailable:function(){this.available=true;
-this.resetConstraints();this.onAvailable();},setPadding:function(E,C,F,D){if(!C&&0!==C){this.padding=[E,E,E,E];}else{if(!F&&0!==F){this.padding=[E,C,E,C];}else{this.padding=[E,C,F,D];}}},setInitPosition:function(F,E){var G=this.getEl();if(!this.DDM.verifyEl(G)){if(G&&G.style&&(G.style.display=="none")){}else{}return ;}var D=F||0;var C=E||0;var H=B.getXY(G);this.initPageX=H[0]-D;this.initPageY=H[1]-C;this.lastPageX=H[0];this.lastPageY=H[1];this.setStartPosition(H);},setStartPosition:function(D){var C=D||B.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=C[0];this.startPageY=C[1];},addToGroup:function(C){this.groups[C]=true;this.DDM.regDragDrop(this,C);},removeFromGroup:function(C){if(this.groups[C]){delete this.groups[C];}this.DDM.removeDDFromGroup(this,C);},setDragElId:function(C){this.dragElId=C;},setHandleElId:function(C){if(typeof C!=="string"){C=B.generateId(C);}this.handleElId=C;this.DDM.regHandle(this.id,C);},setOuterHandleElId:function(C){if(typeof C!=="string"){C=B.generateId(C);}A.on(C,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(C);this.hasOuterHandles=true;},unreg:function(){A.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this);},isLocked:function(){return(this.DDM.isLocked()||this.locked);},handleMouseDown:function(H,G){var D=H.which||H.button;if(this.primaryButtonOnly&&D>1){return ;}if(this.isLocked()){return ;}var C=this.b4MouseDown(H);if(this.events.b4MouseDown){C=this.fireEvent("b4MouseDownEvent",H);}var E=this.onMouseDown(H);if(this.events.mouseDown){E=this.fireEvent("mouseDownEvent",H);}if((C===false)||(E===false)){return ;}this.DDM.refreshCache(this.groups);var F=new YAHOO.util.Point(A.getPageX(H),A.getPageY(H));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(F,this)){}else{if(this.clickValidator(H)){this.setStartPosition();this.DDM.handleMouseDown(H,this);this.DDM.stopEvent(H);}else{}}},clickValidator:function(D){var C=YAHOO.util.Event.getTarget(D);return(this.isValidHandleChild(C)&&(this.id==this.handleElId||this.DDM.handleWasClicked(C,this.id)));},getTargetCoord:function(E,D){var C=E-this.deltaX;var F=D-this.deltaY;if(this.constrainX){if(C<this.minX){C=this.minX;}if(C>this.maxX){C=this.maxX;}}if(this.constrainY){if(F<this.minY){F=this.minY;}if(F>this.maxY){F=this.maxY;}}C=this.getTick(C,this.xTicks);F=this.getTick(F,this.yTicks);return{x:C,y:F};},addInvalidHandleType:function(C){var D=C.toUpperCase();this.invalidHandleTypes[D]=D;},addInvalidHandleId:function(C){if(typeof C!=="string"){C=B.generateId(C);}this.invalidHandleIds[C]=C;},addInvalidHandleClass:function(C){this.invalidHandleClasses.push(C);},removeInvalidHandleType:function(C){var D=C.toUpperCase();delete this.invalidHandleTypes[D];},removeInvalidHandleId:function(C){if(typeof C!=="string"){C=B.generateId(C);}delete this.invalidHandleIds[C];},removeInvalidHandleClass:function(D){for(var E=0,C=this.invalidHandleClasses.length;E<C;++E){if(this.invalidHandleClasses[E]==D){delete this.invalidHandleClasses[E];}}},isValidHandleChild:function(F){var E=true;var H;try{H=F.nodeName.toUpperCase();}catch(G){H=F.nodeName;}E=E&&!this.invalidHandleTypes[H];E=E&&!this.invalidHandleIds[F.id];for(var D=0,C=this.invalidHandleClasses.length;E&&D<C;++D){E=!B.hasClass(F,this.invalidHandleClasses[D]);}return E;},setXTicks:function(F,C){this.xTicks=[];this.xTickSize=C;var E={};for(var D=this.initPageX;D>=this.minX;D=D-C){if(!E[D]){this.xTicks[this.xTicks.length]=D;E[D]=true;}}for(D=this.initPageX;D<=this.maxX;D=D+C){if(!E[D]){this.xTicks[this.xTicks.length]=D;E[D]=true;}}this.xTicks.sort(this.DDM.numericSort);},setYTicks:function(F,C){this.yTicks=[];this.yTickSize=C;var E={};for(var D=this.initPageY;D>=this.minY;D=D-C){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true;}}for(D=this.initPageY;D<=this.maxY;D=D+C){if(!E[D]){this.yTicks[this.yTicks.length]=D;E[D]=true;}}this.yTicks.sort(this.DDM.numericSort);},setXConstraint:function(E,D,C){this.leftConstraint=parseInt(E,10);this.rightConstraint=parseInt(D,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(C){this.setXTicks(this.initPageX,C);}this.constrainX=true;},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks();},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0;},setYConstraint:function(C,E,D){this.topConstraint=parseInt(C,10);this.bottomConstraint=parseInt(E,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(D){this.setYTicks(this.initPageY,D);}this.constrainY=true;},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var D=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var C=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(D,C);}else{this.setInitPosition();}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize);}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize);}},getTick:function(I,F){if(!F){return I;}else{if(F[0]>=I){return F[0];}else{for(var D=0,C=F.length;D<C;++D){var E=D+1;if(F[E]&&F[E]>=I){var H=I-F[D];var G=F[E]-I;return(G>H)?F[D]:F[E];}}return F[F.length-1];}}},toString:function(){return("DragDrop "+this.id);}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider);})();YAHOO.util.DD=function(C,A,B){if(C){this.init(C,A,B);}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(C,B){var A=C-this.startPageX;var D=B-this.startPageY;this.setDelta(A,D);},setDelta:function(B,A){this.deltaX=B;this.deltaY=A;},setDragElPos:function(C,B){var A=this.getDragEl();this.alignElWithMouse(A,C,B);},alignElWithMouse:function(C,G,F){var E=this.getTargetCoord(G,F);if(!this.deltaSetXY){var H=[E.x,E.y];YAHOO.util.Dom.setXY(C,H);var D=parseInt(YAHOO.util.Dom.getStyle(C,"left"),10);var B=parseInt(YAHOO.util.Dom.getStyle(C,"top"),10);this.deltaSetXY=[D-E.x,B-E.y];}else{YAHOO.util.Dom.setStyle(C,"left",(E.x+this.deltaSetXY[0])+"px");
-YAHOO.util.Dom.setStyle(C,"top",(E.y+this.deltaSetXY[1])+"px");}this.cachePosition(E.x,E.y);var A=this;setTimeout(function(){A.autoScroll.call(A,E.x,E.y,C.offsetHeight,C.offsetWidth);},0);},cachePosition:function(B,A){if(B){this.lastPageX=B;this.lastPageY=A;}else{var C=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=C[0];this.lastPageY=C[1];}},autoScroll:function(J,I,E,K){if(this.scroll){var L=this.DDM.getClientHeight();var B=this.DDM.getClientWidth();var N=this.DDM.getScrollTop();var D=this.DDM.getScrollLeft();var H=E+I;var M=K+J;var G=(L+N-I-this.deltaY);var F=(B+D-J-this.deltaX);var C=40;var A=(document.all)?80:30;if(H>L&&G<C){window.scrollTo(D,N+A);}if(I<N&&N>0&&I-N<C){window.scrollTo(D,N-A);}if(M>B&&F<C){window.scrollTo(D+A,N);}if(J<D&&D>0&&J-D<C){window.scrollTo(D-A,N);}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false);},b4MouseDown:function(A){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(A),YAHOO.util.Event.getPageY(A));},b4Drag:function(A){this.setDragElPos(YAHOO.util.Event.getPageX(A),YAHOO.util.Event.getPageY(A));},toString:function(){return("DD "+this.id);}});YAHOO.util.DDProxy=function(C,A,B){if(C){this.init(C,A,B);this.initFrame();}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var B=this,A=document.body;if(!A||!A.firstChild){setTimeout(function(){B.createFrame();},50);return ;}var G=this.getDragEl(),E=YAHOO.util.Dom;if(!G){G=document.createElement("div");G.id=this.dragElId;var D=G.style;D.position="absolute";D.visibility="hidden";D.cursor="move";D.border="2px solid #aaa";D.zIndex=999;D.height="25px";D.width="25px";var C=document.createElement("div");E.setStyle(C,"height","100%");E.setStyle(C,"width","100%");E.setStyle(C,"background-color","#ccc");E.setStyle(C,"opacity","0");G.appendChild(C);if(YAHOO.env.ua.ie){var F=document.createElement("iframe");F.setAttribute("src","about:blank");F.setAttribute("scrolling","no");F.setAttribute("frameborder","0");G.insertBefore(F,G.firstChild);E.setStyle(F,"height","100%");E.setStyle(F,"width","100%");E.setStyle(F,"position","absolute");E.setStyle(F,"top","0");E.setStyle(F,"left","0");E.setStyle(F,"opacity","0");E.setStyle(F,"zIndex","-1");E.setStyle(F.nextSibling,"zIndex","2");}A.insertBefore(G,A.firstChild);}},initFrame:function(){this.createFrame();},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId);},showFrame:function(E,D){var C=this.getEl();var A=this.getDragEl();var B=A.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(B.width,10)/2),Math.round(parseInt(B.height,10)/2));}this.setDragElPos(E,D);YAHOO.util.Dom.setStyle(A,"visibility","visible");},_resizeProxy:function(){if(this.resizeFrame){var H=YAHOO.util.Dom;var B=this.getEl();var C=this.getDragEl();var G=parseInt(H.getStyle(C,"borderTopWidth"),10);var I=parseInt(H.getStyle(C,"borderRightWidth"),10);var F=parseInt(H.getStyle(C,"borderBottomWidth"),10);var D=parseInt(H.getStyle(C,"borderLeftWidth"),10);if(isNaN(G)){G=0;}if(isNaN(I)){I=0;}if(isNaN(F)){F=0;}if(isNaN(D)){D=0;}var E=Math.max(0,B.offsetWidth-I-D);var A=Math.max(0,B.offsetHeight-G-F);H.setStyle(C,"width",E+"px");H.setStyle(C,"height",A+"px");}},b4MouseDown:function(B){this.setStartPosition();var A=YAHOO.util.Event.getPageX(B);var C=YAHOO.util.Event.getPageY(B);this.autoOffset(A,C);},b4StartDrag:function(A,B){this.showFrame(A,B);},b4EndDrag:function(A){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden");},endDrag:function(D){var C=YAHOO.util.Dom;var B=this.getEl();var A=this.getDragEl();C.setStyle(A,"visibility","");C.setStyle(B,"visibility","hidden");YAHOO.util.DDM.moveToEl(B,A);C.setStyle(A,"visibility","hidden");C.setStyle(B,"visibility","");},toString:function(){return("DDProxy "+this.id);}});YAHOO.util.DDTarget=function(C,A,B){if(C){this.initTarget(C,A,B);}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id);}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/dragdrop/dragdrop.js b/lib/yui/dragdrop/dragdrop.js
deleted file mode 100755 (executable)
index b9ca8ed..0000000
+++ /dev/null
@@ -1,3481 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * The drag and drop utility provides a framework for building drag and drop
- * applications.  In addition to enabling drag and drop for specific elements,
- * the drag and drop elements are tracked by the manager class, and the
- * interactions between the various elements are tracked during the drag and
- * the implementing code is notified about these important moments.
- * @module dragdrop
- * @title Drag and Drop
- * @requires yahoo,dom,event
- * @namespace YAHOO.util
- */
-
-// Only load the library once.  Rewriting the manager class would orphan 
-// existing drag and drop instances.
-if (!YAHOO.util.DragDropMgr) {
-
-/**
- * DragDropMgr is a singleton that tracks the element interaction for 
- * all DragDrop items in the window.  Generally, you will not call 
- * this class directly, but it does have helper methods that could 
- * be useful in your DragDrop implementations.
- * @class DragDropMgr
- * @static
- */
-YAHOO.util.DragDropMgr = function() {
-
-    var Event = YAHOO.util.Event;
-
-    return {
-        /**
-         * Two dimensional Array of registered DragDrop objects.  The first 
-         * dimension is the DragDrop item group, the second the DragDrop 
-         * object.
-         * @property ids
-         * @type {string: string}
-         * @private
-         * @static
-         */
-        ids: {},
-
-        /**
-         * Array of element ids defined as drag handles.  Used to determine 
-         * if the element that generated the mousedown event is actually the 
-         * handle and not the html element itself.
-         * @property handleIds
-         * @type {string: string}
-         * @private
-         * @static
-         */
-        handleIds: {},
-
-        /**
-         * the DragDrop object that is currently being dragged
-         * @property dragCurrent
-         * @type DragDrop
-         * @private
-         * @static
-         **/
-        dragCurrent: null,
-
-        /**
-         * the DragDrop object(s) that are being hovered over
-         * @property dragOvers
-         * @type Array
-         * @private
-         * @static
-         */
-        dragOvers: {},
-
-        /**
-         * the X distance between the cursor and the object being dragged
-         * @property deltaX
-         * @type int
-         * @private
-         * @static
-         */
-        deltaX: 0,
-
-        /**
-         * the Y distance between the cursor and the object being dragged
-         * @property deltaY
-         * @type int
-         * @private
-         * @static
-         */
-        deltaY: 0,
-
-        /**
-         * Flag to determine if we should prevent the default behavior of the
-         * events we define. By default this is true, but this can be set to 
-         * false if you need the default behavior (not recommended)
-         * @property preventDefault
-         * @type boolean
-         * @static
-         */
-        preventDefault: true,
-
-        /**
-         * Flag to determine if we should stop the propagation of the events 
-         * we generate. This is true by default but you may want to set it to
-         * false if the html element contains other features that require the
-         * mouse click.
-         * @property stopPropagation
-         * @type boolean
-         * @static
-         */
-        stopPropagation: true,
-
-        /**
-         * Internal flag that is set to true when drag and drop has been
-         * initialized
-         * @property initialized
-         * @private
-         * @static
-         */
-        initialized: false,
-
-        /**
-         * All drag and drop can be disabled.
-         * @property locked
-         * @private
-         * @static
-         */
-        locked: false,
-
-        /**
-         * Provides additional information about the the current set of
-         * interactions.  Can be accessed from the event handlers. It
-         * contains the following properties:
-         *
-         *       out:       onDragOut interactions
-         *       enter:     onDragEnter interactions
-         *       over:      onDragOver interactions
-         *       drop:      onDragDrop interactions
-         *       point:     The location of the cursor
-         *       draggedRegion: The location of dragged element at the time
-         *                      of the interaction
-         *       sourceRegion: The location of the source elemtn at the time
-         *                     of the interaction
-         *       validDrop: boolean
-         * @property interactionInfo
-         * @type object
-         * @static
-         */
-        interactionInfo: null,
-
-        /**
-         * Called the first time an element is registered.
-         * @method init
-         * @private
-         * @static
-         */
-        init: function() {
-            this.initialized = true;
-        },
-
-        /**
-         * In point mode, drag and drop interaction is defined by the 
-         * location of the cursor during the drag/drop
-         * @property POINT
-         * @type int
-         * @static
-         * @final
-         */
-        POINT: 0,
-
-        /**
-         * In intersect mode, drag and drop interaction is defined by the 
-         * cursor position or the amount of overlap of two or more drag and 
-         * drop objects.
-         * @property INTERSECT
-         * @type int
-         * @static
-         * @final
-         */
-        INTERSECT: 1,
-
-        /**
-         * In intersect mode, drag and drop interaction is defined only by the 
-         * overlap of two or more drag and drop objects.
-         * @property STRICT_INTERSECT
-         * @type int
-         * @static
-         * @final
-         */
-        STRICT_INTERSECT: 2,
-
-        /**
-         * The current drag and drop mode.  Default: POINT
-         * @property mode
-         * @type int
-         * @static
-         */
-        mode: 0,
-
-        /**
-         * Runs method on all drag and drop objects
-         * @method _execOnAll
-         * @private
-         * @static
-         */
-        _execOnAll: function(sMethod, args) {
-            for (var i in this.ids) {
-                for (var j in this.ids[i]) {
-                    var oDD = this.ids[i][j];
-                    if (! this.isTypeOfDD(oDD)) {
-                        continue;
-                    }
-                    oDD[sMethod].apply(oDD, args);
-                }
-            }
-        },
-
-        /**
-         * Drag and drop initialization.  Sets up the global event handlers
-         * @method _onLoad
-         * @private
-         * @static
-         */
-        _onLoad: function() {
-
-            this.init();
-
-
-            Event.on(document, "mouseup",   this.handleMouseUp, this, true);
-            Event.on(document, "mousemove", this.handleMouseMove, this, true);
-            Event.on(window,   "unload",    this._onUnload, this, true);
-            Event.on(window,   "resize",    this._onResize, this, true);
-            // Event.on(window,   "mouseout",    this._test);
-
-        },
-
-        /**
-         * Reset constraints on all drag and drop objs
-         * @method _onResize
-         * @private
-         * @static
-         */
-        _onResize: function(e) {
-            this._execOnAll("resetConstraints", []);
-        },
-
-        /**
-         * Lock all drag and drop functionality
-         * @method lock
-         * @static
-         */
-        lock: function() { this.locked = true; },
-
-        /**
-         * Unlock all drag and drop functionality
-         * @method unlock
-         * @static
-         */
-        unlock: function() { this.locked = false; },
-
-        /**
-         * Is drag and drop locked?
-         * @method isLocked
-         * @return {boolean} True if drag and drop is locked, false otherwise.
-         * @static
-         */
-        isLocked: function() { return this.locked; },
-
-        /**
-         * Location cache that is set for all drag drop objects when a drag is
-         * initiated, cleared when the drag is finished.
-         * @property locationCache
-         * @private
-         * @static
-         */
-        locationCache: {},
-
-        /**
-         * Set useCache to false if you want to force object the lookup of each
-         * drag and drop linked element constantly during a drag.
-         * @property useCache
-         * @type boolean
-         * @static
-         */
-        useCache: true,
-
-        /**
-         * The number of pixels that the mouse needs to move after the 
-         * mousedown before the drag is initiated.  Default=3;
-         * @property clickPixelThresh
-         * @type int
-         * @static
-         */
-        clickPixelThresh: 3,
-
-        /**
-         * The number of milliseconds after the mousedown event to initiate the
-         * drag if we don't get a mouseup event. Default=1000
-         * @property clickTimeThresh
-         * @type int
-         * @static
-         */
-        clickTimeThresh: 1000,
-
-        /**
-         * Flag that indicates that either the drag pixel threshold or the 
-         * mousdown time threshold has been met
-         * @property dragThreshMet
-         * @type boolean
-         * @private
-         * @static
-         */
-        dragThreshMet: false,
-
-        /**
-         * Timeout used for the click time threshold
-         * @property clickTimeout
-         * @type Object
-         * @private
-         * @static
-         */
-        clickTimeout: null,
-
-        /**
-         * The X position of the mousedown event stored for later use when a 
-         * drag threshold is met.
-         * @property startX
-         * @type int
-         * @private
-         * @static
-         */
-        startX: 0,
-
-        /**
-         * The Y position of the mousedown event stored for later use when a 
-         * drag threshold is met.
-         * @property startY
-         * @type int
-         * @private
-         * @static
-         */
-        startY: 0,
-
-        /**
-         * Flag to determine if the drag event was fired from the click timeout and
-         * not the mouse move threshold.
-         * @property fromTimeout
-         * @type boolean
-         * @private
-         * @static
-         */
-        fromTimeout: false,
-
-        /**
-         * Each DragDrop instance must be registered with the DragDropMgr.  
-         * This is executed in DragDrop.init()
-         * @method regDragDrop
-         * @param {DragDrop} oDD the DragDrop object to register
-         * @param {String} sGroup the name of the group this element belongs to
-         * @static
-         */
-        regDragDrop: function(oDD, sGroup) {
-            if (!this.initialized) { this.init(); }
-            
-            if (!this.ids[sGroup]) {
-                this.ids[sGroup] = {};
-            }
-            this.ids[sGroup][oDD.id] = oDD;
-        },
-
-        /**
-         * Removes the supplied dd instance from the supplied group. Executed
-         * by DragDrop.removeFromGroup, so don't call this function directly.
-         * @method removeDDFromGroup
-         * @private
-         * @static
-         */
-        removeDDFromGroup: function(oDD, sGroup) {
-            if (!this.ids[sGroup]) {
-                this.ids[sGroup] = {};
-            }
-
-            var obj = this.ids[sGroup];
-            if (obj && obj[oDD.id]) {
-                delete obj[oDD.id];
-            }
-        },
-
-        /**
-         * Unregisters a drag and drop item.  This is executed in 
-         * DragDrop.unreg, use that method instead of calling this directly.
-         * @method _remove
-         * @private
-         * @static
-         */
-        _remove: function(oDD) {
-            for (var g in oDD.groups) {
-                if (g && this.ids[g][oDD.id]) {
-                    delete this.ids[g][oDD.id];
-                }
-            }
-            delete this.handleIds[oDD.id];
-        },
-
-        /**
-         * Each DragDrop handle element must be registered.  This is done
-         * automatically when executing DragDrop.setHandleElId()
-         * @method regHandle
-         * @param {String} sDDId the DragDrop id this element is a handle for
-         * @param {String} sHandleId the id of the element that is the drag 
-         * handle
-         * @static
-         */
-        regHandle: function(sDDId, sHandleId) {
-            if (!this.handleIds[sDDId]) {
-                this.handleIds[sDDId] = {};
-            }
-            this.handleIds[sDDId][sHandleId] = sHandleId;
-        },
-
-        /**
-         * Utility function to determine if a given element has been 
-         * registered as a drag drop item.
-         * @method isDragDrop
-         * @param {String} id the element id to check
-         * @return {boolean} true if this element is a DragDrop item, 
-         * false otherwise
-         * @static
-         */
-        isDragDrop: function(id) {
-            return ( this.getDDById(id) ) ? true : false;
-        },
-
-        /**
-         * Returns the drag and drop instances that are in all groups the
-         * passed in instance belongs to.
-         * @method getRelated
-         * @param {DragDrop} p_oDD the obj to get related data for
-         * @param {boolean} bTargetsOnly if true, only return targetable objs
-         * @return {DragDrop[]} the related instances
-         * @static
-         */
-        getRelated: function(p_oDD, bTargetsOnly) {
-            var oDDs = [];
-            for (var i in p_oDD.groups) {
-                for (var j in this.ids[i]) {
-                    var dd = this.ids[i][j];
-                    if (! this.isTypeOfDD(dd)) {
-                        continue;
-                    }
-                    if (!bTargetsOnly || dd.isTarget) {
-                        oDDs[oDDs.length] = dd;
-                    }
-                }
-            }
-
-            return oDDs;
-        },
-
-        /**
-         * Returns true if the specified dd target is a legal target for 
-         * the specifice drag obj
-         * @method isLegalTarget
-         * @param {DragDrop} the drag obj
-         * @param {DragDrop} the target
-         * @return {boolean} true if the target is a legal target for the 
-         * dd obj
-         * @static
-         */
-        isLegalTarget: function (oDD, oTargetDD) {
-            var targets = this.getRelated(oDD, true);
-            for (var i=0, len=targets.length;i<len;++i) {
-                if (targets[i].id == oTargetDD.id) {
-                    return true;
-                }
-            }
-
-            return false;
-        },
-
-        /**
-         * My goal is to be able to transparently determine if an object is
-         * typeof DragDrop, and the exact subclass of DragDrop.  typeof 
-         * returns "object", oDD.constructor.toString() always returns
-         * "DragDrop" and not the name of the subclass.  So for now it just
-         * evaluates a well-known variable in DragDrop.
-         * @method isTypeOfDD
-         * @param {Object} the object to evaluate
-         * @return {boolean} true if typeof oDD = DragDrop
-         * @static
-         */
-        isTypeOfDD: function (oDD) {
-            return (oDD && oDD.__ygDragDrop);
-        },
-
-        /**
-         * Utility function to determine if a given element has been 
-         * registered as a drag drop handle for the given Drag Drop object.
-         * @method isHandle
-         * @param {String} id the element id to check
-         * @return {boolean} true if this element is a DragDrop handle, false 
-         * otherwise
-         * @static
-         */
-        isHandle: function(sDDId, sHandleId) {
-            return ( this.handleIds[sDDId] && 
-                            this.handleIds[sDDId][sHandleId] );
-        },
-
-        /**
-         * Returns the DragDrop instance for a given id
-         * @method getDDById
-         * @param {String} id the id of the DragDrop object
-         * @return {DragDrop} the drag drop object, null if it is not found
-         * @static
-         */
-        getDDById: function(id) {
-            for (var i in this.ids) {
-                if (this.ids[i][id]) {
-                    return this.ids[i][id];
-                }
-            }
-            return null;
-        },
-
-        /**
-         * Fired after a registered DragDrop object gets the mousedown event.
-         * Sets up the events required to track the object being dragged
-         * @method handleMouseDown
-         * @param {Event} e the event
-         * @param oDD the DragDrop object being dragged
-         * @private
-         * @static
-         */
-        handleMouseDown: function(e, oDD) {
-
-            this.currentTarget = YAHOO.util.Event.getTarget(e);
-
-            this.dragCurrent = oDD;
-
-            var el = oDD.getEl();
-
-            // track start position
-            this.startX = YAHOO.util.Event.getPageX(e);
-            this.startY = YAHOO.util.Event.getPageY(e);
-
-            this.deltaX = this.startX - el.offsetLeft;
-            this.deltaY = this.startY - el.offsetTop;
-
-            this.dragThreshMet = false;
-
-            this.clickTimeout = setTimeout( 
-                    function() { 
-                        var DDM = YAHOO.util.DDM;
-                        DDM.startDrag(DDM.startX, DDM.startY);
-                        DDM.fromTimeout = true;
-                    }, 
-                    this.clickTimeThresh );
-        },
-
-        /**
-         * Fired when either the drag pixel threshol or the mousedown hold 
-         * time threshold has been met.
-         * @method startDrag
-         * @param x {int} the X position of the original mousedown
-         * @param y {int} the Y position of the original mousedown
-         * @static
-         */
-        startDrag: function(x, y) {
-            clearTimeout(this.clickTimeout);
-            var dc = this.dragCurrent;
-            if (dc && dc.events.b4StartDrag) {
-                dc.b4StartDrag(x, y);
-                dc.fireEvent('b4StartDragEvent', { x: x, y: y });
-            }
-            if (dc && dc.events.startDrag) {
-                dc.startDrag(x, y);
-                dc.fireEvent('startDragEvent', { x: x, y: y });
-            }
-            this.dragThreshMet = true;
-        },
-
-        /**
-         * Internal function to handle the mouseup event.  Will be invoked 
-         * from the context of the document.
-         * @method handleMouseUp
-         * @param {Event} e the event
-         * @private
-         * @static
-         */
-        handleMouseUp: function(e) {
-            if (this.dragCurrent) {
-                clearTimeout(this.clickTimeout);
-
-                if (this.dragThreshMet) {
-                    if (this.fromTimeout) {
-                        this.handleMouseMove(e);
-                    }
-                    this.fromTimeout = false;
-                    this.fireEvents(e, true);
-                } else {
-                }
-
-                this.stopDrag(e);
-
-                this.stopEvent(e);
-            }
-        },
-
-        /**
-         * Utility to stop event propagation and event default, if these 
-         * features are turned on.
-         * @method stopEvent
-         * @param {Event} e the event as returned by this.getEvent()
-         * @static
-         */
-        stopEvent: function(e) {
-            if (this.stopPropagation) {
-                YAHOO.util.Event.stopPropagation(e);
-            }
-
-            if (this.preventDefault) {
-                YAHOO.util.Event.preventDefault(e);
-            }
-        },
-
-        /** 
-         * Ends the current drag, cleans up the state, and fires the endDrag
-         * and mouseUp events.  Called internally when a mouseup is detected
-         * during the drag.  Can be fired manually during the drag by passing
-         * either another event (such as the mousemove event received in onDrag)
-         * or a fake event with pageX and pageY defined (so that endDrag and
-         * onMouseUp have usable position data.).  Alternatively, pass true
-         * for the silent parameter so that the endDrag and onMouseUp events
-         * are skipped (so no event data is needed.)
-         *
-         * @method stopDrag
-         * @param {Event} e the mouseup event, another event (or a fake event) 
-         *                  with pageX and pageY defined, or nothing if the 
-         *                  silent parameter is true
-         * @param {boolean} silent skips the enddrag and mouseup events if true
-         * @static
-         */
-        stopDrag: function(e, silent) {
-            var dc = this.dragCurrent;
-            // Fire the drag end event for the item that was dragged
-            if (dc && !silent) {
-                if (this.dragThreshMet) {
-                    if (dc.events.b4EndDrag) {
-                        dc.b4EndDrag(e);
-                        dc.fireEvent('b4EndDragEvent', { e: e });
-                    }
-                    if (dc.events.endDrag) {
-                        dc.endDrag(e);
-                        dc.fireEvent('endDragEvent', { e: e });
-                    }
-                }
-                if (dc.events.mouseUp) {
-                    dc.onMouseUp(e);
-                    dc.fireEvent('mouseUpEvent', { e: e });
-                }
-            }
-
-            this.dragCurrent = null;
-            this.dragOvers = {};
-        },
-
-        /** 
-         * Internal function to handle the mousemove event.  Will be invoked 
-         * from the context of the html element.
-         *
-         * @TODO figure out what we can do about mouse events lost when the 
-         * user drags objects beyond the window boundary.  Currently we can 
-         * detect this in internet explorer by verifying that the mouse is 
-         * down during the mousemove event.  Firefox doesn't give us the 
-         * button state on the mousemove event.
-         * @method handleMouseMove
-         * @param {Event} e the event
-         * @private
-         * @static
-         */
-        handleMouseMove: function(e) {
-            
-            var dc = this.dragCurrent;
-            if (dc) {
-
-                // var button = e.which || e.button;
-
-                // check for IE mouseup outside of page boundary
-                if (YAHOO.util.Event.isIE && !e.button) {
-                    this.stopEvent(e);
-                    return this.handleMouseUp(e);
-                } else {
-                    if (e.clientX < 0 || e.clientY < 0) {
-                        //This will stop the element from leaving the viewport in FF, Opera & Safari
-                        //Not turned on yet
-                        //this.stopEvent(e);
-                        //return false;
-                    }
-                }
-
-                if (!this.dragThreshMet) {
-                    var diffX = Math.abs(this.startX - YAHOO.util.Event.getPageX(e));
-                    var diffY = Math.abs(this.startY - YAHOO.util.Event.getPageY(e));
-                    if (diffX > this.clickPixelThresh || 
-                                diffY > this.clickPixelThresh) {
-                        this.startDrag(this.startX, this.startY);
-                    }
-                }
-
-                if (this.dragThreshMet) {
-                    if (dc && dc.events.b4Drag) {
-                        dc.b4Drag(e);
-                        dc.fireEvent('b4DragEvent', { e: e});
-                    }
-                    if (dc && dc.events.drag) {
-                        dc.onDrag(e);
-                        dc.fireEvent('dragEvent', { e: e});
-                    }
-                    if (dc) {
-                        this.fireEvents(e, false);
-                    }
-                }
-
-                this.stopEvent(e);
-            }
-        },
-        
-        /**
-         * Iterates over all of the DragDrop elements to find ones we are 
-         * hovering over or dropping on
-         * @method fireEvents
-         * @param {Event} e the event
-         * @param {boolean} isDrop is this a drop op or a mouseover op?
-         * @private
-         * @static
-         */
-        fireEvents: function(e, isDrop) {
-            var dc = this.dragCurrent;
-
-            // If the user did the mouse up outside of the window, we could 
-            // get here even though we have ended the drag.
-            // If the config option dragOnly is true, bail out and don't fire the events
-            if (!dc || dc.isLocked() || dc.dragOnly) {
-                return;
-            }
-
-            var x = YAHOO.util.Event.getPageX(e),
-                y = YAHOO.util.Event.getPageY(e),
-                pt = new YAHOO.util.Point(x,y),
-                pos = dc.getTargetCoord(pt.x, pt.y),
-                el = dc.getDragEl(),
-                events = ['out', 'over', 'drop', 'enter'],
-                curRegion = new YAHOO.util.Region( pos.y, 
-                                               pos.x + el.offsetWidth,
-                                               pos.y + el.offsetHeight, 
-                                               pos.x ),
-            
-                oldOvers = [], // cache the previous dragOver array
-                inGroupsObj  = {},
-                inGroups  = [],
-                data = {
-                    outEvts: [],
-                    overEvts: [],
-                    dropEvts: [],
-                    enterEvts: []
-                };
-
-
-            // Check to see if the object(s) we were hovering over is no longer 
-            // being hovered over so we can fire the onDragOut event
-            for (var i in this.dragOvers) {
-
-                var ddo = this.dragOvers[i];
-
-                if (! this.isTypeOfDD(ddo)) {
-                    continue;
-                }
-                if (! this.isOverTarget(pt, ddo, this.mode, curRegion)) {
-                    data.outEvts.push( ddo );
-                }
-
-                oldOvers[i] = true;
-                delete this.dragOvers[i];
-            }
-
-            for (var sGroup in dc.groups) {
-                
-                if ("string" != typeof sGroup) {
-                    continue;
-                }
-
-                for (i in this.ids[sGroup]) {
-                    var oDD = this.ids[sGroup][i];
-                    if (! this.isTypeOfDD(oDD)) {
-                        continue;
-                    }
-
-                    if (oDD.isTarget && !oDD.isLocked() && oDD != dc) {
-                        if (this.isOverTarget(pt, oDD, this.mode, curRegion)) {
-                            inGroupsObj[sGroup] = true;
-                            // look for drop interactions
-                            if (isDrop) {
-                                data.dropEvts.push( oDD );
-                            // look for drag enter and drag over interactions
-                            } else {
-
-                                // initial drag over: dragEnter fires
-                                if (!oldOvers[oDD.id]) {
-                                    data.enterEvts.push( oDD );
-                                // subsequent drag overs: dragOver fires
-                                } else {
-                                    data.overEvts.push( oDD );
-                                }
-
-                                this.dragOvers[oDD.id] = oDD;
-                            }
-                        }
-                    }
-                }
-            }
-
-            this.interactionInfo = {
-                out:       data.outEvts,
-                enter:     data.enterEvts,
-                over:      data.overEvts,
-                drop:      data.dropEvts,
-                point:     pt,
-                draggedRegion:    curRegion,
-                sourceRegion: this.locationCache[dc.id],
-                validDrop: isDrop
-            };
-
-            
-            for (var inG in inGroupsObj) {
-                inGroups.push(inG);
-            }
-
-            // notify about a drop that did not find a target
-            if (isDrop && !data.dropEvts.length) {
-                this.interactionInfo.validDrop = false;
-                if (dc.events.invalidDrop) {
-                    dc.onInvalidDrop(e);
-                    dc.fireEvent('invalidDropEvent', { e: e });
-                }
-            }
-
-            for (i = 0; i < events.length; i++) {
-                var tmp = null;
-                if (data[events[i] + 'Evts']) {
-                    tmp = data[events[i] + 'Evts'];
-                }
-                if (tmp && tmp.length) {
-                    var type = events[i].charAt(0).toUpperCase() + events[i].substr(1),
-                        ev = 'onDrag' + type,
-                        b4 = 'b4Drag' + type,
-                        cev = 'drag' + type + 'Event',
-                        check = 'drag' + type;
-                    
-                    if (this.mode) {
-                        if (dc.events[b4]) {
-                            dc[b4](e, tmp, inGroups);
-                            dc.fireEvent(b4 + 'Event', { event: e, info: tmp, group: inGroups });
-                        }
-                        if (dc.events[check]) {
-                            dc[ev](e, tmp, inGroups);
-                            dc.fireEvent(cev, { event: e, info: tmp, group: inGroups });
-                        }
-                    } else {
-                        for (var b = 0, len = tmp.length; b < len; ++b) {
-                            if (dc.events[b4]) {
-                                dc[b4](e, tmp[b].id, inGroups[0]);
-                                dc.fireEvent(b4 + 'Event', { event: e, info: tmp[b].id, group: inGroups[0] });
-                            }
-                            if (dc.events[check]) {
-                                dc[ev](e, tmp[b].id, inGroups[0]);
-                                dc.fireEvent(cev, { event: e, info: tmp[b].id, group: inGroups[0] });
-                            }
-                        }
-                    }
-                }
-            }
-        },
-
-        /**
-         * Helper function for getting the best match from the list of drag 
-         * and drop objects returned by the drag and drop events when we are 
-         * in INTERSECT mode.  It returns either the first object that the 
-         * cursor is over, or the object that has the greatest overlap with 
-         * the dragged element.
-         * @method getBestMatch
-         * @param  {DragDrop[]} dds The array of drag and drop objects 
-         * targeted
-         * @return {DragDrop}       The best single match
-         * @static
-         */
-        getBestMatch: function(dds) {
-            var winner = null;
-
-            var len = dds.length;
-
-            if (len == 1) {
-                winner = dds[0];
-            } else {
-                // Loop through the targeted items
-                for (var i=0; i<len; ++i) {
-                    var dd = dds[i];
-                    // If the cursor is over the object, it wins.  If the 
-                    // cursor is over multiple matches, the first one we come
-                    // to wins.
-                    if (this.mode == this.INTERSECT && dd.cursorIsOver) {
-                        winner = dd;
-                        break;
-                    // Otherwise the object with the most overlap wins
-                    } else {
-                        if (!winner || !winner.overlap || (dd.overlap &&
-                            winner.overlap.getArea() < dd.overlap.getArea())) {
-                            winner = dd;
-                        }
-                    }
-                }
-            }
-
-            return winner;
-        },
-
-        /**
-         * Refreshes the cache of the top-left and bottom-right points of the 
-         * drag and drop objects in the specified group(s).  This is in the
-         * format that is stored in the drag and drop instance, so typical 
-         * usage is:
-         * <code>
-         * YAHOO.util.DragDropMgr.refreshCache(ddinstance.groups);
-         * </code>
-         * Alternatively:
-         * <code>
-         * YAHOO.util.DragDropMgr.refreshCache({group1:true, group2:true});
-         * </code>
-         * @TODO this really should be an indexed array.  Alternatively this
-         * method could accept both.
-         * @method refreshCache
-         * @param {Object} groups an associative array of groups to refresh
-         * @static
-         */
-        refreshCache: function(groups) {
-
-            // refresh everything if group array is not provided
-            var g = groups || this.ids;
-
-            for (var sGroup in g) {
-                if ("string" != typeof sGroup) {
-                    continue;
-                }
-                for (var i in this.ids[sGroup]) {
-                    var oDD = this.ids[sGroup][i];
-
-                    if (this.isTypeOfDD(oDD)) {
-                        var loc = this.getLocation(oDD);
-                        if (loc) {
-                            this.locationCache[oDD.id] = loc;
-                        } else {
-                            delete this.locationCache[oDD.id];
-                        }
-                    }
-                }
-            }
-        },
-
-        /**
-         * This checks to make sure an element exists and is in the DOM.  The
-         * main purpose is to handle cases where innerHTML is used to remove
-         * drag and drop objects from the DOM.  IE provides an 'unspecified
-         * error' when trying to access the offsetParent of such an element
-         * @method verifyEl
-         * @param {HTMLElement} el the element to check
-         * @return {boolean} true if the element looks usable
-         * @static
-         */
-        verifyEl: function(el) {
-            try {
-                if (el) {
-                    var parent = el.offsetParent;
-                    if (parent) {
-                        return true;
-                    }
-                }
-            } catch(e) {
-            }
-
-            return false;
-        },
-        
-        /**
-         * Returns a Region object containing the drag and drop element's position
-         * and size, including the padding configured for it
-         * @method getLocation
-         * @param {DragDrop} oDD the drag and drop object to get the 
-         *                       location for
-         * @return {YAHOO.util.Region} a Region object representing the total area
-         *                             the element occupies, including any padding
-         *                             the instance is configured for.
-         * @static
-         */
-        getLocation: function(oDD) {
-            if (! this.isTypeOfDD(oDD)) {
-                return null;
-            }
-
-            var el = oDD.getEl(), pos, x1, x2, y1, y2, t, r, b, l;
-
-            try {
-                pos= YAHOO.util.Dom.getXY(el);
-            } catch (e) { }
-
-            if (!pos) {
-                return null;
-            }
-
-            x1 = pos[0];
-            x2 = x1 + el.offsetWidth;
-            y1 = pos[1];
-            y2 = y1 + el.offsetHeight;
-
-            t = y1 - oDD.padding[0];
-            r = x2 + oDD.padding[1];
-            b = y2 + oDD.padding[2];
-            l = x1 - oDD.padding[3];
-
-            return new YAHOO.util.Region( t, r, b, l );
-        },
-
-        /**
-         * Checks the cursor location to see if it over the target
-         * @method isOverTarget
-         * @param {YAHOO.util.Point} pt The point to evaluate
-         * @param {DragDrop} oTarget the DragDrop object we are inspecting
-         * @param {boolean} intersect true if we are in intersect mode
-         * @param {YAHOO.util.Region} pre-cached location of the dragged element
-         * @return {boolean} true if the mouse is over the target
-         * @private
-         * @static
-         */
-        isOverTarget: function(pt, oTarget, intersect, curRegion) {
-            // use cache if available
-            var loc = this.locationCache[oTarget.id];
-            if (!loc || !this.useCache) {
-                loc = this.getLocation(oTarget);
-                this.locationCache[oTarget.id] = loc;
-
-            }
-
-            if (!loc) {
-                return false;
-            }
-
-            oTarget.cursorIsOver = loc.contains( pt );
-
-            // DragDrop is using this as a sanity check for the initial mousedown
-            // in this case we are done.  In POINT mode, if the drag obj has no
-            // contraints, we are done. Otherwise we need to evaluate the 
-            // region the target as occupies to determine if the dragged element
-            // overlaps with it.
-            
-            var dc = this.dragCurrent;
-            if (!dc || (!intersect && !dc.constrainX && !dc.constrainY)) {
-
-                //if (oTarget.cursorIsOver) {
-                //}
-                return oTarget.cursorIsOver;
-            }
-
-            oTarget.overlap = null;
-
-            // Get the current location of the drag element, this is the
-            // location of the mouse event less the delta that represents
-            // where the original mousedown happened on the element.  We
-            // need to consider constraints and ticks as well.
-
-            if (!curRegion) {
-                var pos = dc.getTargetCoord(pt.x, pt.y);
-                var el = dc.getDragEl();
-                curRegion = new YAHOO.util.Region( pos.y, 
-                                                   pos.x + el.offsetWidth,
-                                                   pos.y + el.offsetHeight, 
-                                                   pos.x );
-            }
-
-            var overlap = curRegion.intersect(loc);
-
-            if (overlap) {
-                oTarget.overlap = overlap;
-                return (intersect) ? true : oTarget.cursorIsOver;
-            } else {
-                return false;
-            }
-        },
-
-        /**
-         * unload event handler
-         * @method _onUnload
-         * @private
-         * @static
-         */
-        _onUnload: function(e, me) {
-            this.unregAll();
-        },
-
-        /**
-         * Cleans up the drag and drop events and objects.
-         * @method unregAll
-         * @private
-         * @static
-         */
-        unregAll: function() {
-
-            if (this.dragCurrent) {
-                this.stopDrag();
-                this.dragCurrent = null;
-            }
-
-            this._execOnAll("unreg", []);
-
-            //for (var i in this.elementCache) {
-                //delete this.elementCache[i];
-            //}
-            //this.elementCache = {};
-
-            this.ids = {};
-        },
-
-        /**
-         * A cache of DOM elements
-         * @property elementCache
-         * @private
-         * @static
-         * @deprecated elements are not cached now
-         */
-        elementCache: {},
-        
-        /**
-         * Get the wrapper for the DOM element specified
-         * @method getElWrapper
-         * @param {String} id the id of the element to get
-         * @return {YAHOO.util.DDM.ElementWrapper} the wrapped element
-         * @private
-         * @deprecated This wrapper isn't that useful
-         * @static
-         */
-        getElWrapper: function(id) {
-            var oWrapper = this.elementCache[id];
-            if (!oWrapper || !oWrapper.el) {
-                oWrapper = this.elementCache[id] = 
-                    new this.ElementWrapper(YAHOO.util.Dom.get(id));
-            }
-            return oWrapper;
-        },
-
-        /**
-         * Returns the actual DOM element
-         * @method getElement
-         * @param {String} id the id of the elment to get
-         * @return {Object} The element
-         * @deprecated use YAHOO.util.Dom.get instead
-         * @static
-         */
-        getElement: function(id) {
-            return YAHOO.util.Dom.get(id);
-        },
-        
-        /**
-         * Returns the style property for the DOM element (i.e., 
-         * document.getElById(id).style)
-         * @method getCss
-         * @param {String} id the id of the elment to get
-         * @return {Object} The style property of the element
-         * @deprecated use YAHOO.util.Dom instead
-         * @static
-         */
-        getCss: function(id) {
-            var el = YAHOO.util.Dom.get(id);
-            return (el) ? el.style : null;
-        },
-
-        /**
-         * Inner class for cached elements
-         * @class DragDropMgr.ElementWrapper
-         * @for DragDropMgr
-         * @private
-         * @deprecated
-         */
-        ElementWrapper: function(el) {
-                /**
-                 * The element
-                 * @property el
-                 */
-                this.el = el || null;
-                /**
-                 * The element id
-                 * @property id
-                 */
-                this.id = this.el && el.id;
-                /**
-                 * A reference to the style property
-                 * @property css
-                 */
-                this.css = this.el && el.style;
-            },
-
-        /**
-         * Returns the X position of an html element
-         * @method getPosX
-         * @param el the element for which to get the position
-         * @return {int} the X coordinate
-         * @for DragDropMgr
-         * @deprecated use YAHOO.util.Dom.getX instead
-         * @static
-         */
-        getPosX: function(el) {
-            return YAHOO.util.Dom.getX(el);
-        },
-
-        /**
-         * Returns the Y position of an html element
-         * @method getPosY
-         * @param el the element for which to get the position
-         * @return {int} the Y coordinate
-         * @deprecated use YAHOO.util.Dom.getY instead
-         * @static
-         */
-        getPosY: function(el) {
-            return YAHOO.util.Dom.getY(el); 
-        },
-
-        /**
-         * Swap two nodes.  In IE, we use the native method, for others we 
-         * emulate the IE behavior
-         * @method swapNode
-         * @param n1 the first node to swap
-         * @param n2 the other node to swap
-         * @static
-         */
-        swapNode: function(n1, n2) {
-            if (n1.swapNode) {
-                n1.swapNode(n2);
-            } else {
-                var p = n2.parentNode;
-                var s = n2.nextSibling;
-
-                if (s == n1) {
-                    p.insertBefore(n1, n2);
-                } else if (n2 == n1.nextSibling) {
-                    p.insertBefore(n2, n1);
-                } else {
-                    n1.parentNode.replaceChild(n2, n1);
-                    p.insertBefore(n1, s);
-                }
-            }
-        },
-
-        /**
-         * Returns the current scroll position
-         * @method getScroll
-         * @private
-         * @static
-         */
-        getScroll: function () {
-            var t, l, dde=document.documentElement, db=document.body;
-            if (dde && (dde.scrollTop || dde.scrollLeft)) {
-                t = dde.scrollTop;
-                l = dde.scrollLeft;
-            } else if (db) {
-                t = db.scrollTop;
-                l = db.scrollLeft;
-            } else {
-            }
-            return { top: t, left: l };
-        },
-
-        /**
-         * Returns the specified element style property
-         * @method getStyle
-         * @param {HTMLElement} el          the element
-         * @param {string}      styleProp   the style property
-         * @return {string} The value of the style property
-         * @deprecated use YAHOO.util.Dom.getStyle
-         * @static
-         */
-        getStyle: function(el, styleProp) {
-            return YAHOO.util.Dom.getStyle(el, styleProp);
-        },
-
-        /**
-         * Gets the scrollTop
-         * @method getScrollTop
-         * @return {int} the document's scrollTop
-         * @static
-         */
-        getScrollTop: function () { return this.getScroll().top; },
-
-        /**
-         * Gets the scrollLeft
-         * @method getScrollLeft
-         * @return {int} the document's scrollTop
-         * @static
-         */
-        getScrollLeft: function () { return this.getScroll().left; },
-
-        /**
-         * Sets the x/y position of an element to the location of the
-         * target element.
-         * @method moveToEl
-         * @param {HTMLElement} moveEl      The element to move
-         * @param {HTMLElement} targetEl    The position reference element
-         * @static
-         */
-        moveToEl: function (moveEl, targetEl) {
-            var aCoord = YAHOO.util.Dom.getXY(targetEl);
-            YAHOO.util.Dom.setXY(moveEl, aCoord);
-        },
-
-        /**
-         * Gets the client height
-         * @method getClientHeight
-         * @return {int} client height in px
-         * @deprecated use YAHOO.util.Dom.getViewportHeight instead
-         * @static
-         */
-        getClientHeight: function() {
-            return YAHOO.util.Dom.getViewportHeight();
-        },
-
-        /**
-         * Gets the client width
-         * @method getClientWidth
-         * @return {int} client width in px
-         * @deprecated use YAHOO.util.Dom.getViewportWidth instead
-         * @static
-         */
-        getClientWidth: function() {
-            return YAHOO.util.Dom.getViewportWidth();
-        },
-
-        /**
-         * Numeric array sort function
-         * @method numericSort
-         * @static
-         */
-        numericSort: function(a, b) { return (a - b); },
-
-        /**
-         * Internal counter
-         * @property _timeoutCount
-         * @private
-         * @static
-         */
-        _timeoutCount: 0,
-
-        /**
-         * Trying to make the load order less important.  Without this we get
-         * an error if this file is loaded before the Event Utility.
-         * @method _addListeners
-         * @private
-         * @static
-         */
-        _addListeners: function() {
-            var DDM = YAHOO.util.DDM;
-            if ( YAHOO.util.Event && document ) {
-                DDM._onLoad();
-            } else {
-                if (DDM._timeoutCount > 2000) {
-                } else {
-                    setTimeout(DDM._addListeners, 10);
-                    if (document && document.body) {
-                        DDM._timeoutCount += 1;
-                    }
-                }
-            }
-        },
-
-        /**
-         * Recursively searches the immediate parent and all child nodes for 
-         * the handle element in order to determine wheter or not it was 
-         * clicked.
-         * @method handleWasClicked
-         * @param node the html element to inspect
-         * @static
-         */
-        handleWasClicked: function(node, id) {
-            if (this.isHandle(id, node.id)) {
-                return true;
-            } else {
-                // check to see if this is a text node child of the one we want
-                var p = node.parentNode;
-
-                while (p) {
-                    if (this.isHandle(id, p.id)) {
-                        return true;
-                    } else {
-                        p = p.parentNode;
-                    }
-                }
-            }
-
-            return false;
-        }
-
-    };
-
-}();
-
-// shorter alias, save a few bytes
-YAHOO.util.DDM = YAHOO.util.DragDropMgr;
-YAHOO.util.DDM._addListeners();
-
-}
-
-(function() {
-
-var Event=YAHOO.util.Event; 
-var Dom=YAHOO.util.Dom;
-
-/**
- * Defines the interface and base operation of items that that can be 
- * dragged or can be drop targets.  It was designed to be extended, overriding
- * the event handlers for startDrag, onDrag, onDragOver, onDragOut.
- * Up to three html elements can be associated with a DragDrop instance:
- * <ul>
- * <li>linked element: the element that is passed into the constructor.
- * This is the element which defines the boundaries for interaction with 
- * other DragDrop objects.</li>
- * <li>handle element(s): The drag operation only occurs if the element that 
- * was clicked matches a handle element.  By default this is the linked 
- * element, but there are times that you will want only a portion of the 
- * linked element to initiate the drag operation, and the setHandleElId() 
- * method provides a way to define this.</li>
- * <li>drag element: this represents an the element that would be moved along
- * with the cursor during a drag operation.  By default, this is the linked
- * element itself as in {@link YAHOO.util.DD}.  setDragElId() lets you define
- * a separate element that would be moved, as in {@link YAHOO.util.DDProxy}
- * </li>
- * </ul>
- * This class should not be instantiated until the onload event to ensure that
- * the associated elements are available.
- * The following would define a DragDrop obj that would interact with any 
- * other DragDrop obj in the "group1" group:
- * <pre>
- *  dd = new YAHOO.util.DragDrop("div1", "group1");
- * </pre>
- * Since none of the event handlers have been implemented, nothing would 
- * actually happen if you were to run the code above.  Normally you would 
- * override this class or one of the default implementations, but you can 
- * also override the methods you want on an instance of the class...
- * <pre>
- *  dd.onDragDrop = function(e, id) {
- *  &nbsp;&nbsp;alert("dd was dropped on " + id);
- *  }
- * </pre>
- * @namespace YAHOO.util
- * @class DragDrop
- * @constructor
- * @param {String} id of the element that is linked to this instance
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- *                Valid properties for DragDrop: 
- *                    padding, isTarget, maintainOffset, primaryButtonOnly,
- */
-YAHOO.util.DragDrop = function(id, sGroup, config) {
-    if (id) {
-        this.init(id, sGroup, config); 
-    }
-};
-
-YAHOO.util.DragDrop.prototype = {
-    /**
-     * An Object Literal containing the events that we will be using: mouseDown, b4MouseDown, mouseUp, b4StartDrag, startDrag, b4EndDrag, endDrag, mouseUp, drag, b4Drag, invalidDrop, b4DragOut, dragOut, dragEnter, b4DragOver, dragOver, b4DragDrop, dragDrop
-     * By setting any of these to false, then event will not be fired.
-     * @property events
-     * @type object
-     */
-    events: null,
-    /**
-    * @method on
-    * @description Shortcut for EventProvider.subscribe, see <a href="YAHOO.util.EventProvider.html#subscribe">YAHOO.util.EventProvider.subscribe</a>
-    */
-    on: function() {
-        this.subscribe.apply(this, arguments);
-    },
-    /**
-     * The id of the element associated with this object.  This is what we 
-     * refer to as the "linked element" because the size and position of 
-     * this element is used to determine when the drag and drop objects have 
-     * interacted.
-     * @property id
-     * @type String
-     */
-    id: null,
-
-    /**
-     * Configuration attributes passed into the constructor
-     * @property config
-     * @type object
-     */
-    config: null,
-
-    /**
-     * The id of the element that will be dragged.  By default this is same 
-     * as the linked element , but could be changed to another element. Ex: 
-     * YAHOO.util.DDProxy
-     * @property dragElId
-     * @type String
-     * @private
-     */
-    dragElId: null, 
-
-    /**
-     * the id of the element that initiates the drag operation.  By default 
-     * this is the linked element, but could be changed to be a child of this
-     * element.  This lets us do things like only starting the drag when the 
-     * header element within the linked html element is clicked.
-     * @property handleElId
-     * @type String
-     * @private
-     */
-    handleElId: null, 
-
-    /**
-     * An associative array of HTML tags that will be ignored if clicked.
-     * @property invalidHandleTypes
-     * @type {string: string}
-     */
-    invalidHandleTypes: null, 
-
-    /**
-     * An associative array of ids for elements that will be ignored if clicked
-     * @property invalidHandleIds
-     * @type {string: string}
-     */
-    invalidHandleIds: null, 
-
-    /**
-     * An indexted array of css class names for elements that will be ignored
-     * if clicked.
-     * @property invalidHandleClasses
-     * @type string[]
-     */
-    invalidHandleClasses: null, 
-
-    /**
-     * The linked element's absolute X position at the time the drag was 
-     * started
-     * @property startPageX
-     * @type int
-     * @private
-     */
-    startPageX: 0,
-
-    /**
-     * The linked element's absolute X position at the time the drag was 
-     * started
-     * @property startPageY
-     * @type int
-     * @private
-     */
-    startPageY: 0,
-
-    /**
-     * The group defines a logical collection of DragDrop objects that are 
-     * related.  Instances only get events when interacting with other 
-     * DragDrop object in the same group.  This lets us define multiple 
-     * groups using a single DragDrop subclass if we want.
-     * @property groups
-     * @type {string: string}
-     */
-    groups: null,
-
-    /**
-     * Individual drag/drop instances can be locked.  This will prevent 
-     * onmousedown start drag.
-     * @property locked
-     * @type boolean
-     * @private
-     */
-    locked: false,
-
-    /**
-     * Lock this instance
-     * @method lock
-     */
-    lock: function() { this.locked = true; },
-
-    /**
-     * Unlock this instace
-     * @method unlock
-     */
-    unlock: function() { this.locked = false; },
-
-    /**
-     * By default, all instances can be a drop target.  This can be disabled by
-     * setting isTarget to false.
-     * @property isTarget
-     * @type boolean
-     */
-    isTarget: true,
-
-    /**
-     * The padding configured for this drag and drop object for calculating
-     * the drop zone intersection with this object.
-     * @property padding
-     * @type int[]
-     */
-    padding: null,
-    /**
-     * If this flag is true, do not fire drop events. The element is a drag only element (for movement not dropping)
-     * @property dragOnly
-     * @type Boolean
-     */
-    dragOnly: false,
-
-    /**
-     * Cached reference to the linked element
-     * @property _domRef
-     * @private
-     */
-    _domRef: null,
-
-    /**
-     * Internal typeof flag
-     * @property __ygDragDrop
-     * @private
-     */
-    __ygDragDrop: true,
-
-    /**
-     * Set to true when horizontal contraints are applied
-     * @property constrainX
-     * @type boolean
-     * @private
-     */
-    constrainX: false,
-
-    /**
-     * Set to true when vertical contraints are applied
-     * @property constrainY
-     * @type boolean
-     * @private
-     */
-    constrainY: false,
-
-    /**
-     * The left constraint
-     * @property minX
-     * @type int
-     * @private
-     */
-    minX: 0,
-
-    /**
-     * The right constraint
-     * @property maxX
-     * @type int
-     * @private
-     */
-    maxX: 0,
-
-    /**
-     * The up constraint 
-     * @property minY
-     * @type int
-     * @type int
-     * @private
-     */
-    minY: 0,
-
-    /**
-     * The down constraint 
-     * @property maxY
-     * @type int
-     * @private
-     */
-    maxY: 0,
-
-    /**
-     * The difference between the click position and the source element's location
-     * @property deltaX
-     * @type int
-     * @private
-     */
-    deltaX: 0,
-
-    /**
-     * The difference between the click position and the source element's location
-     * @property deltaY
-     * @type int
-     * @private
-     */
-    deltaY: 0,
-
-    /**
-     * Maintain offsets when we resetconstraints.  Set to true when you want
-     * the position of the element relative to its parent to stay the same
-     * when the page changes
-     *
-     * @property maintainOffset
-     * @type boolean
-     */
-    maintainOffset: false,
-
-    /**
-     * Array of pixel locations the element will snap to if we specified a 
-     * horizontal graduation/interval.  This array is generated automatically
-     * when you define a tick interval.
-     * @property xTicks
-     * @type int[]
-     */
-    xTicks: null,
-
-    /**
-     * Array of pixel locations the element will snap to if we specified a 
-     * vertical graduation/interval.  This array is generated automatically 
-     * when you define a tick interval.
-     * @property yTicks
-     * @type int[]
-     */
-    yTicks: null,
-
-    /**
-     * By default the drag and drop instance will only respond to the primary
-     * button click (left button for a right-handed mouse).  Set to true to
-     * allow drag and drop to start with any mouse click that is propogated
-     * by the browser
-     * @property primaryButtonOnly
-     * @type boolean
-     */
-    primaryButtonOnly: true,
-
-    /**
-     * The availabe property is false until the linked dom element is accessible.
-     * @property available
-     * @type boolean
-     */
-    available: false,
-
-    /**
-     * By default, drags can only be initiated if the mousedown occurs in the
-     * region the linked element is.  This is done in part to work around a
-     * bug in some browsers that mis-report the mousedown if the previous
-     * mouseup happened outside of the window.  This property is set to true
-     * if outer handles are defined.
-     *
-     * @property hasOuterHandles
-     * @type boolean
-     * @default false
-     */
-    hasOuterHandles: false,
-
-    /**
-     * Property that is assigned to a drag and drop object when testing to
-     * see if it is being targeted by another dd object.  This property
-     * can be used in intersect mode to help determine the focus of
-     * the mouse interaction.  DDM.getBestMatch uses this property first to
-     * determine the closest match in INTERSECT mode when multiple targets
-     * are part of the same interaction.
-     * @property cursorIsOver
-     * @type boolean
-     */
-    cursorIsOver: false,
-
-    /**
-     * Property that is assigned to a drag and drop object when testing to
-     * see if it is being targeted by another dd object.  This is a region
-     * that represents the area the draggable element overlaps this target.
-     * DDM.getBestMatch uses this property to compare the size of the overlap
-     * to that of other targets in order to determine the closest match in
-     * INTERSECT mode when multiple targets are part of the same interaction.
-     * @property overlap 
-     * @type YAHOO.util.Region
-     */
-    overlap: null,
-
-    /**
-     * Code that executes immediately before the startDrag event
-     * @method b4StartDrag
-     * @private
-     */
-    b4StartDrag: function(x, y) { },
-
-    /**
-     * Abstract method called after a drag/drop object is clicked
-     * and the drag or mousedown time thresholds have beeen met.
-     * @method startDrag
-     * @param {int} X click location
-     * @param {int} Y click location
-     */
-    startDrag: function(x, y) { /* override this */ },
-
-    /**
-     * Code that executes immediately before the onDrag event
-     * @method b4Drag
-     * @private
-     */
-    b4Drag: function(e) { },
-
-    /**
-     * Abstract method called during the onMouseMove event while dragging an 
-     * object.
-     * @method onDrag
-     * @param {Event} e the mousemove event
-     */
-    onDrag: function(e) { /* override this */ },
-
-    /**
-     * Abstract method called when this element fist begins hovering over 
-     * another DragDrop obj
-     * @method onDragEnter
-     * @param {Event} e the mousemove event
-     * @param {String|DragDrop[]} id In POINT mode, the element
-     * id this is hovering over.  In INTERSECT mode, an array of one or more 
-     * dragdrop items being hovered over.
-     */
-    onDragEnter: function(e, id) { /* override this */ },
-
-    /**
-     * Code that executes immediately before the onDragOver event
-     * @method b4DragOver
-     * @private
-     */
-    b4DragOver: function(e) { },
-
-    /**
-     * Abstract method called when this element is hovering over another 
-     * DragDrop obj
-     * @method onDragOver
-     * @param {Event} e the mousemove event
-     * @param {String|DragDrop[]} id In POINT mode, the element
-     * id this is hovering over.  In INTERSECT mode, an array of dd items 
-     * being hovered over.
-     */
-    onDragOver: function(e, id) { /* override this */ },
-
-    /**
-     * Code that executes immediately before the onDragOut event
-     * @method b4DragOut
-     * @private
-     */
-    b4DragOut: function(e) { },
-
-    /**
-     * Abstract method called when we are no longer hovering over an element
-     * @method onDragOut
-     * @param {Event} e the mousemove event
-     * @param {String|DragDrop[]} id In POINT mode, the element
-     * id this was hovering over.  In INTERSECT mode, an array of dd items 
-     * that the mouse is no longer over.
-     */
-    onDragOut: function(e, id) { /* override this */ },
-
-    /**
-     * Code that executes immediately before the onDragDrop event
-     * @method b4DragDrop
-     * @private
-     */
-    b4DragDrop: function(e) { },
-
-    /**
-     * Abstract method called when this item is dropped on another DragDrop 
-     * obj
-     * @method onDragDrop
-     * @param {Event} e the mouseup event
-     * @param {String|DragDrop[]} id In POINT mode, the element
-     * id this was dropped on.  In INTERSECT mode, an array of dd items this 
-     * was dropped on.
-     */
-    onDragDrop: function(e, id) { /* override this */ },
-
-    /**
-     * Abstract method called when this item is dropped on an area with no
-     * drop target
-     * @method onInvalidDrop
-     * @param {Event} e the mouseup event
-     */
-    onInvalidDrop: function(e) { /* override this */ },
-
-    /**
-     * Code that executes immediately before the endDrag event
-     * @method b4EndDrag
-     * @private
-     */
-    b4EndDrag: function(e) { },
-
-    /**
-     * Fired when we are done dragging the object
-     * @method endDrag
-     * @param {Event} e the mouseup event
-     */
-    endDrag: function(e) { /* override this */ },
-
-    /**
-     * Code executed immediately before the onMouseDown event
-     * @method b4MouseDown
-     * @param {Event} e the mousedown event
-     * @private
-     */
-    b4MouseDown: function(e) {  },
-
-    /**
-     * Event handler that fires when a drag/drop obj gets a mousedown
-     * @method onMouseDown
-     * @param {Event} e the mousedown event
-     */
-    onMouseDown: function(e) { /* override this */ },
-
-    /**
-     * Event handler that fires when a drag/drop obj gets a mouseup
-     * @method onMouseUp
-     * @param {Event} e the mouseup event
-     */
-    onMouseUp: function(e) { /* override this */ },
-   
-    /**
-     * Override the onAvailable method to do what is needed after the initial
-     * position was determined.
-     * @method onAvailable
-     */
-    onAvailable: function () { 
-    },
-
-    /**
-     * Returns a reference to the linked element
-     * @method getEl
-     * @return {HTMLElement} the html element 
-     */
-    getEl: function() { 
-        if (!this._domRef) {
-            this._domRef = Dom.get(this.id); 
-        }
-
-        return this._domRef;
-    },
-
-    /**
-     * Returns a reference to the actual element to drag.  By default this is
-     * the same as the html element, but it can be assigned to another 
-     * element. An example of this can be found in YAHOO.util.DDProxy
-     * @method getDragEl
-     * @return {HTMLElement} the html element 
-     */
-    getDragEl: function() {
-        return Dom.get(this.dragElId);
-    },
-
-    /**
-     * Sets up the DragDrop object.  Must be called in the constructor of any
-     * YAHOO.util.DragDrop subclass
-     * @method init
-     * @param id the id of the linked element
-     * @param {String} sGroup the group of related items
-     * @param {object} config configuration attributes
-     */
-    init: function(id, sGroup, config) {
-        this.initTarget(id, sGroup, config);
-        Event.on(this._domRef || this.id, "mousedown", 
-                        this.handleMouseDown, this, true);
-
-        // Event.on(this.id, "selectstart", Event.preventDefault);
-        for (var i in this.events) {
-            this.createEvent(i + 'Event');
-        }
-        
-    },
-
-    /**
-     * Initializes Targeting functionality only... the object does not
-     * get a mousedown handler.
-     * @method initTarget
-     * @param id the id of the linked element
-     * @param {String} sGroup the group of related items
-     * @param {object} config configuration attributes
-     */
-    initTarget: function(id, sGroup, config) {
-
-        // configuration attributes 
-        this.config = config || {};
-
-        this.events = {};
-
-        // create a local reference to the drag and drop manager
-        this.DDM = YAHOO.util.DDM;
-
-        // initialize the groups object
-        this.groups = {};
-
-        // assume that we have an element reference instead of an id if the
-        // parameter is not a string
-        if (typeof id !== "string") {
-            this._domRef = id;
-            id = Dom.generateId(id);
-        }
-
-        // set the id
-        this.id = id;
-
-        // add to an interaction group
-        this.addToGroup((sGroup) ? sGroup : "default");
-
-        // We don't want to register this as the handle with the manager
-        // so we just set the id rather than calling the setter.
-        this.handleElId = id;
-
-        Event.onAvailable(id, this.handleOnAvailable, this, true);
-
-
-        // the linked element is the element that gets dragged by default
-        this.setDragElId(id); 
-
-        // by default, clicked anchors will not start drag operations. 
-        // @TODO what else should be here?  Probably form fields.
-        this.invalidHandleTypes = { A: "A" };
-        this.invalidHandleIds = {};
-        this.invalidHandleClasses = [];
-
-        this.applyConfig();
-    },
-
-    /**
-     * Applies the configuration parameters that were passed into the constructor.
-     * This is supposed to happen at each level through the inheritance chain.  So
-     * a DDProxy implentation will execute apply config on DDProxy, DD, and 
-     * DragDrop in order to get all of the parameters that are available in
-     * each object.
-     * @method applyConfig
-     */
-    applyConfig: function() {
-        this.events = {
-            mouseDown: true,
-            b4MouseDown: true,
-            mouseUp: true,
-            b4StartDrag: true,
-            startDrag: true,
-            b4EndDrag: true,
-            endDrag: true,
-            drag: true,
-            b4Drag: true,
-            invalidDrop: true,
-            b4DragOut: true,
-            dragOut: true,
-            dragEnter: true,
-            b4DragOver: true,
-            dragOver: true,
-            b4DragDrop: true,
-            dragDrop: true
-        };
-        
-        if (this.config.events) {
-            for (var i in this.config.events) {
-                if (this.config.events[i] === false) {
-                    this.events[i] = false;
-                }
-            }
-        }
-
-
-        // configurable properties: 
-        //    padding, isTarget, maintainOffset, primaryButtonOnly
-        this.padding           = this.config.padding || [0, 0, 0, 0];
-        this.isTarget          = (this.config.isTarget !== false);
-        this.maintainOffset    = (this.config.maintainOffset);
-        this.primaryButtonOnly = (this.config.primaryButtonOnly !== false);
-        this.dragOnly = ((this.config.dragOnly === true) ? true : false);
-    },
-
-    /**
-     * Executed when the linked element is available
-     * @method handleOnAvailable
-     * @private
-     */
-    handleOnAvailable: function() {
-        this.available = true;
-        this.resetConstraints();
-        this.onAvailable();
-    },
-
-     /**
-     * Configures the padding for the target zone in px.  Effectively expands
-     * (or reduces) the virtual object size for targeting calculations.  
-     * Supports css-style shorthand; if only one parameter is passed, all sides
-     * will have that padding, and if only two are passed, the top and bottom
-     * will have the first param, the left and right the second.
-     * @method setPadding
-     * @param {int} iTop    Top pad
-     * @param {int} iRight  Right pad
-     * @param {int} iBot    Bot pad
-     * @param {int} iLeft   Left pad
-     */
-    setPadding: function(iTop, iRight, iBot, iLeft) {
-        // this.padding = [iLeft, iRight, iTop, iBot];
-        if (!iRight && 0 !== iRight) {
-            this.padding = [iTop, iTop, iTop, iTop];
-        } else if (!iBot && 0 !== iBot) {
-            this.padding = [iTop, iRight, iTop, iRight];
-        } else {
-            this.padding = [iTop, iRight, iBot, iLeft];
-        }
-    },
-
-    /**
-     * Stores the initial placement of the linked element.
-     * @method setInitialPosition
-     * @param {int} diffX   the X offset, default 0
-     * @param {int} diffY   the Y offset, default 0
-     * @private
-     */
-    setInitPosition: function(diffX, diffY) {
-        var el = this.getEl();
-
-        if (!this.DDM.verifyEl(el)) {
-            if (el && el.style && (el.style.display == 'none')) {
-            } else {
-            }
-            return;
-        }
-
-        var dx = diffX || 0;
-        var dy = diffY || 0;
-
-        var p = Dom.getXY( el );
-
-        this.initPageX = p[0] - dx;
-        this.initPageY = p[1] - dy;
-
-        this.lastPageX = p[0];
-        this.lastPageY = p[1];
-
-
-
-        this.setStartPosition(p);
-    },
-
-    /**
-     * Sets the start position of the element.  This is set when the obj
-     * is initialized, the reset when a drag is started.
-     * @method setStartPosition
-     * @param pos current position (from previous lookup)
-     * @private
-     */
-    setStartPosition: function(pos) {
-        var p = pos || Dom.getXY(this.getEl());
-
-        this.deltaSetXY = null;
-
-        this.startPageX = p[0];
-        this.startPageY = p[1];
-    },
-
-    /**
-     * Add this instance to a group of related drag/drop objects.  All 
-     * instances belong to at least one group, and can belong to as many 
-     * groups as needed.
-     * @method addToGroup
-     * @param sGroup {string} the name of the group
-     */
-    addToGroup: function(sGroup) {
-        this.groups[sGroup] = true;
-        this.DDM.regDragDrop(this, sGroup);
-    },
-
-    /**
-     * Remove's this instance from the supplied interaction group
-     * @method removeFromGroup
-     * @param {string}  sGroup  The group to drop
-     */
-    removeFromGroup: function(sGroup) {
-        if (this.groups[sGroup]) {
-            delete this.groups[sGroup];
-        }
-
-        this.DDM.removeDDFromGroup(this, sGroup);
-    },
-
-    /**
-     * Allows you to specify that an element other than the linked element 
-     * will be moved with the cursor during a drag
-     * @method setDragElId
-     * @param id {string} the id of the element that will be used to initiate the drag
-     */
-    setDragElId: function(id) {
-        this.dragElId = id;
-    },
-
-    /**
-     * Allows you to specify a child of the linked element that should be 
-     * used to initiate the drag operation.  An example of this would be if 
-     * you have a content div with text and links.  Clicking anywhere in the 
-     * content area would normally start the drag operation.  Use this method
-     * to specify that an element inside of the content div is the element 
-     * that starts the drag operation.
-     * @method setHandleElId
-     * @param id {string} the id of the element that will be used to 
-     * initiate the drag.
-     */
-    setHandleElId: function(id) {
-        if (typeof id !== "string") {
-            id = Dom.generateId(id);
-        }
-        this.handleElId = id;
-        this.DDM.regHandle(this.id, id);
-    },
-
-    /**
-     * Allows you to set an element outside of the linked element as a drag 
-     * handle
-     * @method setOuterHandleElId
-     * @param id the id of the element that will be used to initiate the drag
-     */
-    setOuterHandleElId: function(id) {
-        if (typeof id !== "string") {
-            id = Dom.generateId(id);
-        }
-        Event.on(id, "mousedown", 
-                this.handleMouseDown, this, true);
-        this.setHandleElId(id);
-
-        this.hasOuterHandles = true;
-    },
-
-    /**
-     * Remove all drag and drop hooks for this element
-     * @method unreg
-     */
-    unreg: function() {
-        Event.removeListener(this.id, "mousedown", 
-                this.handleMouseDown);
-        this._domRef = null;
-        this.DDM._remove(this);
-    },
-
-    /**
-     * Returns true if this instance is locked, or the drag drop mgr is locked
-     * (meaning that all drag/drop is disabled on the page.)
-     * @method isLocked
-     * @return {boolean} true if this obj or all drag/drop is locked, else 
-     * false
-     */
-    isLocked: function() {
-        return (this.DDM.isLocked() || this.locked);
-    },
-
-    /**
-     * Fired when this object is clicked
-     * @method handleMouseDown
-     * @param {Event} e 
-     * @param {YAHOO.util.DragDrop} oDD the clicked dd object (this dd obj)
-     * @private
-     */
-    handleMouseDown: function(e, oDD) {
-
-        var button = e.which || e.button;
-
-        if (this.primaryButtonOnly && button > 1) {
-            return;
-        }
-
-        if (this.isLocked()) {
-            return;
-        }
-
-
-
-        // firing the mousedown events prior to calculating positions
-        var b4Return = this.b4MouseDown(e);
-        if (this.events.b4MouseDown) {
-            b4Return = this.fireEvent('b4MouseDownEvent', e);
-        }
-        var mDownReturn = this.onMouseDown(e);
-        if (this.events.mouseDown) {
-            mDownReturn = this.fireEvent('mouseDownEvent', e);
-        }
-
-        if ((b4Return === false) || (mDownReturn === false)) {
-            return;
-        }
-
-        this.DDM.refreshCache(this.groups);
-        // var self = this;
-        // setTimeout( function() { self.DDM.refreshCache(self.groups); }, 0);
-
-        // Only process the event if we really clicked within the linked 
-        // element.  The reason we make this check is that in the case that 
-        // another element was moved between the clicked element and the 
-        // cursor in the time between the mousedown and mouseup events. When 
-        // this happens, the element gets the next mousedown event 
-        // regardless of where on the screen it happened.  
-        var pt = new YAHOO.util.Point(Event.getPageX(e), Event.getPageY(e));
-        if (!this.hasOuterHandles && !this.DDM.isOverTarget(pt, this) )  {
-        } else {
-            if (this.clickValidator(e)) {
-
-
-                // set the initial element position
-                this.setStartPosition();
-
-                // start tracking mousemove distance and mousedown time to
-                // determine when to start the actual drag
-                this.DDM.handleMouseDown(e, this);
-
-                // this mousedown is mine
-                this.DDM.stopEvent(e);
-            } else {
-
-
-            }
-        }
-    },
-
-    /**
-     * @method clickValidator
-     * @description Method validates that the clicked element
-     * was indeed the handle or a valid child of the handle
-     * @param {Event} e 
-     */
-    clickValidator: function(e) {
-        var target = YAHOO.util.Event.getTarget(e);
-        return ( this.isValidHandleChild(target) &&
-                    (this.id == this.handleElId || 
-                        this.DDM.handleWasClicked(target, this.id)) );
-    },
-
-    /**
-     * Finds the location the element should be placed if we want to move
-     * it to where the mouse location less the click offset would place us.
-     * @method getTargetCoord
-     * @param {int} iPageX the X coordinate of the click
-     * @param {int} iPageY the Y coordinate of the click
-     * @return an object that contains the coordinates (Object.x and Object.y)
-     * @private
-     */
-    getTargetCoord: function(iPageX, iPageY) {
-
-
-        var x = iPageX - this.deltaX;
-        var y = iPageY - this.deltaY;
-
-        if (this.constrainX) {
-            if (x < this.minX) { x = this.minX; }
-            if (x > this.maxX) { x = this.maxX; }
-        }
-
-        if (this.constrainY) {
-            if (y < this.minY) { y = this.minY; }
-            if (y > this.maxY) { y = this.maxY; }
-        }
-
-        x = this.getTick(x, this.xTicks);
-        y = this.getTick(y, this.yTicks);
-
-
-        return {x:x, y:y};
-    },
-
-    /**
-     * Allows you to specify a tag name that should not start a drag operation
-     * when clicked.  This is designed to facilitate embedding links within a
-     * drag handle that do something other than start the drag.
-     * @method addInvalidHandleType
-     * @param {string} tagName the type of element to exclude
-     */
-    addInvalidHandleType: function(tagName) {
-        var type = tagName.toUpperCase();
-        this.invalidHandleTypes[type] = type;
-    },
-
-    /**
-     * Lets you to specify an element id for a child of a drag handle
-     * that should not initiate a drag
-     * @method addInvalidHandleId
-     * @param {string} id the element id of the element you wish to ignore
-     */
-    addInvalidHandleId: function(id) {
-        if (typeof id !== "string") {
-            id = Dom.generateId(id);
-        }
-        this.invalidHandleIds[id] = id;
-    },
-
-
-    /**
-     * Lets you specify a css class of elements that will not initiate a drag
-     * @method addInvalidHandleClass
-     * @param {string} cssClass the class of the elements you wish to ignore
-     */
-    addInvalidHandleClass: function(cssClass) {
-        this.invalidHandleClasses.push(cssClass);
-    },
-
-    /**
-     * Unsets an excluded tag name set by addInvalidHandleType
-     * @method removeInvalidHandleType
-     * @param {string} tagName the type of element to unexclude
-     */
-    removeInvalidHandleType: function(tagName) {
-        var type = tagName.toUpperCase();
-        // this.invalidHandleTypes[type] = null;
-        delete this.invalidHandleTypes[type];
-    },
-    
-    /**
-     * Unsets an invalid handle id
-     * @method removeInvalidHandleId
-     * @param {string} id the id of the element to re-enable
-     */
-    removeInvalidHandleId: function(id) {
-        if (typeof id !== "string") {
-            id = Dom.generateId(id);
-        }
-        delete this.invalidHandleIds[id];
-    },
-
-    /**
-     * Unsets an invalid css class
-     * @method removeInvalidHandleClass
-     * @param {string} cssClass the class of the element(s) you wish to 
-     * re-enable
-     */
-    removeInvalidHandleClass: function(cssClass) {
-        for (var i=0, len=this.invalidHandleClasses.length; i<len; ++i) {
-            if (this.invalidHandleClasses[i] == cssClass) {
-                delete this.invalidHandleClasses[i];
-            }
-        }
-    },
-
-    /**
-     * Checks the tag exclusion list to see if this click should be ignored
-     * @method isValidHandleChild
-     * @param {HTMLElement} node the HTMLElement to evaluate
-     * @return {boolean} true if this is a valid tag type, false if not
-     */
-    isValidHandleChild: function(node) {
-
-        var valid = true;
-        // var n = (node.nodeName == "#text") ? node.parentNode : node;
-        var nodeName;
-        try {
-            nodeName = node.nodeName.toUpperCase();
-        } catch(e) {
-            nodeName = node.nodeName;
-        }
-        valid = valid && !this.invalidHandleTypes[nodeName];
-        valid = valid && !this.invalidHandleIds[node.id];
-
-        for (var i=0, len=this.invalidHandleClasses.length; valid && i<len; ++i) {
-            valid = !Dom.hasClass(node, this.invalidHandleClasses[i]);
-        }
-
-
-        return valid;
-
-    },
-
-    /**
-     * Create the array of horizontal tick marks if an interval was specified
-     * in setXConstraint().
-     * @method setXTicks
-     * @private
-     */
-    setXTicks: function(iStartX, iTickSize) {
-        this.xTicks = [];
-        this.xTickSize = iTickSize;
-        
-        var tickMap = {};
-
-        for (var i = this.initPageX; i >= this.minX; i = i - iTickSize) {
-            if (!tickMap[i]) {
-                this.xTicks[this.xTicks.length] = i;
-                tickMap[i] = true;
-            }
-        }
-
-        for (i = this.initPageX; i <= this.maxX; i = i + iTickSize) {
-            if (!tickMap[i]) {
-                this.xTicks[this.xTicks.length] = i;
-                tickMap[i] = true;
-            }
-        }
-
-        this.xTicks.sort(this.DDM.numericSort) ;
-    },
-
-    /**
-     * Create the array of vertical tick marks if an interval was specified in 
-     * setYConstraint().
-     * @method setYTicks
-     * @private
-     */
-    setYTicks: function(iStartY, iTickSize) {
-        this.yTicks = [];
-        this.yTickSize = iTickSize;
-
-        var tickMap = {};
-
-        for (var i = this.initPageY; i >= this.minY; i = i - iTickSize) {
-            if (!tickMap[i]) {
-                this.yTicks[this.yTicks.length] = i;
-                tickMap[i] = true;
-            }
-        }
-
-        for (i = this.initPageY; i <= this.maxY; i = i + iTickSize) {
-            if (!tickMap[i]) {
-                this.yTicks[this.yTicks.length] = i;
-                tickMap[i] = true;
-            }
-        }
-
-        this.yTicks.sort(this.DDM.numericSort) ;
-    },
-
-    /**
-     * By default, the element can be dragged any place on the screen.  Use 
-     * this method to limit the horizontal travel of the element.  Pass in 
-     * 0,0 for the parameters if you want to lock the drag to the y axis.
-     * @method setXConstraint
-     * @param {int} iLeft the number of pixels the element can move to the left
-     * @param {int} iRight the number of pixels the element can move to the 
-     * right
-     * @param {int} iTickSize optional parameter for specifying that the 
-     * element
-     * should move iTickSize pixels at a time.
-     */
-    setXConstraint: function(iLeft, iRight, iTickSize) {
-        this.leftConstraint = parseInt(iLeft, 10);
-        this.rightConstraint = parseInt(iRight, 10);
-
-        this.minX = this.initPageX - this.leftConstraint;
-        this.maxX = this.initPageX + this.rightConstraint;
-        if (iTickSize) { this.setXTicks(this.initPageX, iTickSize); }
-
-        this.constrainX = true;
-    },
-
-    /**
-     * Clears any constraints applied to this instance.  Also clears ticks
-     * since they can't exist independent of a constraint at this time.
-     * @method clearConstraints
-     */
-    clearConstraints: function() {
-        this.constrainX = false;
-        this.constrainY = false;
-        this.clearTicks();
-    },
-
-    /**
-     * Clears any tick interval defined for this instance
-     * @method clearTicks
-     */
-    clearTicks: function() {
-        this.xTicks = null;
-        this.yTicks = null;
-        this.xTickSize = 0;
-        this.yTickSize = 0;
-    },
-
-    /**
-     * By default, the element can be dragged any place on the screen.  Set 
-     * this to limit the vertical travel of the element.  Pass in 0,0 for the
-     * parameters if you want to lock the drag to the x axis.
-     * @method setYConstraint
-     * @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 iTickSize pixels at a time.
-     */
-    setYConstraint: function(iUp, iDown, iTickSize) {
-        this.topConstraint = parseInt(iUp, 10);
-        this.bottomConstraint = parseInt(iDown, 10);
-
-        this.minY = this.initPageY - this.topConstraint;
-        this.maxY = this.initPageY + this.bottomConstraint;
-        if (iTickSize) { this.setYTicks(this.initPageY, iTickSize); }
-
-        this.constrainY = true;
-        
-    },
-
-    /**
-     * resetConstraints must be called if you manually reposition a dd element.
-     * @method resetConstraints
-     */
-    resetConstraints: function() {
-
-
-        // Maintain offsets if necessary
-        if (this.initPageX || this.initPageX === 0) {
-            // figure out how much this thing has moved
-            var dx = (this.maintainOffset) ? this.lastPageX - this.initPageX : 0;
-            var dy = (this.maintainOffset) ? this.lastPageY - this.initPageY : 0;
-
-            this.setInitPosition(dx, dy);
-
-        // This is the first time we have detected the element's position
-        } else {
-            this.setInitPosition();
-        }
-
-        if (this.constrainX) {
-            this.setXConstraint( this.leftConstraint, 
-                                 this.rightConstraint, 
-                                 this.xTickSize        );
-        }
-
-        if (this.constrainY) {
-            this.setYConstraint( this.topConstraint, 
-                                 this.bottomConstraint, 
-                                 this.yTickSize         );
-        }
-    },
-
-    /**
-     * Normally the drag element is moved pixel by pixel, but we can specify 
-     * that it move a number of pixels at a time.  This method resolves the 
-     * location when we have it set up like this.
-     * @method getTick
-     * @param {int} val where we want to place the object
-     * @param {int[]} tickArray sorted array of valid points
-     * @return {int} the closest tick
-     * @private
-     */
-    getTick: function(val, tickArray) {
-
-        if (!tickArray) {
-            // If tick interval is not defined, it is effectively 1 pixel, 
-            // so we return the value passed to us.
-            return val; 
-        } else if (tickArray[0] >= val) {
-            // The value is lower than the first tick, so we return the first
-            // tick.
-            return tickArray[0];
-        } else {
-            for (var i=0, len=tickArray.length; i<len; ++i) {
-                var next = i + 1;
-                if (tickArray[next] && tickArray[next] >= val) {
-                    var diff1 = val - tickArray[i];
-                    var diff2 = tickArray[next] - val;
-                    return (diff2 > diff1) ? tickArray[i] : tickArray[next];
-                }
-            }
-
-            // The value is larger than the last tick, so we return the last
-            // tick.
-            return tickArray[tickArray.length - 1];
-        }
-    },
-
-    /**
-     * toString method
-     * @method toString
-     * @return {string} string representation of the dd obj
-     */
-    toString: function() {
-        return ("DragDrop " + this.id);
-    }
-
-};
-YAHOO.augment(YAHOO.util.DragDrop, YAHOO.util.EventProvider);
-
-/**
-* @event mouseDownEvent
-* @description Provides access to the mousedown event. The mousedown does not always result in a drag operation.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4MouseDownEvent
-* @description Provides access to the mousedown event, before the mouseDownEvent gets fired. Returning false will cancel the drag.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event mouseUpEvent
-* @description Fired from inside DragDropMgr when the drag operation is finished.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4StartDragEvent
-* @description Fires before the startDragEvent, returning false will cancel the startDrag Event.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event startDragEvent
-* @description Occurs after a mouse down and the drag threshold has been met. The drag threshold default is either 3 pixels of mouse movement or 1 full second of holding the mousedown. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4EndDragEvent
-* @description Fires before the endDragEvent. Returning false will cancel.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event endDragEvent
-* @description Fires on the mouseup event after a drag has been initiated (startDrag fired).
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event dragEvent
-* @description Occurs every mousemove event while dragging.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragEvent
-* @description Fires before the dragEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event invalidDropEvent
-* @description Fires when the dragged objects is dropped in a location that contains no drop targets.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOutEvent
-* @description Fires before the dragOutEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOutEvent
-* @description Fires when a dragged object is no longer over an object that had the onDragEnter fire. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragEnterEvent
-* @description Occurs when the dragged object first interacts with another targettable drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOverEvent
-* @description Fires before the dragOverEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOverEvent
-* @description Fires every mousemove event while over a drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragDropEvent 
-* @description Fires before the dragDropEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragDropEvent
-* @description Fires when the dragged objects is dropped on another.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-})();
-/**
- * A DragDrop implementation where the linked element follows the 
- * mouse cursor during a drag.
- * @class DD
- * @extends YAHOO.util.DragDrop
- * @constructor
- * @param {String} id the id of the linked element 
- * @param {String} sGroup the group of related DragDrop items
- * @param {object} config an object containing configurable attributes
- *                Valid properties for DD: 
- *                    scroll
- */
-YAHOO.util.DD = function(id, sGroup, config) {
-    if (id) {
-        this.init(id, sGroup, config);
-    }
-};
-
-YAHOO.extend(YAHOO.util.DD, YAHOO.util.DragDrop, {
-
-    /**
-     * When set to true, the utility automatically tries to scroll the browser
-     * window wehn a drag and drop element is dragged near the viewport boundary.
-     * Defaults to true.
-     * @property scroll
-     * @type boolean
-     */
-    scroll: true, 
-
-    /**
-     * Sets the pointer offset to the distance between the linked element's top 
-     * left corner and the location the element was clicked
-     * @method autoOffset
-     * @param {int} iPageX the X coordinate of the click
-     * @param {int} iPageY the Y coordinate of the click
-     */
-    autoOffset: function(iPageX, iPageY) {
-        var x = iPageX - this.startPageX;
-        var y = iPageY - this.startPageY;
-        this.setDelta(x, y);
-    },
-
-    /** 
-     * Sets the pointer offset.  You can call this directly to force the 
-     * offset to be in a particular location (e.g., pass in 0,0 to set it 
-     * to the center of the object, as done in YAHOO.widget.Slider)
-     * @method setDelta
-     * @param {int} iDeltaX the distance from the left
-     * @param {int} iDeltaY the distance from the top
-     */
-    setDelta: function(iDeltaX, iDeltaY) {
-        this.deltaX = iDeltaX;
-        this.deltaY = iDeltaY;
-    },
-
-    /**
-     * Sets the drag element to the location of the mousedown or click event, 
-     * maintaining the cursor location relative to the location on the element 
-     * that was clicked.  Override this if you want to place the element in a 
-     * location other than where the cursor is.
-     * @method setDragElPos
-     * @param {int} iPageX the X coordinate of the mousedown or drag event
-     * @param {int} iPageY the Y coordinate of the mousedown or drag event
-     */
-    setDragElPos: function(iPageX, iPageY) {
-        // the first time we do this, we are going to check to make sure
-        // the element has css positioning
-
-        var el = this.getDragEl();
-        this.alignElWithMouse(el, iPageX, iPageY);
-    },
-
-    /**
-     * Sets the element to the location of the mousedown or click event, 
-     * maintaining the cursor location relative to the location on the element 
-     * that was clicked.  Override this if you want to place the element in a 
-     * location other than where the cursor is.
-     * @method alignElWithMouse
-     * @param {HTMLElement} el the element to move
-     * @param {int} iPageX the X coordinate of the mousedown or drag event
-     * @param {int} iPageY the Y coordinate of the mousedown or drag event
-     */
-    alignElWithMouse: function(el, iPageX, iPageY) {
-        var oCoord = this.getTargetCoord(iPageX, iPageY);
-
-        if (!this.deltaSetXY) {
-            var aCoord = [oCoord.x, oCoord.y];
-            YAHOO.util.Dom.setXY(el, aCoord);
-            var newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
-            var newTop  = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
-            this.deltaSetXY = [ newLeft - oCoord.x, newTop - oCoord.y ];
-        } else {
-            YAHOO.util.Dom.setStyle(el, "left", (oCoord.x + this.deltaSetXY[0]) + "px");
-            YAHOO.util.Dom.setStyle(el, "top",  (oCoord.y + this.deltaSetXY[1]) + "px");
-        }
-        
-        this.cachePosition(oCoord.x, oCoord.y);
-        var self = this;
-        setTimeout(function() {
-            self.autoScroll.call(self, oCoord.x, oCoord.y, el.offsetHeight, el.offsetWidth);
-        }, 0);
-    },
-
-    /**
-     * Saves the most recent position so that we can reset the constraints and
-     * tick marks on-demand.  We need to know this so that we can calculate the
-     * number of pixels the element is offset from its original position.
-     * @method cachePosition
-     * @param iPageX the current x position (optional, this just makes it so we
-     * don't have to look it up again)
-     * @param iPageY the current y position (optional, this just makes it so we
-     * don't have to look it up again)
-     */
-    cachePosition: function(iPageX, iPageY) {
-        if (iPageX) {
-            this.lastPageX = iPageX;
-            this.lastPageY = iPageY;
-        } else {
-            var aCoord = YAHOO.util.Dom.getXY(this.getEl());
-            this.lastPageX = aCoord[0];
-            this.lastPageY = aCoord[1];
-        }
-    },
-
-    /**
-     * Auto-scroll the window if the dragged object has been moved beyond the 
-     * visible window boundary.
-     * @method autoScroll
-     * @param {int} x the drag element's x position
-     * @param {int} y the drag element's y position
-     * @param {int} h the height of the drag element
-     * @param {int} w the width of the drag element
-     * @private
-     */
-    autoScroll: function(x, y, h, w) {
-
-        if (this.scroll) {
-            // The client height
-            var clientH = this.DDM.getClientHeight();
-
-            // The client width
-            var clientW = this.DDM.getClientWidth();
-
-            // The amt scrolled down
-            var st = this.DDM.getScrollTop();
-
-            // The amt scrolled right
-            var sl = this.DDM.getScrollLeft();
-
-            // Location of the bottom of the element
-            var bot = h + y;
-
-            // Location of the right of the element
-            var right = w + x;
-
-            // The distance from the cursor to the bottom of the visible area, 
-            // adjusted so that we don't scroll if the cursor is beyond the
-            // element drag constraints
-            var toBot = (clientH + st - y - this.deltaY);
-
-            // The distance from the cursor to the right of the visible area
-            var toRight = (clientW + sl - x - this.deltaX);
-
-
-            // How close to the edge the cursor must be before we scroll
-            // var thresh = (document.all) ? 100 : 40;
-            var thresh = 40;
-
-            // How many pixels to scroll per autoscroll op.  This helps to reduce 
-            // clunky scrolling. IE is more sensitive about this ... it needs this 
-            // value to be higher.
-            var scrAmt = (document.all) ? 80 : 30;
-
-            // Scroll down if we are near the bottom of the visible page and the 
-            // obj extends below the crease
-            if ( bot > clientH && toBot < thresh ) { 
-                window.scrollTo(sl, st + scrAmt); 
-            }
-
-            // Scroll up if the window is scrolled down and the top of the object
-            // goes above the top border
-            if ( y < st && st > 0 && y - st < thresh ) { 
-                window.scrollTo(sl, st - scrAmt); 
-            }
-
-            // Scroll right if the obj is beyond the right border and the cursor is
-            // near the border.
-            if ( right > clientW && toRight < thresh ) { 
-                window.scrollTo(sl + scrAmt, st); 
-            }
-
-            // Scroll left if the window has been scrolled to the right and the obj
-            // extends past the left border
-            if ( x < sl && sl > 0 && x - sl < thresh ) { 
-                window.scrollTo(sl - scrAmt, st);
-            }
-        }
-    },
-
-    /*
-     * Sets up config options specific to this class. Overrides
-     * YAHOO.util.DragDrop, but all versions of this method through the 
-     * inheritance chain are called
-     */
-    applyConfig: function() {
-        YAHOO.util.DD.superclass.applyConfig.call(this);
-        this.scroll = (this.config.scroll !== false);
-    },
-
-    /*
-     * Event that fires prior to the onMouseDown event.  Overrides 
-     * YAHOO.util.DragDrop.
-     */
-    b4MouseDown: function(e) {
-        this.setStartPosition();
-        // this.resetConstraints();
-        this.autoOffset(YAHOO.util.Event.getPageX(e), 
-                            YAHOO.util.Event.getPageY(e));
-    },
-
-    /*
-     * Event that fires prior to the onDrag event.  Overrides 
-     * YAHOO.util.DragDrop.
-     */
-    b4Drag: function(e) {
-        this.setDragElPos(YAHOO.util.Event.getPageX(e), 
-                            YAHOO.util.Event.getPageY(e));
-    },
-
-    toString: function() {
-        return ("DD " + this.id);
-    }
-
-    //////////////////////////////////////////////////////////////////////////
-    // Debugging ygDragDrop events that can be overridden
-    //////////////////////////////////////////////////////////////////////////
-    /*
-    startDrag: function(x, y) {
-    },
-
-    onDrag: function(e) {
-    },
-
-    onDragEnter: function(e, id) {
-    },
-
-    onDragOver: function(e, id) {
-    },
-
-    onDragOut: function(e, id) {
-    },
-
-    onDragDrop: function(e, id) {
-    },
-
-    endDrag: function(e) {
-    }
-
-    */
-
-/**
-* @event mouseDownEvent
-* @description Provides access to the mousedown event. The mousedown does not always result in a drag operation.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4MouseDownEvent
-* @description Provides access to the mousedown event, before the mouseDownEvent gets fired. Returning false will cancel the drag.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event mouseUpEvent
-* @description Fired from inside DragDropMgr when the drag operation is finished.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4StartDragEvent
-* @description Fires before the startDragEvent, returning false will cancel the startDrag Event.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event startDragEvent
-* @description Occurs after a mouse down and the drag threshold has been met. The drag threshold default is either 3 pixels of mouse movement or 1 full second of holding the mousedown. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4EndDragEvent
-* @description Fires before the endDragEvent. Returning false will cancel.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event endDragEvent
-* @description Fires on the mouseup event after a drag has been initiated (startDrag fired).
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event dragEvent
-* @description Occurs every mousemove event while dragging.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragEvent
-* @description Fires before the dragEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event invalidDropEvent
-* @description Fires when the dragged objects is dropped in a location that contains no drop targets.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOutEvent
-* @description Fires before the dragOutEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOutEvent
-* @description Fires when a dragged object is no longer over an object that had the onDragEnter fire. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragEnterEvent
-* @description Occurs when the dragged object first interacts with another targettable drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOverEvent
-* @description Fires before the dragOverEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOverEvent
-* @description Fires every mousemove event while over a drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragDropEvent 
-* @description Fires before the dragDropEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragDropEvent
-* @description Fires when the dragged objects is dropped on another.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-});
-/**
- * A DragDrop implementation that inserts an empty, bordered div into
- * the document that follows the cursor during drag operations.  At the time of
- * the click, the frame div is resized to the dimensions of the linked html
- * element, and moved to the exact location of the linked element.
- *
- * References to the "frame" element refer to the single proxy element that
- * was created to be dragged in place of all DDProxy elements on the
- * page.
- *
- * @class DDProxy
- * @extends YAHOO.util.DD
- * @constructor
- * @param {String} id the id of the linked html element
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- *                Valid properties for DDProxy in addition to those in DragDrop: 
- *                   resizeFrame, centerFrame, dragElId
- */
-YAHOO.util.DDProxy = function(id, sGroup, config) {
-    if (id) {
-        this.init(id, sGroup, config);
-        this.initFrame(); 
-    }
-};
-
-/**
- * The default drag frame div id
- * @property YAHOO.util.DDProxy.dragElId
- * @type String
- * @static
- */
-YAHOO.util.DDProxy.dragElId = "ygddfdiv";
-
-YAHOO.extend(YAHOO.util.DDProxy, YAHOO.util.DD, {
-
-    /**
-     * By default we resize the drag frame to be the same size as the element
-     * we want to drag (this is to get the frame effect).  We can turn it off
-     * if we want a different behavior.
-     * @property resizeFrame
-     * @type boolean
-     */
-    resizeFrame: true,
-
-    /**
-     * By default the frame is positioned exactly where the drag element is, so
-     * we use the cursor offset provided by YAHOO.util.DD.  Another option that works only if
-     * you do not have constraints on the obj is to have the drag frame centered
-     * around the cursor.  Set centerFrame to true for this effect.
-     * @property centerFrame
-     * @type boolean
-     */
-    centerFrame: false,
-
-    /**
-     * Creates the proxy element if it does not yet exist
-     * @method createFrame
-     */
-    createFrame: function() {
-        var self=this, body=document.body;
-
-        if (!body || !body.firstChild) {
-            setTimeout( function() { self.createFrame(); }, 50 );
-            return;
-        }
-
-        var div=this.getDragEl(), Dom=YAHOO.util.Dom;
-
-        if (!div) {
-            div    = document.createElement("div");
-            div.id = this.dragElId;
-            var s  = div.style;
-
-            s.position   = "absolute";
-            s.visibility = "hidden";
-            s.cursor     = "move";
-            s.border     = "2px solid #aaa";
-            s.zIndex     = 999;
-            s.height     = "25px";
-            s.width      = "25px";
-
-            var _data = document.createElement('div');
-            Dom.setStyle(_data, 'height', '100%');
-            Dom.setStyle(_data, 'width', '100%');
-            /**
-            * If the proxy element has no background-color, then it is considered to the "transparent" by Internet Explorer.
-            * Since it is "transparent" then the events pass through it to the iframe below.
-            * So creating a "fake" div inside the proxy element and giving it a background-color, then setting it to an
-            * opacity of 0, it appears to not be there, however IE still thinks that it is so the events never pass through.
-            */
-            Dom.setStyle(_data, 'background-color', '#ccc');
-            Dom.setStyle(_data, 'opacity', '0');
-            div.appendChild(_data);
-
-            /**
-            * It seems that IE will fire the mouseup event if you pass a proxy element over a select box
-            * Placing the IFRAME element inside seems to stop this issue
-            */
-            if (YAHOO.env.ua.ie) {
-                //Only needed for Internet Explorer
-                var ifr = document.createElement('iframe');
-                ifr.setAttribute('src', 'about:blank');
-                ifr.setAttribute('scrolling', 'no');
-                ifr.setAttribute('frameborder', '0');
-                div.insertBefore(ifr, div.firstChild);
-                Dom.setStyle(ifr, 'height', '100%');
-                Dom.setStyle(ifr, 'width', '100%');
-                Dom.setStyle(ifr, 'position', 'absolute');
-                Dom.setStyle(ifr, 'top', '0');
-                Dom.setStyle(ifr, 'left', '0');
-                Dom.setStyle(ifr, 'opacity', '0');
-                Dom.setStyle(ifr, 'zIndex', '-1');
-                Dom.setStyle(ifr.nextSibling, 'zIndex', '2');
-            }
-
-            // appendChild can blow up IE if invoked prior to the window load event
-            // while rendering a table.  It is possible there are other scenarios 
-            // that would cause this to happen as well.
-            body.insertBefore(div, body.firstChild);
-        }
-    },
-
-    /**
-     * Initialization for the drag frame element.  Must be called in the
-     * constructor of all subclasses
-     * @method initFrame
-     */
-    initFrame: function() {
-        this.createFrame();
-    },
-
-    applyConfig: function() {
-        YAHOO.util.DDProxy.superclass.applyConfig.call(this);
-
-        this.resizeFrame = (this.config.resizeFrame !== false);
-        this.centerFrame = (this.config.centerFrame);
-        this.setDragElId(this.config.dragElId || YAHOO.util.DDProxy.dragElId);
-    },
-
-    /**
-     * Resizes the drag frame to the dimensions of the clicked object, positions 
-     * it over the object, and finally displays it
-     * @method showFrame
-     * @param {int} iPageX X click position
-     * @param {int} iPageY Y click position
-     * @private
-     */
-    showFrame: function(iPageX, iPageY) {
-        var el = this.getEl();
-        var dragEl = this.getDragEl();
-        var s = dragEl.style;
-
-        this._resizeProxy();
-
-        if (this.centerFrame) {
-            this.setDelta( Math.round(parseInt(s.width,  10)/2), 
-                           Math.round(parseInt(s.height, 10)/2) );
-        }
-
-        this.setDragElPos(iPageX, iPageY);
-
-        YAHOO.util.Dom.setStyle(dragEl, "visibility", "visible"); 
-    },
-
-    /**
-     * The proxy is automatically resized to the dimensions of the linked
-     * element when a drag is initiated, unless resizeFrame is set to false
-     * @method _resizeProxy
-     * @private
-     */
-    _resizeProxy: function() {
-        if (this.resizeFrame) {
-            var DOM    = YAHOO.util.Dom;
-            var el     = this.getEl();
-            var dragEl = this.getDragEl();
-
-            var bt = parseInt( DOM.getStyle(dragEl, "borderTopWidth"    ), 10);
-            var br = parseInt( DOM.getStyle(dragEl, "borderRightWidth"  ), 10);
-            var bb = parseInt( DOM.getStyle(dragEl, "borderBottomWidth" ), 10);
-            var bl = parseInt( DOM.getStyle(dragEl, "borderLeftWidth"   ), 10);
-
-            if (isNaN(bt)) { bt = 0; }
-            if (isNaN(br)) { br = 0; }
-            if (isNaN(bb)) { bb = 0; }
-            if (isNaN(bl)) { bl = 0; }
-
-
-            var newWidth  = Math.max(0, el.offsetWidth  - br - bl);                                                                                           
-            var newHeight = Math.max(0, el.offsetHeight - bt - bb);
-
-
-            DOM.setStyle( dragEl, "width",  newWidth  + "px" );
-            DOM.setStyle( dragEl, "height", newHeight + "px" );
-        }
-    },
-
-    // overrides YAHOO.util.DragDrop
-    b4MouseDown: function(e) {
-        this.setStartPosition();
-        var x = YAHOO.util.Event.getPageX(e);
-        var y = YAHOO.util.Event.getPageY(e);
-        this.autoOffset(x, y);
-
-        // This causes the autoscroll code to kick off, which means autoscroll can
-        // happen prior to the check for a valid drag handle.
-        // this.setDragElPos(x, y);
-    },
-
-    // overrides YAHOO.util.DragDrop
-    b4StartDrag: function(x, y) {
-        // show the drag frame
-        this.showFrame(x, y);
-    },
-
-    // overrides YAHOO.util.DragDrop
-    b4EndDrag: function(e) {
-        YAHOO.util.Dom.setStyle(this.getDragEl(), "visibility", "hidden"); 
-    },
-
-    // overrides YAHOO.util.DragDrop
-    // By default we try to move the element to the last location of the frame.  
-    // This is so that the default behavior mirrors that of YAHOO.util.DD.  
-    endDrag: function(e) {
-        var DOM = YAHOO.util.Dom;
-        var lel = this.getEl();
-        var del = this.getDragEl();
-
-        // Show the drag frame briefly so we can get its position
-        // del.style.visibility = "";
-        DOM.setStyle(del, "visibility", ""); 
-
-        // Hide the linked element before the move to get around a Safari 
-        // rendering bug.
-        //lel.style.visibility = "hidden";
-        DOM.setStyle(lel, "visibility", "hidden"); 
-        YAHOO.util.DDM.moveToEl(lel, del);
-        //del.style.visibility = "hidden";
-        DOM.setStyle(del, "visibility", "hidden"); 
-        //lel.style.visibility = "";
-        DOM.setStyle(lel, "visibility", ""); 
-    },
-
-    toString: function() {
-        return ("DDProxy " + this.id);
-    }
-/**
-* @event mouseDownEvent
-* @description Provides access to the mousedown event. The mousedown does not always result in a drag operation.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4MouseDownEvent
-* @description Provides access to the mousedown event, before the mouseDownEvent gets fired. Returning false will cancel the drag.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event mouseUpEvent
-* @description Fired from inside DragDropMgr when the drag operation is finished.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4StartDragEvent
-* @description Fires before the startDragEvent, returning false will cancel the startDrag Event.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event startDragEvent
-* @description Occurs after a mouse down and the drag threshold has been met. The drag threshold default is either 3 pixels of mouse movement or 1 full second of holding the mousedown. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event b4EndDragEvent
-* @description Fires before the endDragEvent. Returning false will cancel.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event endDragEvent
-* @description Fires on the mouseup event after a drag has been initiated (startDrag fired).
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-/**
-* @event dragEvent
-* @description Occurs every mousemove event while dragging.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragEvent
-* @description Fires before the dragEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event invalidDropEvent
-* @description Fires when the dragged objects is dropped in a location that contains no drop targets.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOutEvent
-* @description Fires before the dragOutEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOutEvent
-* @description Fires when a dragged object is no longer over an object that had the onDragEnter fire. 
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragEnterEvent
-* @description Occurs when the dragged object first interacts with another targettable drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragOverEvent
-* @description Fires before the dragOverEvent.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragOverEvent
-* @description Fires every mousemove event while over a drag and drop object.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event b4DragDropEvent 
-* @description Fires before the dragDropEvent
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-/**
-* @event dragDropEvent
-* @description Fires when the dragged objects is dropped on another.
-* @type YAHOO.util.CustomEvent See <a href="YAHOO.util.Element.html#addListener">Element.addListener</a> for more information on listening for this event.
-*/
-
-});
-/**
- * A DragDrop implementation that does not move, but can be a drop 
- * target.  You would get the same result by simply omitting implementation 
- * for the event callbacks, but this way we reduce the processing cost of the 
- * event listener and the callbacks.
- * @class DDTarget
- * @extends YAHOO.util.DragDrop 
- * @constructor
- * @param {String} id the id of the element that is a drop target
- * @param {String} sGroup the group of related DragDrop objects
- * @param {object} config an object containing configurable attributes
- *                 Valid properties for DDTarget in addition to those in 
- *                 DragDrop: 
- *                    none
- */
-YAHOO.util.DDTarget = function(id, sGroup, config) {
-    if (id) {
-        this.initTarget(id, sGroup, config);
-    }
-};
-
-// YAHOO.util.DDTarget.prototype = new YAHOO.util.DragDrop();
-YAHOO.extend(YAHOO.util.DDTarget, YAHOO.util.DragDrop, {
-    toString: function() {
-        return ("DDTarget " + this.id);
-    }
-});
-YAHOO.register("dragdrop", YAHOO.util.DragDropMgr, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/element/README b/lib/yui/element/README
deleted file mode 100755 (executable)
index 005bb0c..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-Element Release Notes
-
-*** version 2.5.0 ***
-* SetAttributes now correctly handles false values
-
-*** version 2.4.0 ***
-no change
-
-*** version 2.3.1 ***
-no change
-
-*** version 2.3.0 ***
-* setAttributes now sets in order configs were added
-* added subscribe alias for on/addListener
-
-*** version 2.2.2 ***
-* fixed contentReady timing regression
-
-*** version 2.2.1 ***
-* Added support for "dblclick", "focus", "blur", and "submit" event (for elements that support them)
-* Fixed scope correction for addListener/on/subscribe
-
-*** version 2.2.0 ***
-* beta introduction (broken out of TabView for general use)
-* The Element class provides a wrapper for HTMLElements in the DOM and makes simpler common tasks such as adding listeners, manipulating the DOM, and setting and getting attributes.
diff --git a/lib/yui/element/element-beta-debug.js b/lib/yui/element/element-beta-debug.js
deleted file mode 100755 (executable)
index c523846..0000000
+++ /dev/null
@@ -1,1006 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * Provides Attribute configurations.
- * @namespace YAHOO.util
- * @class Attribute
- * @constructor
- * @param hash {Object} The intial Attribute.
- * @param {YAHOO.util.AttributeProvider} The owner of the Attribute instance.
- */
-
-YAHOO.util.Attribute = function(hash, owner) {
-    if (owner) { 
-        this.owner = owner;
-        this.configure(hash, true);
-    }
-};
-
-YAHOO.util.Attribute.prototype = {
-       /**
-     * The name of the attribute.
-        * @property name
-        * @type String
-        */
-    name: undefined,
-    
-       /**
-     * The value of the attribute.
-        * @property value
-        * @type String
-        */
-    value: null,
-    
-       /**
-     * The owner of the attribute.
-        * @property owner
-        * @type YAHOO.util.AttributeProvider
-        */
-    owner: null,
-    
-       /**
-     * Whether or not the attribute is read only.
-        * @property readOnly
-        * @type Boolean
-        */
-    readOnly: false,
-    
-       /**
-     * Whether or not the attribute can only be written once.
-        * @property writeOnce
-        * @type Boolean
-        */
-    writeOnce: false,
-
-       /**
-     * The attribute's initial configuration.
-     * @private
-        * @property _initialConfig
-        * @type Object
-        */
-    _initialConfig: null,
-    
-       /**
-     * Whether or not the attribute's value has been set.
-     * @private
-        * @property _written
-        * @type Boolean
-        */
-    _written: false,
-    
-       /**
-     * The method to use when setting the attribute's value.
-     * The method recieves the new value as the only argument.
-        * @property method
-        * @type Function
-        */
-    method: null,
-    
-       /**
-     * The validator to use when setting the attribute's value.
-        * @property validator
-        * @type Function
-     * @return Boolean
-        */
-    validator: null,
-    
-    /**
-     * Retrieves the current value of the attribute.
-     * @method getValue
-     * @return {any} The current value of the attribute.
-     */
-    getValue: function() {
-        return this.value;
-    },
-    
-    /**
-     * Sets the value of the attribute and fires beforeChange and change events.
-     * @method setValue
-     * @param {Any} value The value to apply to the attribute.
-     * @param {Boolean} silent If true the change events will not be fired.
-     * @return {Boolean} Whether or not the value was set.
-     */
-    setValue: function(value, silent) {
-        var beforeRetVal;
-        var owner = this.owner;
-        var name = this.name;
-        
-        var event = {
-            type: name, 
-            prevValue: this.getValue(),
-            newValue: value
-        };
-        
-        if (this.readOnly || ( this.writeOnce && this._written) ) {
-            YAHOO.log( 'setValue ' + name + ', ' +  value +
-                    ' failed: read only', 'error', 'Attribute');
-            return false; // write not allowed
-        }
-        
-        if (this.validator && !this.validator.call(owner, value) ) {
-            YAHOO.log( 'setValue ' + name + ', ' + value +
-                    ' validation failed', 'error', 'Attribute');
-            return false; // invalid value
-        }
-
-        if (!silent) {
-            beforeRetVal = owner.fireBeforeChangeEvent(event);
-            if (beforeRetVal === false) {
-                YAHOO.log('setValue ' + name + 
-                        ' cancelled by beforeChange event', 'info', 'Attribute');
-                return false;
-            }
-        }
-
-        if (this.method) {
-            this.method.call(owner, value);
-        }
-        
-        this.value = value;
-        this._written = true;
-        
-        event.type = name;
-        
-        if (!silent) {
-            this.owner.fireChangeEvent(event);
-        }
-        
-        return true;
-    },
-    
-    /**
-     * Allows for configuring the Attribute's properties.
-     * @method configure
-     * @param {Object} map A key-value map of Attribute properties.
-     * @param {Boolean} init Whether or not this should become the initial config.
-     */
-    configure: function(map, init) {
-        map = map || {};
-        this._written = false; // reset writeOnce
-        this._initialConfig = this._initialConfig || {};
-        
-        for (var key in map) {
-            if ( key && YAHOO.lang.hasOwnProperty(map, key) ) {
-                this[key] = map[key];
-                if (init) {
-                    this._initialConfig[key] = map[key];
-                }
-            }
-        }
-    },
-    
-    /**
-     * Resets the value to the initial config value.
-     * @method resetValue
-     * @return {Boolean} Whether or not the value was set.
-     */
-    resetValue: function() {
-        return this.setValue(this._initialConfig.value);
-    },
-    
-    /**
-     * Resets the attribute config to the initial config state.
-     * @method resetConfig
-     */
-    resetConfig: function() {
-        this.configure(this._initialConfig);
-    },
-    
-    /**
-     * Resets the value to the current value.
-     * Useful when values may have gotten out of sync with actual properties.
-     * @method refresh
-     * @return {Boolean} Whether or not the value was set.
-     */
-    refresh: function(silent) {
-        this.setValue(this.value, silent);
-    }
-};
-
-(function() {
-    var Lang = YAHOO.util.Lang;
-
-    /*
-    Copyright (c) 2006, Yahoo! Inc. All rights reserved.
-    Code licensed under the BSD License:
-    http://developer.yahoo.net/yui/license.txt
-    */
-    
-    /**
-     * Provides and manages YAHOO.util.Attribute instances
-     * @namespace YAHOO.util
-     * @class AttributeProvider
-     * @uses YAHOO.util.EventProvider
-     */
-    YAHOO.util.AttributeProvider = function() {};
-
-    YAHOO.util.AttributeProvider.prototype = {
-        
-        /**
-         * A key-value map of Attribute configurations
-         * @property _configs
-         * @protected (may be used by subclasses and augmentors)
-         * @private
-         * @type {Object}
-         */
-        _configs: null,
-        /**
-         * Returns the current value of the attribute.
-         * @method get
-         * @param {String} key The attribute whose value will be returned.
-         */
-        get: function(key){
-            this._configs = this._configs || {};
-            var config = this._configs[key];
-            
-            if (!config) {
-                YAHOO.log(key + ' not found', 'error', 'AttributeProvider');
-                return undefined;
-            }
-            
-            return config.value;
-        },
-        
-        /**
-         * Sets the value of a config.
-         * @method set
-         * @param {String} key The name of the attribute
-         * @param {Any} value The value to apply to the attribute
-         * @param {Boolean} silent Whether or not to suppress change events
-         * @return {Boolean} Whether or not the value was set.
-         */
-        set: function(key, value, silent){
-            this._configs = this._configs || {};
-            var config = this._configs[key];
-            
-            if (!config) {
-                YAHOO.log('set failed: ' + key + ' not found',
-                        'error', 'AttributeProvider');
-                return false;
-            }
-            
-            return config.setValue(value, silent);
-        },
-    
-        /**
-         * Returns an array of attribute names.
-         * @method getAttributeKeys
-         * @return {Array} An array of attribute names.
-         */
-        getAttributeKeys: function(){
-            this._configs = this._configs;
-            var keys = [];
-            var config;
-            for (var key in this._configs) {
-                config = this._configs[key];
-                if ( Lang.hasOwnProperty(this._configs, key) && 
-                        !Lang.isUndefined(config) ) {
-                    keys[keys.length] = key;
-                }
-            }
-            
-            return keys;
-        },
-        
-        /**
-         * Sets multiple attribute values.
-         * @method setAttributes
-         * @param {Object} map  A key-value map of attributes
-         * @param {Boolean} silent Whether or not to suppress change events
-         */
-        setAttributes: function(map, silent){
-            for (var key in map) {
-                if ( Lang.hasOwnProperty(map, key) ) {
-                    this.set(key, map[key], silent);
-                }
-            }
-        },
-    
-        /**
-         * Resets the specified attribute's value to its initial value.
-         * @method resetValue
-         * @param {String} key The name of the attribute
-         * @param {Boolean} silent Whether or not to suppress change events
-         * @return {Boolean} Whether or not the value was set
-         */
-        resetValue: function(key, silent){
-            this._configs = this._configs || {};
-            if (this._configs[key]) {
-                this.set(key, this._configs[key]._initialConfig.value, silent);
-                return true;
-            }
-            return false;
-        },
-    
-        /**
-         * Sets the attribute's value to its current value.
-         * @method refresh
-         * @param {String | Array} key The attribute(s) to refresh
-         * @param {Boolean} silent Whether or not to suppress change events
-         */
-        refresh: function(key, silent){
-            this._configs = this._configs;
-            
-            key = ( ( Lang.isString(key) ) ? [key] : key ) || 
-                    this.getAttributeKeys();
-            
-            for (var i = 0, len = key.length; i < len; ++i) { 
-                if ( // only set if there is a value and not null
-                    this._configs[key[i]] && 
-                    ! Lang.isUndefined(this._configs[key[i]].value) &&
-                    ! Lang.isNull(this._configs[key[i]].value) ) {
-                    this._configs[key[i]].refresh(silent);
-                }
-            }
-        },
-    
-        /**
-         * Adds an Attribute to the AttributeProvider instance. 
-         * @method register
-         * @param {String} key The attribute's name
-         * @param {Object} map A key-value map containing the
-         * attribute's properties.
-         * @deprecated Use setAttributeConfig
-         */
-        register: function(key, map) {
-            this.setAttributeConfig(key, map);
-        },
-        
-        
-        /**
-         * Returns the attribute's properties.
-         * @method getAttributeConfig
-         * @param {String} key The attribute's name
-         * @private
-         * @return {object} A key-value map containing all of the
-         * attribute's properties.
-         */
-        getAttributeConfig: function(key) {
-            this._configs = this._configs || {};
-            var config = this._configs[key] || {};
-            var map = {}; // returning a copy to prevent overrides
-            
-            for (key in config) {
-                if ( Lang.hasOwnProperty(config, key) ) {
-                    map[key] = config[key];
-                }
-            }
-    
-            return map;
-        },
-        
-        /**
-         * Sets or updates an Attribute instance's properties. 
-         * @method setAttributeConfig
-         * @param {String} key The attribute's name.
-         * @param {Object} map A key-value map of attribute properties
-         * @param {Boolean} init Whether or not this should become the intial config.
-         */
-        setAttributeConfig: function(key, map, init) {
-            this._configs = this._configs || {};
-            map = map || {};
-            if (!this._configs[key]) {
-                map.name = key;
-                this._configs[key] = this.createAttribute(map);
-            } else {
-                this._configs[key].configure(map, init);
-            }
-        },
-        
-        /**
-         * Sets or updates an Attribute instance's properties. 
-         * @method configureAttribute
-         * @param {String} key The attribute's name.
-         * @param {Object} map A key-value map of attribute properties
-         * @param {Boolean} init Whether or not this should become the intial config.
-         * @deprecated Use setAttributeConfig
-         */
-        configureAttribute: function(key, map, init) {
-            this.setAttributeConfig(key, map, init);
-        },
-        
-        /**
-         * Resets an attribute to its intial configuration. 
-         * @method resetAttributeConfig
-         * @param {String} key The attribute's name.
-         * @private
-         */
-        resetAttributeConfig: function(key){
-            this._configs = this._configs || {};
-            this._configs[key].resetConfig();
-        },
-        
-        // wrapper for EventProvider.subscribe
-        // to create events on the fly
-        subscribe: function(type, callback) {
-            this._events = this._events || {};
-
-            if ( !(type in this._events) ) {
-                this._events[type] = this.createEvent(type);
-            }
-
-            YAHOO.util.EventProvider.prototype.subscribe.apply(this, arguments);
-        },
-
-        on: function() {
-            this.subscribe.apply(this, arguments);
-        },
-
-        addListener: function() {
-            this.subscribe.apply(this, arguments);
-        },
-
-        /**
-         * Fires the attribute's beforeChange event. 
-         * @method fireBeforeChangeEvent
-         * @param {String} key The attribute's name.
-         * @param {Obj} e The event object to pass to handlers.
-         */
-        fireBeforeChangeEvent: function(e) {
-            var type = 'before';
-            type += e.type.charAt(0).toUpperCase() + e.type.substr(1) + 'Change';
-            e.type = type;
-            return this.fireEvent(e.type, e);
-        },
-        
-        /**
-         * Fires the attribute's change event. 
-         * @method fireChangeEvent
-         * @param {String} key The attribute's name.
-         * @param {Obj} e The event object to pass to the handlers.
-         */
-        fireChangeEvent: function(e) {
-            e.type += 'Change';
-            return this.fireEvent(e.type, e);
-        },
-
-        createAttribute: function(map) {
-            return new YAHOO.util.Attribute(map, this);
-        }
-    };
-    
-    YAHOO.augment(YAHOO.util.AttributeProvider, YAHOO.util.EventProvider);
-})();
-
-(function() {
-// internal shorthand
-var Dom = YAHOO.util.Dom,
-    AttributeProvider = YAHOO.util.AttributeProvider;
-
-/**
- * Element provides an wrapper object to simplify adding
- * event listeners, using dom methods, and managing attributes. 
- * @module element
- * @namespace YAHOO.util
- * @requires yahoo, dom, event
- * @beta
- */
-
-/**
- * Element provides an wrapper object to simplify adding
- * event listeners, using dom methods, and managing attributes. 
- * @class Element
- * @uses YAHOO.util.AttributeProvider
- * @constructor
- * @param el {HTMLElement | String} The html element that 
- * represents the Element.
- * @param {Object} map A key-value map of initial config names and values
- */
-YAHOO.util.Element = function(el, map) {
-    if (arguments.length) {
-        this.init(el, map);
-    }
-};
-
-YAHOO.util.Element.prototype = {
-    /**
-     * Dom events supported by the Element instance.
-     * @property DOM_EVENTS
-     * @type Object
-     */
-    DOM_EVENTS: null,
-
-    /**
-     * Wrapper for HTMLElement method.
-     * @method appendChild
-     * @param {YAHOO.util.Element || HTMLElement} child The element to append. 
-     */
-    appendChild: function(child) {
-        child = child.get ? child.get('element') : child;
-        this.get('element').appendChild(child);
-    },
-    
-    /**
-     * Wrapper for HTMLElement method.
-     * @method getElementsByTagName
-     * @param {String} tag The tagName to collect
-     */
-    getElementsByTagName: function(tag) {
-        return this.get('element').getElementsByTagName(tag);
-    },
-    
-    /**
-     * Wrapper for HTMLElement method.
-     * @method hasChildNodes
-     * @return {Boolean} Whether or not the element has childNodes
-     */
-    hasChildNodes: function() {
-        return this.get('element').hasChildNodes();
-    },
-    
-    /**
-     * Wrapper for HTMLElement method.
-     * @method insertBefore
-     * @param {HTMLElement} element The HTMLElement to insert
-     * @param {HTMLElement} before The HTMLElement to insert
-     * the element before.
-     */
-    insertBefore: function(element, before) {
-        element = element.get ? element.get('element') : element;
-        before = (before && before.get) ? before.get('element') : before;
-        
-        this.get('element').insertBefore(element, before);
-    },
-    
-    /**
-     * Wrapper for HTMLElement method.
-     * @method removeChild
-     * @param {HTMLElement} child The HTMLElement to remove
-     */
-    removeChild: function(child) {
-        child = child.get ? child.get('element') : child;
-        this.get('element').removeChild(child);
-        return true;
-    },
-    
-    /**
-     * Wrapper for HTMLElement method.
-     * @method replaceChild
-     * @param {HTMLElement} newNode The HTMLElement to insert
-     * @param {HTMLElement} oldNode The HTMLElement to replace
-     */
-    replaceChild: function(newNode, oldNode) {
-        newNode = newNode.get ? newNode.get('element') : newNode;
-        oldNode = oldNode.get ? oldNode.get('element') : oldNode;
-        return this.get('element').replaceChild(newNode, oldNode);
-    },
-
-    
-    /**
-     * Registers Element specific attributes.
-     * @method initAttributes
-     * @param {Object} map A key-value map of initial attribute configs
-     */
-    initAttributes: function(map) {
-    },
-
-    /**
-     * Adds a listener for the given event.  These may be DOM or 
-     * customEvent listeners.  Any event that is fired via fireEvent
-     * can be listened for.  All handlers receive an event object. 
-     * @method addListener
-     * @param {String} type The name of the event to listen for
-     * @param {Function} fn The handler to call when the event fires
-     * @param {Any} obj A variable to pass to the handler
-     * @param {Object} scope The object to use for the scope of the handler 
-     */
-    addListener: function(type, fn, obj, scope) {
-        var el = this.get('element');
-        scope = scope || this;
-        
-        el = this.get('id') || el;
-        var self = this; 
-        if (!this._events[type]) { // create on the fly
-            if ( this.DOM_EVENTS[type] ) {
-                YAHOO.util.Event.addListener(el, type, function(e) {
-                    if (e.srcElement && !e.target) { // supplement IE with target
-                        e.target = e.srcElement;
-                    }
-                    self.fireEvent(type, e);
-                }, obj, scope);
-            }
-            
-            this.createEvent(type, this);
-        }
-        
-        YAHOO.util.EventProvider.prototype.subscribe.apply(this, arguments); // notify via customEvent
-    },
-    
-    
-    /**
-     * Alias for addListener
-     * @method on
-     * @param {String} type The name of the event to listen for
-     * @param {Function} fn The function call when the event fires
-     * @param {Any} obj A variable to pass to the handler
-     * @param {Object} scope The object to use for the scope of the handler 
-     */
-    on: function() { this.addListener.apply(this, arguments); },
-    
-    /**
-     * Alias for addListener
-     * @method subscribe
-     * @param {String} type The name of the event to listen for
-     * @param {Function} fn The function call when the event fires
-     * @param {Any} obj A variable to pass to the handler
-     * @param {Object} scope The object to use for the scope of the handler 
-     */
-    subscribe: function() { this.addListener.apply(this, arguments); },
-    
-    /**
-     * Remove an event listener
-     * @method removeListener
-     * @param {String} type The name of the event to listen for
-     * @param {Function} fn The function call when the event fires
-     */
-    removeListener: function(type, fn) {
-        this.unsubscribe.apply(this, arguments);
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method addClass
-     * @param {String} className The className to add
-     */
-    addClass: function(className) {
-        Dom.addClass(this.get('element'), className);
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method getElementsByClassName
-     * @param {String} className The className to collect
-     * @param {String} tag (optional) The tag to use in
-     * conjunction with class name
-     * @return {Array} Array of HTMLElements
-     */
-    getElementsByClassName: function(className, tag) {
-        return Dom.getElementsByClassName(className, tag,
-                this.get('element') );
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method hasClass
-     * @param {String} className The className to add
-     * @return {Boolean} Whether or not the element has the class name
-     */
-    hasClass: function(className) {
-        return Dom.hasClass(this.get('element'), className); 
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method removeClass
-     * @param {String} className The className to remove
-     */
-    removeClass: function(className) {
-        return Dom.removeClass(this.get('element'), className);
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method replaceClass
-     * @param {String} oldClassName The className to replace
-     * @param {String} newClassName The className to add
-     */
-    replaceClass: function(oldClassName, newClassName) {
-        return Dom.replaceClass(this.get('element'), 
-                oldClassName, newClassName);
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method setStyle
-     * @param {String} property The style property to set
-     * @param {String} value The value to apply to the style property
-     */
-    setStyle: function(property, value) {
-        var el = this.get('element');
-        if (!el) {
-            return this._queue[this._queue.length] = ['setStyle', arguments];
-        }
-
-        return Dom.setStyle(el,  property, value); // TODO: always queuing?
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method getStyle
-     * @param {String} property The style property to retrieve
-     * @return {String} The current value of the property
-     */
-    getStyle: function(property) {
-        return Dom.getStyle(this.get('element'),  property);
-    },
-    
-    /**
-     * Apply any queued set calls.
-     * @method fireQueue
-     */
-    fireQueue: function() {
-        var queue = this._queue;
-        for (var i = 0, len = queue.length; i < len; ++i) {
-            this[queue[i][0]].apply(this, queue[i][1]);
-        }
-    },
-    
-    /**
-     * Appends the HTMLElement into either the supplied parentNode.
-     * @method appendTo
-     * @param {HTMLElement | Element} parentNode The node to append to
-     * @param {HTMLElement | Element} before An optional node to insert before
-     */
-    appendTo: function(parent, before) {
-        parent = (parent.get) ?  parent.get('element') : Dom.get(parent);
-        
-        this.fireEvent('beforeAppendTo', {
-            type: 'beforeAppendTo',
-            target: parent
-        });
-        
-        
-        before = (before && before.get) ? 
-                before.get('element') : Dom.get(before);
-        var element = this.get('element');
-        
-        if (!element) {
-            YAHOO.log('appendTo failed: element not available',
-                    'error', 'Element');
-            return false;
-        }
-        
-        if (!parent) {
-            YAHOO.log('appendTo failed: parent not available',
-                    'error', 'Element');
-            return false;
-        }
-        
-        if (element.parent != parent) {
-            if (before) {
-                parent.insertBefore(element, before);
-            } else {
-                parent.appendChild(element);
-            }
-        }
-        
-        YAHOO.log(element + 'appended to ' + parent);
-        
-        this.fireEvent('appendTo', {
-            type: 'appendTo',
-            target: parent
-        });
-    },
-    
-    get: function(key) {
-        var configs = this._configs || {};
-        var el = configs.element; // avoid loop due to 'element'
-        if (el && !configs[key] && !YAHOO.lang.isUndefined(el.value[key]) ) {
-            return el.value[key];
-        }
-
-        return AttributeProvider.prototype.get.call(this, key);
-    },
-
-    setAttributes: function(map, silent){
-        var el = this.get('element');
-        for (var key in map) {
-            // need to configure if setting unconfigured HTMLElement attribute 
-            if ( !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) {
-                this.setAttributeConfig(key);
-            }
-        }
-
-        // set based on configOrder
-        for (var i = 0, len = this._configOrder.length; i < len; ++i) {
-            if (map[this._configOrder[i]] !== undefined) {
-                this.set(this._configOrder[i], map[this._configOrder[i]], silent);
-            }
-        }
-    },
-
-    set: function(key, value, silent) {
-        var el = this.get('element');
-        if (!el) {
-            this._queue[this._queue.length] = ['set', arguments];
-            if (this._configs[key]) {
-                this._configs[key].value = value; // so "get" works while queueing
-            
-            }
-            return;
-        }
-        
-        // set it on the element if not configured and is an HTML attribute
-        if ( !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) {
-            _registerHTMLAttr.call(this, key);
-        }
-
-        return AttributeProvider.prototype.set.apply(this, arguments);
-    },
-    
-    setAttributeConfig: function(key, map, init) {
-        var el = this.get('element');
-
-        if (el && !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) {
-            _registerHTMLAttr.call(this, key, map);
-        } else {
-            AttributeProvider.prototype.setAttributeConfig.apply(this, arguments);
-        }
-        this._configOrder.push(key);
-    },
-    
-    getAttributeKeys: function() {
-        var el = this.get('element');
-        var keys = AttributeProvider.prototype.getAttributeKeys.call(this);
-        
-        //add any unconfigured element keys
-        for (var key in el) {
-            if (!this._configs[key]) {
-                keys[key] = keys[key] || el[key];
-            }
-        }
-        
-        return keys;
-    },
-
-    createEvent: function(type, scope) {
-        this._events[type] = true;
-        AttributeProvider.prototype.createEvent.apply(this, arguments);
-    },
-    
-    init: function(el, attr) {
-        _initElement.apply(this, arguments); 
-    }
-};
-
-var _initElement = function(el, attr) {
-    this._queue = this._queue || [];
-    this._events = this._events || {};
-    this._configs = this._configs || {};
-    this._configOrder = []; 
-    attr = attr || {};
-    attr.element = attr.element || el || null;
-
-    this.DOM_EVENTS = {
-        'click': true,
-        'dblclick': true,
-        'keydown': true,
-        'keypress': true,
-        'keyup': true,
-        'mousedown': true,
-        'mousemove': true,
-        'mouseout': true, 
-        'mouseover': true, 
-        'mouseup': true,
-        'focus': true,
-        'blur': true,
-        'submit': true
-    };
-
-    var isReady = false;  // to determine when to init HTMLElement and content
-
-    if (YAHOO.lang.isString(el) ) { // defer until available/ready
-        _registerHTMLAttr.call(this, 'id', { value: attr.element });
-    }
-
-    if (Dom.get(el)) {
-        isReady = true;
-        _initHTMLElement.call(this, attr);
-        _initContent.call(this, attr);
-    } 
-
-    YAHOO.util.Event.onAvailable(attr.element, function() {
-        if (!isReady) { // otherwise already done
-            _initHTMLElement.call(this, attr);
-        }
-
-        this.fireEvent('available', { type: 'available', target: attr.element });  
-    }, this, true);
-    
-    YAHOO.util.Event.onContentReady(attr.element, function() {
-        if (!isReady) { // otherwise already done
-            _initContent.call(this, attr);
-        }
-        this.fireEvent('contentReady', { type: 'contentReady', target: attr.element });  
-    }, this, true);
-};
-
-var _initHTMLElement = function(attr) {
-    /**
-     * The HTMLElement the Element instance refers to.
-     * @attribute element
-     * @type HTMLElement
-     */
-    this.setAttributeConfig('element', {
-        value: Dom.get(attr.element),
-        readOnly: true
-     });
-};
-
-var _initContent = function(attr) {
-    this.initAttributes(attr);
-    this.setAttributes(attr, true);
-    this.fireQueue();
-
-};
-
-/**
- * Sets the value of the property and fires beforeChange and change events.
- * @private
- * @method _registerHTMLAttr
- * @param {YAHOO.util.Element} element The Element instance to
- * register the config to.
- * @param {String} key The name of the config to register
- * @param {Object} map A key-value map of the config's params
- */
-var _registerHTMLAttr = function(key, map) {
-    var el = this.get('element');
-    map = map || {};
-    map.name = key;
-    map.method = map.method || function(value) {
-        el[key] = value;
-    };
-    map.value = map.value || el[key];
-    this._configs[key] = new YAHOO.util.Attribute(map, this);
-};
-
-/**
- * Fires when the Element's HTMLElement can be retrieved by Id.
- * <p>See: <a href="#addListener">Element.addListener</a></p>
- * <p><strong>Event fields:</strong><br>
- * <code>&lt;String&gt; type</code> available<br>
- * <code>&lt;HTMLElement&gt;
- * target</code> the HTMLElement bound to this Element instance<br>
- * <p><strong>Usage:</strong><br>
- * <code>var handler = function(e) {var target = e.target};<br>
- * myTabs.addListener('available', handler);</code></p>
- * @event available
- */
-/**
- * Fires when the Element's HTMLElement subtree is rendered.
- * <p>See: <a href="#addListener">Element.addListener</a></p>
- * <p><strong>Event fields:</strong><br>
- * <code>&lt;String&gt; type</code> contentReady<br>
- * <code>&lt;HTMLElement&gt;
- * target</code> the HTMLElement bound to this Element instance<br>
- * <p><strong>Usage:</strong><br>
- * <code>var handler = function(e) {var target = e.target};<br>
- * myTabs.addListener('contentReady', handler);</code></p>
- * @event contentReady
- */
-
-/**
- * Fires before the Element is appended to another Element.
- * <p>See: <a href="#addListener">Element.addListener</a></p>
- * <p><strong>Event fields:</strong><br>
- * <code>&lt;String&gt; type</code> beforeAppendTo<br>
- * <code>&lt;HTMLElement/Element&gt;
- * target</code> the HTMLElement/Element being appended to 
- * <p><strong>Usage:</strong><br>
- * <code>var handler = function(e) {var target = e.target};<br>
- * myTabs.addListener('beforeAppendTo', handler);</code></p>
- * @event beforeAppendTo
- */
-
-/**
- * Fires after the Element is appended to another Element.
- * <p>See: <a href="#addListener">Element.addListener</a></p>
- * <p><strong>Event fields:</strong><br>
- * <code>&lt;String&gt; type</code> appendTo<br>
- * <code>&lt;HTMLElement/Element&gt;
- * target</code> the HTMLElement/Element being appended to 
- * <p><strong>Usage:</strong><br>
- * <code>var handler = function(e) {var target = e.target};<br>
- * myTabs.addListener('appendTo', handler);</code></p>
- * @event appendTo
- */
-
-YAHOO.augment(YAHOO.util.Element, AttributeProvider);
-})();
-
-YAHOO.register("element", YAHOO.util.Element, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/element/element-beta-min.js b/lib/yui/element/element-beta-min.js
deleted file mode 100755 (executable)
index 406957a..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.util.Attribute=function(B,A){if(A){this.owner=A;this.configure(B,true);}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,validator:null,getValue:function(){return this.value;},setValue:function(F,B){var E;var A=this.owner;var C=this.name;var D={type:C,prevValue:this.getValue(),newValue:F};if(this.readOnly||(this.writeOnce&&this._written)){return false;}if(this.validator&&!this.validator.call(A,F)){return false;}if(!B){E=A.fireBeforeChangeEvent(D);if(E===false){return false;}}if(this.method){this.method.call(A,F);}this.value=F;this._written=true;D.type=C;if(!B){this.owner.fireChangeEvent(D);}return true;},configure:function(B,C){B=B||{};this._written=false;this._initialConfig=this._initialConfig||{};for(var A in B){if(A&&YAHOO.lang.hasOwnProperty(B,A)){this[A]=B[A];if(C){this._initialConfig[A]=B[A];}}}},resetValue:function(){return this.setValue(this._initialConfig.value);},resetConfig:function(){this.configure(this._initialConfig);},refresh:function(A){this.setValue(this.value,A);}};(function(){var A=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(C){this._configs=this._configs||{};var B=this._configs[C];if(!B){return undefined;}return B.value;},set:function(D,E,B){this._configs=this._configs||{};var C=this._configs[D];if(!C){return false;}return C.setValue(E,B);},getAttributeKeys:function(){this._configs=this._configs;var D=[];var B;for(var C in this._configs){B=this._configs[C];if(A.hasOwnProperty(this._configs,C)&&!A.isUndefined(B)){D[D.length]=C;}}return D;},setAttributes:function(D,B){for(var C in D){if(A.hasOwnProperty(D,C)){this.set(C,D[C],B);}}},resetValue:function(C,B){this._configs=this._configs||{};if(this._configs[C]){this.set(C,this._configs[C]._initialConfig.value,B);return true;}return false;},refresh:function(E,C){this._configs=this._configs;E=((A.isString(E))?[E]:E)||this.getAttributeKeys();for(var D=0,B=E.length;D<B;++D){if(this._configs[E[D]]&&!A.isUndefined(this._configs[E[D]].value)&&!A.isNull(this._configs[E[D]].value)){this._configs[E[D]].refresh(C);}}},register:function(B,C){this.setAttributeConfig(B,C);},getAttributeConfig:function(C){this._configs=this._configs||{};var B=this._configs[C]||{};var D={};for(C in B){if(A.hasOwnProperty(B,C)){D[C]=B[C];}}return D;},setAttributeConfig:function(B,C,D){this._configs=this._configs||{};C=C||{};if(!this._configs[B]){C.name=B;this._configs[B]=this.createAttribute(C);}else{this._configs[B].configure(C,D);}},configureAttribute:function(B,C,D){this.setAttributeConfig(B,C,D);},resetAttributeConfig:function(B){this._configs=this._configs||{};this._configs[B].resetConfig();},subscribe:function(B,C){this._events=this._events||{};if(!(B in this._events)){this._events[B]=this.createEvent(B);}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){this.subscribe.apply(this,arguments);},addListener:function(){this.subscribe.apply(this,arguments);},fireBeforeChangeEvent:function(C){var B="before";B+=C.type.charAt(0).toUpperCase()+C.type.substr(1)+"Change";C.type=B;return this.fireEvent(C.type,C);},fireChangeEvent:function(B){B.type+="Change";return this.fireEvent(B.type,B);},createAttribute:function(B){return new YAHOO.util.Attribute(B,this);}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider);})();(function(){var D=YAHOO.util.Dom,F=YAHOO.util.AttributeProvider;YAHOO.util.Element=function(G,H){if(arguments.length){this.init(G,H);}};YAHOO.util.Element.prototype={DOM_EVENTS:null,appendChild:function(G){G=G.get?G.get("element"):G;this.get("element").appendChild(G);},getElementsByTagName:function(G){return this.get("element").getElementsByTagName(G);},hasChildNodes:function(){return this.get("element").hasChildNodes();},insertBefore:function(G,H){G=G.get?G.get("element"):G;H=(H&&H.get)?H.get("element"):H;this.get("element").insertBefore(G,H);},removeChild:function(G){G=G.get?G.get("element"):G;this.get("element").removeChild(G);return true;},replaceChild:function(G,H){G=G.get?G.get("element"):G;H=H.get?H.get("element"):H;return this.get("element").replaceChild(G,H);},initAttributes:function(G){},addListener:function(K,J,L,I){var H=this.get("element");I=I||this;H=this.get("id")||H;var G=this;if(!this._events[K]){if(this.DOM_EVENTS[K]){YAHOO.util.Event.addListener(H,K,function(M){if(M.srcElement&&!M.target){M.target=M.srcElement;}G.fireEvent(K,M);},L,I);}this.createEvent(K,this);}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments);},on:function(){this.addListener.apply(this,arguments);},subscribe:function(){this.addListener.apply(this,arguments);},removeListener:function(H,G){this.unsubscribe.apply(this,arguments);},addClass:function(G){D.addClass(this.get("element"),G);},getElementsByClassName:function(H,G){return D.getElementsByClassName(H,G,this.get("element"));},hasClass:function(G){return D.hasClass(this.get("element"),G);},removeClass:function(G){return D.removeClass(this.get("element"),G);},replaceClass:function(H,G){return D.replaceClass(this.get("element"),H,G);},setStyle:function(I,H){var G=this.get("element");if(!G){return this._queue[this._queue.length]=["setStyle",arguments];}return D.setStyle(G,I,H);},getStyle:function(G){return D.getStyle(this.get("element"),G);},fireQueue:function(){var H=this._queue;for(var I=0,G=H.length;I<G;++I){this[H[I][0]].apply(this,H[I][1]);}},appendTo:function(H,I){H=(H.get)?H.get("element"):D.get(H);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:H});I=(I&&I.get)?I.get("element"):D.get(I);var G=this.get("element");if(!G){return false;}if(!H){return false;}if(G.parent!=H){if(I){H.insertBefore(G,I);}else{H.appendChild(G);}}this.fireEvent("appendTo",{type:"appendTo",target:H});},get:function(G){var I=this._configs||{};var H=I.element;if(H&&!I[G]&&!YAHOO.lang.isUndefined(H.value[G])){return H.value[G];}return F.prototype.get.call(this,G);},setAttributes:function(L,H){var K=this.get("element");
-for(var J in L){if(!this._configs[J]&&!YAHOO.lang.isUndefined(K[J])){this.setAttributeConfig(J);}}for(var I=0,G=this._configOrder.length;I<G;++I){if(L[this._configOrder[I]]!==undefined){this.set(this._configOrder[I],L[this._configOrder[I]],H);}}},set:function(H,J,G){var I=this.get("element");if(!I){this._queue[this._queue.length]=["set",arguments];if(this._configs[H]){this._configs[H].value=J;}return ;}if(!this._configs[H]&&!YAHOO.lang.isUndefined(I[H])){C.call(this,H);}return F.prototype.set.apply(this,arguments);},setAttributeConfig:function(G,I,J){var H=this.get("element");if(H&&!this._configs[G]&&!YAHOO.lang.isUndefined(H[G])){C.call(this,G,I);}else{F.prototype.setAttributeConfig.apply(this,arguments);}this._configOrder.push(G);},getAttributeKeys:function(){var H=this.get("element");var I=F.prototype.getAttributeKeys.call(this);for(var G in H){if(!this._configs[G]){I[G]=I[G]||H[G];}}return I;},createEvent:function(H,G){this._events[H]=true;F.prototype.createEvent.apply(this,arguments);},init:function(H,G){A.apply(this,arguments);}};var A=function(H,G){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];G=G||{};G.element=G.element||H||null;this.DOM_EVENTS={"click":true,"dblclick":true,"keydown":true,"keypress":true,"keyup":true,"mousedown":true,"mousemove":true,"mouseout":true,"mouseover":true,"mouseup":true,"focus":true,"blur":true,"submit":true};var I=false;if(YAHOO.lang.isString(H)){C.call(this,"id",{value:G.element});}if(D.get(H)){I=true;E.call(this,G);B.call(this,G);}YAHOO.util.Event.onAvailable(G.element,function(){if(!I){E.call(this,G);}this.fireEvent("available",{type:"available",target:G.element});},this,true);YAHOO.util.Event.onContentReady(G.element,function(){if(!I){B.call(this,G);}this.fireEvent("contentReady",{type:"contentReady",target:G.element});},this,true);};var E=function(G){this.setAttributeConfig("element",{value:D.get(G.element),readOnly:true});};var B=function(G){this.initAttributes(G);this.setAttributes(G,true);this.fireQueue();};var C=function(G,I){var H=this.get("element");I=I||{};I.name=G;I.method=I.method||function(J){H[G]=J;};I.value=I.value||H[G];this._configs[G]=new YAHOO.util.Attribute(I,this);};YAHOO.augment(YAHOO.util.Element,F);})();YAHOO.register("element",YAHOO.util.Element,{version:"2.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/element/element-beta.js b/lib/yui/element/element-beta.js
deleted file mode 100755 (executable)
index 3da9955..0000000
+++ /dev/null
@@ -1,992 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * Provides Attribute configurations.
- * @namespace YAHOO.util
- * @class Attribute
- * @constructor
- * @param hash {Object} The intial Attribute.
- * @param {YAHOO.util.AttributeProvider} The owner of the Attribute instance.
- */
-
-YAHOO.util.Attribute = function(hash, owner) {
-    if (owner) { 
-        this.owner = owner;
-        this.configure(hash, true);
-    }
-};
-
-YAHOO.util.Attribute.prototype = {
-       /**
-     * The name of the attribute.
-        * @property name
-        * @type String
-        */
-    name: undefined,
-    
-       /**
-     * The value of the attribute.
-        * @property value
-        * @type String
-        */
-    value: null,
-    
-       /**
-     * The owner of the attribute.
-        * @property owner
-        * @type YAHOO.util.AttributeProvider
-        */
-    owner: null,
-    
-       /**
-     * Whether or not the attribute is read only.
-        * @property readOnly
-        * @type Boolean
-        */
-    readOnly: false,
-    
-       /**
-     * Whether or not the attribute can only be written once.
-        * @property writeOnce
-        * @type Boolean
-        */
-    writeOnce: false,
-
-       /**
-     * The attribute's initial configuration.
-     * @private
-        * @property _initialConfig
-        * @type Object
-        */
-    _initialConfig: null,
-    
-       /**
-     * Whether or not the attribute's value has been set.
-     * @private
-        * @property _written
-        * @type Boolean
-        */
-    _written: false,
-    
-       /**
-     * The method to use when setting the attribute's value.
-     * The method recieves the new value as the only argument.
-        * @property method
-        * @type Function
-        */
-    method: null,
-    
-       /**
-     * The validator to use when setting the attribute's value.
-        * @property validator
-        * @type Function
-     * @return Boolean
-        */
-    validator: null,
-    
-    /**
-     * Retrieves the current value of the attribute.
-     * @method getValue
-     * @return {any} The current value of the attribute.
-     */
-    getValue: function() {
-        return this.value;
-    },
-    
-    /**
-     * Sets the value of the attribute and fires beforeChange and change events.
-     * @method setValue
-     * @param {Any} value The value to apply to the attribute.
-     * @param {Boolean} silent If true the change events will not be fired.
-     * @return {Boolean} Whether or not the value was set.
-     */
-    setValue: function(value, silent) {
-        var beforeRetVal;
-        var owner = this.owner;
-        var name = this.name;
-        
-        var event = {
-            type: name, 
-            prevValue: this.getValue(),
-            newValue: value
-        };
-        
-        if (this.readOnly || ( this.writeOnce && this._written) ) {
-            return false; // write not allowed
-        }
-        
-        if (this.validator && !this.validator.call(owner, value) ) {
-            return false; // invalid value
-        }
-
-        if (!silent) {
-            beforeRetVal = owner.fireBeforeChangeEvent(event);
-            if (beforeRetVal === false) {
-                return false;
-            }
-        }
-
-        if (this.method) {
-            this.method.call(owner, value);
-        }
-        
-        this.value = value;
-        this._written = true;
-        
-        event.type = name;
-        
-        if (!silent) {
-            this.owner.fireChangeEvent(event);
-        }
-        
-        return true;
-    },
-    
-    /**
-     * Allows for configuring the Attribute's properties.
-     * @method configure
-     * @param {Object} map A key-value map of Attribute properties.
-     * @param {Boolean} init Whether or not this should become the initial config.
-     */
-    configure: function(map, init) {
-        map = map || {};
-        this._written = false; // reset writeOnce
-        this._initialConfig = this._initialConfig || {};
-        
-        for (var key in map) {
-            if ( key && YAHOO.lang.hasOwnProperty(map, key) ) {
-                this[key] = map[key];
-                if (init) {
-                    this._initialConfig[key] = map[key];
-                }
-            }
-        }
-    },
-    
-    /**
-     * Resets the value to the initial config value.
-     * @method resetValue
-     * @return {Boolean} Whether or not the value was set.
-     */
-    resetValue: function() {
-        return this.setValue(this._initialConfig.value);
-    },
-    
-    /**
-     * Resets the attribute config to the initial config state.
-     * @method resetConfig
-     */
-    resetConfig: function() {
-        this.configure(this._initialConfig);
-    },
-    
-    /**
-     * Resets the value to the current value.
-     * Useful when values may have gotten out of sync with actual properties.
-     * @method refresh
-     * @return {Boolean} Whether or not the value was set.
-     */
-    refresh: function(silent) {
-        this.setValue(this.value, silent);
-    }
-};
-
-(function() {
-    var Lang = YAHOO.util.Lang;
-
-    /*
-    Copyright (c) 2006, Yahoo! Inc. All rights reserved.
-    Code licensed under the BSD License:
-    http://developer.yahoo.net/yui/license.txt
-    */
-    
-    /**
-     * Provides and manages YAHOO.util.Attribute instances
-     * @namespace YAHOO.util
-     * @class AttributeProvider
-     * @uses YAHOO.util.EventProvider
-     */
-    YAHOO.util.AttributeProvider = function() {};
-
-    YAHOO.util.AttributeProvider.prototype = {
-        
-        /**
-         * A key-value map of Attribute configurations
-         * @property _configs
-         * @protected (may be used by subclasses and augmentors)
-         * @private
-         * @type {Object}
-         */
-        _configs: null,
-        /**
-         * Returns the current value of the attribute.
-         * @method get
-         * @param {String} key The attribute whose value will be returned.
-         */
-        get: function(key){
-            this._configs = this._configs || {};
-            var config = this._configs[key];
-            
-            if (!config) {
-                return undefined;
-            }
-            
-            return config.value;
-        },
-        
-        /**
-         * Sets the value of a config.
-         * @method set
-         * @param {String} key The name of the attribute
-         * @param {Any} value The value to apply to the attribute
-         * @param {Boolean} silent Whether or not to suppress change events
-         * @return {Boolean} Whether or not the value was set.
-         */
-        set: function(key, value, silent){
-            this._configs = this._configs || {};
-            var config = this._configs[key];
-            
-            if (!config) {
-                return false;
-            }
-            
-            return config.setValue(value, silent);
-        },
-    
-        /**
-         * Returns an array of attribute names.
-         * @method getAttributeKeys
-         * @return {Array} An array of attribute names.
-         */
-        getAttributeKeys: function(){
-            this._configs = this._configs;
-            var keys = [];
-            var config;
-            for (var key in this._configs) {
-                config = this._configs[key];
-                if ( Lang.hasOwnProperty(this._configs, key) && 
-                        !Lang.isUndefined(config) ) {
-                    keys[keys.length] = key;
-                }
-            }
-            
-            return keys;
-        },
-        
-        /**
-         * Sets multiple attribute values.
-         * @method setAttributes
-         * @param {Object} map  A key-value map of attributes
-         * @param {Boolean} silent Whether or not to suppress change events
-         */
-        setAttributes: function(map, silent){
-            for (var key in map) {
-                if ( Lang.hasOwnProperty(map, key) ) {
-                    this.set(key, map[key], silent);
-                }
-            }
-        },
-    
-        /**
-         * Resets the specified attribute's value to its initial value.
-         * @method resetValue
-         * @param {String} key The name of the attribute
-         * @param {Boolean} silent Whether or not to suppress change events
-         * @return {Boolean} Whether or not the value was set
-         */
-        resetValue: function(key, silent){
-            this._configs = this._configs || {};
-            if (this._configs[key]) {
-                this.set(key, this._configs[key]._initialConfig.value, silent);
-                return true;
-            }
-            return false;
-        },
-    
-        /**
-         * Sets the attribute's value to its current value.
-         * @method refresh
-         * @param {String | Array} key The attribute(s) to refresh
-         * @param {Boolean} silent Whether or not to suppress change events
-         */
-        refresh: function(key, silent){
-            this._configs = this._configs;
-            
-            key = ( ( Lang.isString(key) ) ? [key] : key ) || 
-                    this.getAttributeKeys();
-            
-            for (var i = 0, len = key.length; i < len; ++i) { 
-                if ( // only set if there is a value and not null
-                    this._configs[key[i]] && 
-                    ! Lang.isUndefined(this._configs[key[i]].value) &&
-                    ! Lang.isNull(this._configs[key[i]].value) ) {
-                    this._configs[key[i]].refresh(silent);
-                }
-            }
-        },
-    
-        /**
-         * Adds an Attribute to the AttributeProvider instance. 
-         * @method register
-         * @param {String} key The attribute's name
-         * @param {Object} map A key-value map containing the
-         * attribute's properties.
-         * @deprecated Use setAttributeConfig
-         */
-        register: function(key, map) {
-            this.setAttributeConfig(key, map);
-        },
-        
-        
-        /**
-         * Returns the attribute's properties.
-         * @method getAttributeConfig
-         * @param {String} key The attribute's name
-         * @private
-         * @return {object} A key-value map containing all of the
-         * attribute's properties.
-         */
-        getAttributeConfig: function(key) {
-            this._configs = this._configs || {};
-            var config = this._configs[key] || {};
-            var map = {}; // returning a copy to prevent overrides
-            
-            for (key in config) {
-                if ( Lang.hasOwnProperty(config, key) ) {
-                    map[key] = config[key];
-                }
-            }
-    
-            return map;
-        },
-        
-        /**
-         * Sets or updates an Attribute instance's properties. 
-         * @method setAttributeConfig
-         * @param {String} key The attribute's name.
-         * @param {Object} map A key-value map of attribute properties
-         * @param {Boolean} init Whether or not this should become the intial config.
-         */
-        setAttributeConfig: function(key, map, init) {
-            this._configs = this._configs || {};
-            map = map || {};
-            if (!this._configs[key]) {
-                map.name = key;
-                this._configs[key] = this.createAttribute(map);
-            } else {
-                this._configs[key].configure(map, init);
-            }
-        },
-        
-        /**
-         * Sets or updates an Attribute instance's properties. 
-         * @method configureAttribute
-         * @param {String} key The attribute's name.
-         * @param {Object} map A key-value map of attribute properties
-         * @param {Boolean} init Whether or not this should become the intial config.
-         * @deprecated Use setAttributeConfig
-         */
-        configureAttribute: function(key, map, init) {
-            this.setAttributeConfig(key, map, init);
-        },
-        
-        /**
-         * Resets an attribute to its intial configuration. 
-         * @method resetAttributeConfig
-         * @param {String} key The attribute's name.
-         * @private
-         */
-        resetAttributeConfig: function(key){
-            this._configs = this._configs || {};
-            this._configs[key].resetConfig();
-        },
-        
-        // wrapper for EventProvider.subscribe
-        // to create events on the fly
-        subscribe: function(type, callback) {
-            this._events = this._events || {};
-
-            if ( !(type in this._events) ) {
-                this._events[type] = this.createEvent(type);
-            }
-
-            YAHOO.util.EventProvider.prototype.subscribe.apply(this, arguments);
-        },
-
-        on: function() {
-            this.subscribe.apply(this, arguments);
-        },
-
-        addListener: function() {
-            this.subscribe.apply(this, arguments);
-        },
-
-        /**
-         * Fires the attribute's beforeChange event. 
-         * @method fireBeforeChangeEvent
-         * @param {String} key The attribute's name.
-         * @param {Obj} e The event object to pass to handlers.
-         */
-        fireBeforeChangeEvent: function(e) {
-            var type = 'before';
-            type += e.type.charAt(0).toUpperCase() + e.type.substr(1) + 'Change';
-            e.type = type;
-            return this.fireEvent(e.type, e);
-        },
-        
-        /**
-         * Fires the attribute's change event. 
-         * @method fireChangeEvent
-         * @param {String} key The attribute's name.
-         * @param {Obj} e The event object to pass to the handlers.
-         */
-        fireChangeEvent: function(e) {
-            e.type += 'Change';
-            return this.fireEvent(e.type, e);
-        },
-
-        createAttribute: function(map) {
-            return new YAHOO.util.Attribute(map, this);
-        }
-    };
-    
-    YAHOO.augment(YAHOO.util.AttributeProvider, YAHOO.util.EventProvider);
-})();
-
-(function() {
-// internal shorthand
-var Dom = YAHOO.util.Dom,
-    AttributeProvider = YAHOO.util.AttributeProvider;
-
-/**
- * Element provides an wrapper object to simplify adding
- * event listeners, using dom methods, and managing attributes. 
- * @module element
- * @namespace YAHOO.util
- * @requires yahoo, dom, event
- * @beta
- */
-
-/**
- * Element provides an wrapper object to simplify adding
- * event listeners, using dom methods, and managing attributes. 
- * @class Element
- * @uses YAHOO.util.AttributeProvider
- * @constructor
- * @param el {HTMLElement | String} The html element that 
- * represents the Element.
- * @param {Object} map A key-value map of initial config names and values
- */
-YAHOO.util.Element = function(el, map) {
-    if (arguments.length) {
-        this.init(el, map);
-    }
-};
-
-YAHOO.util.Element.prototype = {
-    /**
-     * Dom events supported by the Element instance.
-     * @property DOM_EVENTS
-     * @type Object
-     */
-    DOM_EVENTS: null,
-
-    /**
-     * Wrapper for HTMLElement method.
-     * @method appendChild
-     * @param {YAHOO.util.Element || HTMLElement} child The element to append. 
-     */
-    appendChild: function(child) {
-        child = child.get ? child.get('element') : child;
-        this.get('element').appendChild(child);
-    },
-    
-    /**
-     * Wrapper for HTMLElement method.
-     * @method getElementsByTagName
-     * @param {String} tag The tagName to collect
-     */
-    getElementsByTagName: function(tag) {
-        return this.get('element').getElementsByTagName(tag);
-    },
-    
-    /**
-     * Wrapper for HTMLElement method.
-     * @method hasChildNodes
-     * @return {Boolean} Whether or not the element has childNodes
-     */
-    hasChildNodes: function() {
-        return this.get('element').hasChildNodes();
-    },
-    
-    /**
-     * Wrapper for HTMLElement method.
-     * @method insertBefore
-     * @param {HTMLElement} element The HTMLElement to insert
-     * @param {HTMLElement} before The HTMLElement to insert
-     * the element before.
-     */
-    insertBefore: function(element, before) {
-        element = element.get ? element.get('element') : element;
-        before = (before && before.get) ? before.get('element') : before;
-        
-        this.get('element').insertBefore(element, before);
-    },
-    
-    /**
-     * Wrapper for HTMLElement method.
-     * @method removeChild
-     * @param {HTMLElement} child The HTMLElement to remove
-     */
-    removeChild: function(child) {
-        child = child.get ? child.get('element') : child;
-        this.get('element').removeChild(child);
-        return true;
-    },
-    
-    /**
-     * Wrapper for HTMLElement method.
-     * @method replaceChild
-     * @param {HTMLElement} newNode The HTMLElement to insert
-     * @param {HTMLElement} oldNode The HTMLElement to replace
-     */
-    replaceChild: function(newNode, oldNode) {
-        newNode = newNode.get ? newNode.get('element') : newNode;
-        oldNode = oldNode.get ? oldNode.get('element') : oldNode;
-        return this.get('element').replaceChild(newNode, oldNode);
-    },
-
-    
-    /**
-     * Registers Element specific attributes.
-     * @method initAttributes
-     * @param {Object} map A key-value map of initial attribute configs
-     */
-    initAttributes: function(map) {
-    },
-
-    /**
-     * Adds a listener for the given event.  These may be DOM or 
-     * customEvent listeners.  Any event that is fired via fireEvent
-     * can be listened for.  All handlers receive an event object. 
-     * @method addListener
-     * @param {String} type The name of the event to listen for
-     * @param {Function} fn The handler to call when the event fires
-     * @param {Any} obj A variable to pass to the handler
-     * @param {Object} scope The object to use for the scope of the handler 
-     */
-    addListener: function(type, fn, obj, scope) {
-        var el = this.get('element');
-        scope = scope || this;
-        
-        el = this.get('id') || el;
-        var self = this; 
-        if (!this._events[type]) { // create on the fly
-            if ( this.DOM_EVENTS[type] ) {
-                YAHOO.util.Event.addListener(el, type, function(e) {
-                    if (e.srcElement && !e.target) { // supplement IE with target
-                        e.target = e.srcElement;
-                    }
-                    self.fireEvent(type, e);
-                }, obj, scope);
-            }
-            
-            this.createEvent(type, this);
-        }
-        
-        YAHOO.util.EventProvider.prototype.subscribe.apply(this, arguments); // notify via customEvent
-    },
-    
-    
-    /**
-     * Alias for addListener
-     * @method on
-     * @param {String} type The name of the event to listen for
-     * @param {Function} fn The function call when the event fires
-     * @param {Any} obj A variable to pass to the handler
-     * @param {Object} scope The object to use for the scope of the handler 
-     */
-    on: function() { this.addListener.apply(this, arguments); },
-    
-    /**
-     * Alias for addListener
-     * @method subscribe
-     * @param {String} type The name of the event to listen for
-     * @param {Function} fn The function call when the event fires
-     * @param {Any} obj A variable to pass to the handler
-     * @param {Object} scope The object to use for the scope of the handler 
-     */
-    subscribe: function() { this.addListener.apply(this, arguments); },
-    
-    /**
-     * Remove an event listener
-     * @method removeListener
-     * @param {String} type The name of the event to listen for
-     * @param {Function} fn The function call when the event fires
-     */
-    removeListener: function(type, fn) {
-        this.unsubscribe.apply(this, arguments);
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method addClass
-     * @param {String} className The className to add
-     */
-    addClass: function(className) {
-        Dom.addClass(this.get('element'), className);
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method getElementsByClassName
-     * @param {String} className The className to collect
-     * @param {String} tag (optional) The tag to use in
-     * conjunction with class name
-     * @return {Array} Array of HTMLElements
-     */
-    getElementsByClassName: function(className, tag) {
-        return Dom.getElementsByClassName(className, tag,
-                this.get('element') );
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method hasClass
-     * @param {String} className The className to add
-     * @return {Boolean} Whether or not the element has the class name
-     */
-    hasClass: function(className) {
-        return Dom.hasClass(this.get('element'), className); 
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method removeClass
-     * @param {String} className The className to remove
-     */
-    removeClass: function(className) {
-        return Dom.removeClass(this.get('element'), className);
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method replaceClass
-     * @param {String} oldClassName The className to replace
-     * @param {String} newClassName The className to add
-     */
-    replaceClass: function(oldClassName, newClassName) {
-        return Dom.replaceClass(this.get('element'), 
-                oldClassName, newClassName);
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method setStyle
-     * @param {String} property The style property to set
-     * @param {String} value The value to apply to the style property
-     */
-    setStyle: function(property, value) {
-        var el = this.get('element');
-        if (!el) {
-            return this._queue[this._queue.length] = ['setStyle', arguments];
-        }
-
-        return Dom.setStyle(el,  property, value); // TODO: always queuing?
-    },
-    
-    /**
-     * Wrapper for Dom method.
-     * @method getStyle
-     * @param {String} property The style property to retrieve
-     * @return {String} The current value of the property
-     */
-    getStyle: function(property) {
-        return Dom.getStyle(this.get('element'),  property);
-    },
-    
-    /**
-     * Apply any queued set calls.
-     * @method fireQueue
-     */
-    fireQueue: function() {
-        var queue = this._queue;
-        for (var i = 0, len = queue.length; i < len; ++i) {
-            this[queue[i][0]].apply(this, queue[i][1]);
-        }
-    },
-    
-    /**
-     * Appends the HTMLElement into either the supplied parentNode.
-     * @method appendTo
-     * @param {HTMLElement | Element} parentNode The node to append to
-     * @param {HTMLElement | Element} before An optional node to insert before
-     */
-    appendTo: function(parent, before) {
-        parent = (parent.get) ?  parent.get('element') : Dom.get(parent);
-        
-        this.fireEvent('beforeAppendTo', {
-            type: 'beforeAppendTo',
-            target: parent
-        });
-        
-        
-        before = (before && before.get) ? 
-                before.get('element') : Dom.get(before);
-        var element = this.get('element');
-        
-        if (!element) {
-            return false;
-        }
-        
-        if (!parent) {
-            return false;
-        }
-        
-        if (element.parent != parent) {
-            if (before) {
-                parent.insertBefore(element, before);
-            } else {
-                parent.appendChild(element);
-            }
-        }
-        
-        
-        this.fireEvent('appendTo', {
-            type: 'appendTo',
-            target: parent
-        });
-    },
-    
-    get: function(key) {
-        var configs = this._configs || {};
-        var el = configs.element; // avoid loop due to 'element'
-        if (el && !configs[key] && !YAHOO.lang.isUndefined(el.value[key]) ) {
-            return el.value[key];
-        }
-
-        return AttributeProvider.prototype.get.call(this, key);
-    },
-
-    setAttributes: function(map, silent){
-        var el = this.get('element');
-        for (var key in map) {
-            // need to configure if setting unconfigured HTMLElement attribute 
-            if ( !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) {
-                this.setAttributeConfig(key);
-            }
-        }
-
-        // set based on configOrder
-        for (var i = 0, len = this._configOrder.length; i < len; ++i) {
-            if (map[this._configOrder[i]] !== undefined) {
-                this.set(this._configOrder[i], map[this._configOrder[i]], silent);
-            }
-        }
-    },
-
-    set: function(key, value, silent) {
-        var el = this.get('element');
-        if (!el) {
-            this._queue[this._queue.length] = ['set', arguments];
-            if (this._configs[key]) {
-                this._configs[key].value = value; // so "get" works while queueing
-            
-            }
-            return;
-        }
-        
-        // set it on the element if not configured and is an HTML attribute
-        if ( !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) {
-            _registerHTMLAttr.call(this, key);
-        }
-
-        return AttributeProvider.prototype.set.apply(this, arguments);
-    },
-    
-    setAttributeConfig: function(key, map, init) {
-        var el = this.get('element');
-
-        if (el && !this._configs[key] && !YAHOO.lang.isUndefined(el[key]) ) {
-            _registerHTMLAttr.call(this, key, map);
-        } else {
-            AttributeProvider.prototype.setAttributeConfig.apply(this, arguments);
-        }
-        this._configOrder.push(key);
-    },
-    
-    getAttributeKeys: function() {
-        var el = this.get('element');
-        var keys = AttributeProvider.prototype.getAttributeKeys.call(this);
-        
-        //add any unconfigured element keys
-        for (var key in el) {
-            if (!this._configs[key]) {
-                keys[key] = keys[key] || el[key];
-            }
-        }
-        
-        return keys;
-    },
-
-    createEvent: function(type, scope) {
-        this._events[type] = true;
-        AttributeProvider.prototype.createEvent.apply(this, arguments);
-    },
-    
-    init: function(el, attr) {
-        _initElement.apply(this, arguments); 
-    }
-};
-
-var _initElement = function(el, attr) {
-    this._queue = this._queue || [];
-    this._events = this._events || {};
-    this._configs = this._configs || {};
-    this._configOrder = []; 
-    attr = attr || {};
-    attr.element = attr.element || el || null;
-
-    this.DOM_EVENTS = {
-        'click': true,
-        'dblclick': true,
-        'keydown': true,
-        'keypress': true,
-        'keyup': true,
-        'mousedown': true,
-        'mousemove': true,
-        'mouseout': true, 
-        'mouseover': true, 
-        'mouseup': true,
-        'focus': true,
-        'blur': true,
-        'submit': true
-    };
-
-    var isReady = false;  // to determine when to init HTMLElement and content
-
-    if (YAHOO.lang.isString(el) ) { // defer until available/ready
-        _registerHTMLAttr.call(this, 'id', { value: attr.element });
-    }
-
-    if (Dom.get(el)) {
-        isReady = true;
-        _initHTMLElement.call(this, attr);
-        _initContent.call(this, attr);
-    } 
-
-    YAHOO.util.Event.onAvailable(attr.element, function() {
-        if (!isReady) { // otherwise already done
-            _initHTMLElement.call(this, attr);
-        }
-
-        this.fireEvent('available', { type: 'available', target: attr.element });  
-    }, this, true);
-    
-    YAHOO.util.Event.onContentReady(attr.element, function() {
-        if (!isReady) { // otherwise already done
-            _initContent.call(this, attr);
-        }
-        this.fireEvent('contentReady', { type: 'contentReady', target: attr.element });  
-    }, this, true);
-};
-
-var _initHTMLElement = function(attr) {
-    /**
-     * The HTMLElement the Element instance refers to.
-     * @attribute element
-     * @type HTMLElement
-     */
-    this.setAttributeConfig('element', {
-        value: Dom.get(attr.element),
-        readOnly: true
-     });
-};
-
-var _initContent = function(attr) {
-    this.initAttributes(attr);
-    this.setAttributes(attr, true);
-    this.fireQueue();
-
-};
-
-/**
- * Sets the value of the property and fires beforeChange and change events.
- * @private
- * @method _registerHTMLAttr
- * @param {YAHOO.util.Element} element The Element instance to
- * register the config to.
- * @param {String} key The name of the config to register
- * @param {Object} map A key-value map of the config's params
- */
-var _registerHTMLAttr = function(key, map) {
-    var el = this.get('element');
-    map = map || {};
-    map.name = key;
-    map.method = map.method || function(value) {
-        el[key] = value;
-    };
-    map.value = map.value || el[key];
-    this._configs[key] = new YAHOO.util.Attribute(map, this);
-};
-
-/**
- * Fires when the Element's HTMLElement can be retrieved by Id.
- * <p>See: <a href="#addListener">Element.addListener</a></p>
- * <p><strong>Event fields:</strong><br>
- * <code>&lt;String&gt; type</code> available<br>
- * <code>&lt;HTMLElement&gt;
- * target</code> the HTMLElement bound to this Element instance<br>
- * <p><strong>Usage:</strong><br>
- * <code>var handler = function(e) {var target = e.target};<br>
- * myTabs.addListener('available', handler);</code></p>
- * @event available
- */
-/**
- * Fires when the Element's HTMLElement subtree is rendered.
- * <p>See: <a href="#addListener">Element.addListener</a></p>
- * <p><strong>Event fields:</strong><br>
- * <code>&lt;String&gt; type</code> contentReady<br>
- * <code>&lt;HTMLElement&gt;
- * target</code> the HTMLElement bound to this Element instance<br>
- * <p><strong>Usage:</strong><br>
- * <code>var handler = function(e) {var target = e.target};<br>
- * myTabs.addListener('contentReady', handler);</code></p>
- * @event contentReady
- */
-
-/**
- * Fires before the Element is appended to another Element.
- * <p>See: <a href="#addListener">Element.addListener</a></p>
- * <p><strong>Event fields:</strong><br>
- * <code>&lt;String&gt; type</code> beforeAppendTo<br>
- * <code>&lt;HTMLElement/Element&gt;
- * target</code> the HTMLElement/Element being appended to 
- * <p><strong>Usage:</strong><br>
- * <code>var handler = function(e) {var target = e.target};<br>
- * myTabs.addListener('beforeAppendTo', handler);</code></p>
- * @event beforeAppendTo
- */
-
-/**
- * Fires after the Element is appended to another Element.
- * <p>See: <a href="#addListener">Element.addListener</a></p>
- * <p><strong>Event fields:</strong><br>
- * <code>&lt;String&gt; type</code> appendTo<br>
- * <code>&lt;HTMLElement/Element&gt;
- * target</code> the HTMLElement/Element being appended to 
- * <p><strong>Usage:</strong><br>
- * <code>var handler = function(e) {var target = e.target};<br>
- * myTabs.addListener('appendTo', handler);</code></p>
- * @event appendTo
- */
-
-YAHOO.augment(YAHOO.util.Element, AttributeProvider);
-})();
-
-YAHOO.register("element", YAHOO.util.Element, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/imagecropper/assets/imagecropper-core.css b/lib/yui/imagecropper/assets/imagecropper-core.css
deleted file mode 100644 (file)
index f160052..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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;
-}
-
-.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/lib/yui/layout/README b/lib/yui/layout/README
deleted file mode 100644 (file)
index 84e27d4..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-**** version 2.5.0 ***
-
-Initial Release
diff --git a/lib/yui/layout/layout-beta-debug.js b/lib/yui/layout/layout-beta-debug.js
deleted file mode 100644 (file)
index 34a1dbd..0000000
+++ /dev/null
@@ -1,2009 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * @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
- * @beta
- */
-(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 _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) {
-                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._top) ? this._top.get('height') : 0),
-                h2 = ((this._bottom) ? this._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._top) ? w : 0),
-                t: 0
-            };
-            this._sizes.bottom = {
-                h: h2, w: ((this._bottom) ? w : 0)
-            };
-            
-            var newH = (h - (h1 + h2));
-
-            this._sizes.left = {
-                h: newH, w: ((this._left) ? this._left.get('width') : 0)
-            };
-            this._sizes.right = {
-                h: newH, w: ((this._right) ? this._right.get('width') : 0),
-                l: ((this._right) ? (w - this._right.get('width')) : 0),
-                t: this._sizes.top.h
-            };
-            
-            if (this._right && set) {
-                if (this._top) {
-                    this._right.set('top', this._sizes.right.t);
-                }
-                if (!this._right._collapsing) { 
-                    this._right.set('left', this._sizes.right.l);
-                }
-                this._right.set('height', this._sizes.right.h, true);
-            }
-            if (this._left) {
-                if (this._top) {
-                    this._sizes.left.t = this._sizes.top.h;
-                    this._sizes.left.l = 0;
-                    if (set) {
-                        this._left.set('top', this._sizes.top.h);
-                        this._left.set('left', 0);
-                    }
-                }
-                if (set) {
-                    this._left.set('height', this._sizes.left.h, true);
-                }
-            }
-            if (this._bottom) {
-                this._sizes.bottom.t = this._sizes.top.h + this._sizes.left.h;
-                if (set) {
-                    this._bottom.set('top', this._sizes.bottom.t);
-                    this._bottom.set('width', this._sizes.bottom.w, true);
-                }
-            }
-            if (this._top) {
-                if (set) {
-                    this._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._center.set('height', h, true);
-                this._center.set('width', w, true);
-                this._center.set('top', this._sizes.top.h);
-                this._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
-        * @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['_' + pos]) {
-                    return this['_' + pos];
-                }
-            }
-            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) {
-            this['_' + unit.get('position')] = null;
-            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['_' + 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, this, true);
-            unit.on('widthChange', this.resize, this, true);
-            unit.on('gutterChange', this.resize, this, true);
-            this['_' + 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} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
-        * @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) {
-            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 });
-            }
-            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('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('doc')[0];
-            if (!this._doc) {
-                this._doc = document.createElement('div');
-                this.get('element').appendChild(this._doc);
-            }
-            this._createUnits();
-            this._setBodySize();
-            Event.on(window, 'resize', this.resize, this, true);
-            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
-        * @property _left
-        * @description Reference to the left LayoutUnit Object
-        * @type {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} A LayoutUnit instance
-        */
-        _left: null,
-        /**
-        * @private
-        * @property _right
-        * @description Reference to the right LayoutUnit Object
-        * @type {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} A LayoutUnit instance
-        */
-        _right: null,
-        /**
-        * @private
-        * @property _top
-        * @description Reference to the top LayoutUnit Object
-        * @type {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} A LayoutUnit instance
-        */
-        _top: null,
-        /**
-        * @private
-        * @property _bottom
-        * @description Reference to the bottom LayoutUnit Object
-        * @type {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} A LayoutUnit instance
-        */
-        _bottom: null,
-        /**
-        * @private
-        * @property _center
-        * @description Reference to the center LayoutUnit Object
-        * @type {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} A LayoutUnit instance
-        */
-        _center: 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 = {};
-
-            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) {
-                    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) {
-                    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 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 Firef 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
- * @beta
- */
-(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.',
-        /**
-        * @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,
-        /**
-        * @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');
-                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');
-                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 && !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
-        * @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.get('collapse')) {
-                return this;
-            }
-            if (!this._collapsed) {
-                return this;
-            }
-
-            this._collapsing = true;
-            this.setStyle('zIndex', this.get('parent')._zIndex + 1);
-
-            if (this._anim) {
-                this.setStyle('display', 'none');
-                //Animation Fails Here
-                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);
-                    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.setStyle('zIndex', this.get('parent')._zIndex);
-                this.setStyle('display', 'block');
-                this.set('width', this._lastWidth);
-                this.set('height', this._lastHeight);
-                this._collapsed = false;
-                this.resize();
-                this.set('scroll', this._lastScroll);
-                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.get('collapse')) {
-                return this;
-            }
-            if (this._collapsed) {
-                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.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');
-        },
-        /**
-        * @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.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,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxWidth
-            * @description The maxWidth parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('maxWidth', {
-                value: attr.maxWidth || false,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute minHeight
-            * @description The minHeight parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('minHeight', {
-                value: attr.minHeight || false,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxHeight
-            * @description The maxHeight parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('maxHeight', {
-                value: attr.maxHeight || false,
-                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) {
-                        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) {
-                        this.setStyle('width', w + 'px');
-                    }
-                }
-            });
-            /**
-            * @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) {
-                        this._createHeader();
-                    }
-                    var c = Dom.getElementsByClassName('close', 'div', this.header)[0];
-                    if (close) {
-                        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) {
-                        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) {
-                        this._createHeader();
-                    }
-                    var c = Dom.getElementsByClassName('collapse', 'div', this.header)[0];
-                    if (collapse) {
-                        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) {
-                        Event.purgeElement(c);
-                        c.parentNode.removeChild(c);
-                    }
-                }
-            });
-            /**
-            * @attribute scroll
-            * @description Adds a class to the unit to allow for overflow: auto, default is overflow: hidden
-            */
-
-            this.setAttributeConfig('scroll', {
-                value: attr.scroll || false,
-                method: function(scroll) {
-                    if (scroll) {
-                        this.addClass('yui-layout-scroll');
-                    } else {
-                        this.removeClass('yui-layout-scroll');
-                    }
-                }
-            });
-            /**
-            * @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 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
-                            });
-                            
-                            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');
-                                }
-                                this.fireEvent('startResize');
-                            }, this, true);
-                            this._resize.on('resize', function(ev) {
-                                this.set('height', ev.height);
-                                this.set('width', ev.width);
-                                this.set('scroll', this._lastScroll);
-                            }, this, true);
-                        }
-                    } else {
-                        if (this._resize) {
-                            this._resize.destroy();
-                        }
-                    }
-                }
-            });
-        },
-        /**
-        * @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
-        * @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() {
-            if (this._resize) {
-                this._resize.destroy();
-            }
-            var par = this.get('parent');
-
-            this.setStyle('display', 'none');
-            par.removeUnit(this);
-            if (this._clip) {
-                this._clip.parentNode.removeChild(this._clip);
-                this._clip = null;
-            }
-
-            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 beforeResize
-    * @description Firef 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 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
-    */
-    });
-
-    YAHOO.widget.LayoutUnit = LayoutUnit;
-})();
-YAHOO.register("layout", YAHOO.widget.Layout, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/layout/layout-beta-min.js b/lib/yui/layout/layout-beta-min.js
deleted file mode 100644 (file)
index 0749e9e..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-(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;}(),_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){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._top)?this._top.get("height"):0),G=((this._bottom)?this._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._top)?E:0),t:0};this._sizes.bottom={h:G,w:((this._bottom)?E:0)};var F=(I-(H+G));this._sizes.left={h:F,w:((this._left)?this._left.get("width"):0)};this._sizes.right={h:F,w:((this._right)?this._right.get("width"):0),l:((this._right)?(E-this._right.get("width")):0),t:this._sizes.top.h};if(this._right&&J){if(this._top){this._right.set("top",this._sizes.right.t);}if(!this._right._collapsing){this._right.set("left",this._sizes.right.l);}this._right.set("height",this._sizes.right.h,true);}if(this._left){if(this._top){this._sizes.left.t=this._sizes.top.h;this._sizes.left.l=0;if(J){this._left.set("top",this._sizes.top.h);this._left.set("left",0);}}if(J){this._left.set("height",this._sizes.left.h,true);}}if(this._bottom){this._sizes.bottom.t=this._sizes.top.h+this._sizes.left.h;if(J){this._bottom.set("top",this._sizes.bottom.t);this._bottom.set("width",this._sizes.bottom.w,true);}}if(this._top){if(J){this._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._center.set("height",F,true);this._center.set("width",E,true);this._center.set("top",this._sizes.top.h);this._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["_"+E]){return this["_"+E];}}return false;},removeUnit:function(E){this["_"+E.get("position")]=null;this.resize();},addUnit:function(G){if(!G.position){return false;}if(this["_"+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,this,true);K.on("widthChange",this.resize,this,true);K.on("gutterChange",this.resize,this,true);this["_"+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(F){F=((F===false)?false:true);if(F){var E=this.fireEvent("beforeResize");if(E===false){F=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(F);if(F){this.fireEvent("resize",{target:this,sizes:this._sizes});}return this;},_setupBodyElements:function(){this._doc=C.get("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("doc")[0];if(!this._doc){this._doc=document.createElement("div");this.get("element").appendChild(this._doc);}this._createUnits();this._setBodySize();A.on(window,"resize",this.resize,this,true);C.addClass(this._doc,"yui-layout-doc");},_isBody:null,_doc:null,_left:null,_right:null,_top:null,_bottom:null,_center: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={};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){this.setStyle("height",F+"px");}});this.setAttributeConfig("width",{value:E.width||false,validator:YAHOO.lang.isNumber,method:function(F){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);}}});},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.",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,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");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");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&&!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.get("collapse")){return this;
-}if(!this._collapsed){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);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.setStyle("zIndex",this.get("parent")._zIndex);this.setStyle("display","block");this.set("width",this._lastWidth);this.set("height",this._lastHeight);this._collapsed=false;this.resize();this.set("scroll",this._lastScroll);this.fireEvent("expand");}return this;},collapse:function(){if(!this.get("collapse")){return this;}if(this._collapsed){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.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 J=this.get("position");switch(J){case"top":case"bottom":this.set("height",(this.get("collapseSize")+(this._gutter.top+this._gutter.bottom)));F={top:{to:(this.get("top")-H)}};if(J=="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(J=="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");},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.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,validator:YAHOO.lang.isNumber});this.setAttributeConfig("maxWidth",{value:F.maxWidth||false,validator:YAHOO.lang.isNumber});this.setAttributeConfig("minHeight",{value:F.minHeight||false,validator:YAHOO.lang.isNumber});this.setAttributeConfig("maxHeight",{value:F.maxHeight||false,validator:YAHOO.lang.isNumber});this.setAttributeConfig("height",{value:F.height,validator:E.isNumber,method:function(G){if(!this._collapsing){this.setStyle("height",G+"px");}}});this.setAttributeConfig("width",{value:F.width,validator:E.isNumber,method:function(G){if(!this._collapsing){this.setStyle("width",G+"px");}}});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){this._createHeader();}var H=D.getElementsByClassName("close","div",this.header)[0];if(G){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){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){this._createHeader();}var H=D.getElementsByClassName("collapse","div",this.header)[0];if(G){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){A.purgeElement(H);H.parentNode.removeChild(H);}}}});this.setAttributeConfig("scroll",{value:F.scroll||false,method:function(G){if(G){this.addClass("yui-layout-scroll");}else{this.removeClass("yui-layout-scroll");}}});this.setAttributeConfig("hover",{writeOnce:true,value:F.hover||false,validator:YAHOO.lang.isBoolean});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});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");}this.fireEvent("startResize");},this,true);this._resize.on("resize",function(J){this.set("height",J.height);this.set("width",J.width);this.set("scroll",this._lastScroll);},this,true);}}else{if(this._resize){this._resize.destroy();}}}});},_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(){if(this._resize){this._resize.destroy();}var G=this.get("parent");this.setStyle("display","none");G.removeUnit(this);if(this._clip){this._clip.parentNode.removeChild(this._clip);
-this._clip=null;}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.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/layout/layout-beta.js b/lib/yui/layout/layout-beta.js
deleted file mode 100644 (file)
index 126f1e3..0000000
+++ /dev/null
@@ -1,1994 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * @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
- * @beta
- */
-(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 _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) {
-                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._top) ? this._top.get('height') : 0),
-                h2 = ((this._bottom) ? this._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._top) ? w : 0),
-                t: 0
-            };
-            this._sizes.bottom = {
-                h: h2, w: ((this._bottom) ? w : 0)
-            };
-            
-            var newH = (h - (h1 + h2));
-
-            this._sizes.left = {
-                h: newH, w: ((this._left) ? this._left.get('width') : 0)
-            };
-            this._sizes.right = {
-                h: newH, w: ((this._right) ? this._right.get('width') : 0),
-                l: ((this._right) ? (w - this._right.get('width')) : 0),
-                t: this._sizes.top.h
-            };
-            
-            if (this._right && set) {
-                if (this._top) {
-                    this._right.set('top', this._sizes.right.t);
-                }
-                if (!this._right._collapsing) { 
-                    this._right.set('left', this._sizes.right.l);
-                }
-                this._right.set('height', this._sizes.right.h, true);
-            }
-            if (this._left) {
-                if (this._top) {
-                    this._sizes.left.t = this._sizes.top.h;
-                    this._sizes.left.l = 0;
-                    if (set) {
-                        this._left.set('top', this._sizes.top.h);
-                        this._left.set('left', 0);
-                    }
-                }
-                if (set) {
-                    this._left.set('height', this._sizes.left.h, true);
-                }
-            }
-            if (this._bottom) {
-                this._sizes.bottom.t = this._sizes.top.h + this._sizes.left.h;
-                if (set) {
-                    this._bottom.set('top', this._sizes.bottom.t);
-                    this._bottom.set('width', this._sizes.bottom.w, true);
-                }
-            }
-            if (this._top) {
-                if (set) {
-                    this._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._center.set('height', h, true);
-                this._center.set('width', w, true);
-                this._center.set('top', this._sizes.top.h);
-                this._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
-        * @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['_' + pos]) {
-                    return this['_' + pos];
-                }
-            }
-            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) {
-            this['_' + unit.get('position')] = null;
-            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['_' + 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, this, true);
-            unit.on('widthChange', this.resize, this, true);
-            unit.on('gutterChange', this.resize, this, true);
-            this['_' + 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} set If set to false, it will NOT set the size, just perform the calculations (used for collapsing units)
-        * @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) {
-            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 });
-            }
-            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('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('doc')[0];
-            if (!this._doc) {
-                this._doc = document.createElement('div');
-                this.get('element').appendChild(this._doc);
-            }
-            this._createUnits();
-            this._setBodySize();
-            Event.on(window, 'resize', this.resize, this, true);
-            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
-        * @property _left
-        * @description Reference to the left LayoutUnit Object
-        * @type {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} A LayoutUnit instance
-        */
-        _left: null,
-        /**
-        * @private
-        * @property _right
-        * @description Reference to the right LayoutUnit Object
-        * @type {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} A LayoutUnit instance
-        */
-        _right: null,
-        /**
-        * @private
-        * @property _top
-        * @description Reference to the top LayoutUnit Object
-        * @type {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} A LayoutUnit instance
-        */
-        _top: null,
-        /**
-        * @private
-        * @property _bottom
-        * @description Reference to the bottom LayoutUnit Object
-        * @type {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} A LayoutUnit instance
-        */
-        _bottom: null,
-        /**
-        * @private
-        * @property _center
-        * @description Reference to the center LayoutUnit Object
-        * @type {<a href="YAHOO.widget.LayoutUnit.html">YAHOO.widget.LayoutUnit</a>} A LayoutUnit instance
-        */
-        _center: 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 = {};
-
-            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) {
-                    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) {
-                    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 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 Firef 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
- * @beta
- */
-(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.',
-        /**
-        * @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,
-        /**
-        * @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');
-                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');
-                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 && !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
-        * @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.get('collapse')) {
-                return this;
-            }
-            if (!this._collapsed) {
-                return this;
-            }
-
-            this._collapsing = true;
-            this.setStyle('zIndex', this.get('parent')._zIndex + 1);
-
-            if (this._anim) {
-                this.setStyle('display', 'none');
-                //Animation Fails Here
-                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);
-                    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.setStyle('zIndex', this.get('parent')._zIndex);
-                this.setStyle('display', 'block');
-                this.set('width', this._lastWidth);
-                this.set('height', this._lastHeight);
-                this._collapsed = false;
-                this.resize();
-                this.set('scroll', this._lastScroll);
-                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.get('collapse')) {
-                return this;
-            }
-            if (this._collapsed) {
-                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.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');
-        },
-        /**
-        * @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.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,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxWidth
-            * @description The maxWidth parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('maxWidth', {
-                value: attr.maxWidth || false,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute minHeight
-            * @description The minHeight parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('minHeight', {
-                value: attr.minHeight || false,
-                validator: YAHOO.lang.isNumber
-            });
-
-            /**
-            * @attribute maxHeight
-            * @description The maxHeight parameter passed to the Resize Utility
-            * @type Number
-            */
-            this.setAttributeConfig('maxHeight', {
-                value: attr.maxHeight || false,
-                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) {
-                        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) {
-                        this.setStyle('width', w + 'px');
-                    }
-                }
-            });
-            /**
-            * @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) {
-                        this._createHeader();
-                    }
-                    var c = Dom.getElementsByClassName('close', 'div', this.header)[0];
-                    if (close) {
-                        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) {
-                        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) {
-                        this._createHeader();
-                    }
-                    var c = Dom.getElementsByClassName('collapse', 'div', this.header)[0];
-                    if (collapse) {
-                        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) {
-                        Event.purgeElement(c);
-                        c.parentNode.removeChild(c);
-                    }
-                }
-            });
-            /**
-            * @attribute scroll
-            * @description Adds a class to the unit to allow for overflow: auto, default is overflow: hidden
-            */
-
-            this.setAttributeConfig('scroll', {
-                value: attr.scroll || false,
-                method: function(scroll) {
-                    if (scroll) {
-                        this.addClass('yui-layout-scroll');
-                    } else {
-                        this.removeClass('yui-layout-scroll');
-                    }
-                }
-            });
-            /**
-            * @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 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
-                            });
-                            
-                            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');
-                                }
-                                this.fireEvent('startResize');
-                            }, this, true);
-                            this._resize.on('resize', function(ev) {
-                                this.set('height', ev.height);
-                                this.set('width', ev.width);
-                                this.set('scroll', this._lastScroll);
-                            }, this, true);
-                        }
-                    } else {
-                        if (this._resize) {
-                            this._resize.destroy();
-                        }
-                    }
-                }
-            });
-        },
-        /**
-        * @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
-        * @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() {
-            if (this._resize) {
-                this._resize.destroy();
-            }
-            var par = this.get('parent');
-
-            this.setStyle('display', 'none');
-            par.removeUnit(this);
-            if (this._clip) {
-                this._clip.parentNode.removeChild(this._clip);
-                this._clip = null;
-            }
-
-            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 beforeResize
-    * @description Firef 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 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
-    */
-    });
-
-    YAHOO.widget.LayoutUnit = LayoutUnit;
-})();
-YAHOO.register("layout", YAHOO.widget.Layout, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/logger/assets/skins/sam/logger-skin.css b/lib/yui/logger/assets/skins/sam/logger-skin.css
deleted file mode 100755 (executable)
index 34d174e..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/* 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/lib/yui/logger/assets/skins/sam/logger.css b/lib/yui/logger/assets/skins/sam/logger.css
deleted file mode 100755 (executable)
index f91c8c3..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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-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;}.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/lib/yui/menu/README b/lib/yui/menu/README
deleted file mode 100755 (executable)
index 32fac95..0000000
+++ /dev/null
@@ -1,1002 +0,0 @@
-*** version 2.5.0 ***
-
-Fixed the following bugs:
--------------------------
-
-+ Corrected the paths to all images in the original Menu CSS file so that checked MenuItems now
-  render correctly.
-
-+ Clicking on a disabled MenuItem instance will no longer cause the browser to navigate to 
-  the top of the current page.
-
-+ Removed the use of the "yui-skin-sam" class name from the Menu core CSS file.
-
-+ Scrolling Menus now render correctly in IE 6 and IE 7.
-
-+ Submenus are no longer hidden then re-shown when the mouse is moving from a visible submenu back
-  to its parent MenuItem instance.
-
-
-
-*** version 2.4.1 ***
-
-+ No changes
-
-
-
-*** version 2.4.0 ***
-
-
-Fixed the following bugs:
--------------------------
-
-+ The "context" property of YAHOO.widget.Menu works better in IE 6.
-
-+ Immediate submenus of a YAHOO.widget.MenuBar instance will now re-align 
-  themselves to their parent YAHOO.widget.MenuBarItem instance to remain inside 
-  the boundaries of the browser viewport when the "constraintoviewport" 
-  property is set to "true."
-
-+ A submenu will now appear in the correct position when its parent menu 
-  is scrolled.
-
-+ YAHOO.widget.MenuItem instances will no longer increase in height when their
-  submenu is made visible.
-
-+ Removed superfluous white space between YAHOO.widget.MenuItem instances in 
-  IE 6 (Strict Mode and Quirks Mode) and IE 7 (Quirks Mode).
-  
-+ Statically positioned YAHOO.widget.MenuBar instances will no longer be 
-  rendered in the wrong position when the Container CSS file is included in 
-  the page.
-
-+ Usage of the "maxheight" configuration property will no longer change the 
-  position of a YAHOO.widget.Menu instance's shadow element 
-  (<DIV class="yui-menu-shadow">).  The shadow element will alway be the last 
-  child node of a menu's root element.
-
-+ YAHOO.widget.MenuBar instances with their "position" configuration property 
-  set to "dynamic" are no longer rendered with scrollbars in Firefox for 
-  Mac OS X.
-               
-
-
-Added the following features:
------------------------------
-
-+ Added a new "minscrollheight" configuration property to YAHOO.widget.Menu
-  that defines the minimum threshold for the "maxheight" configuration property.
-
-+ Added a new "scrollincrement" configuration property to YAHOO.widget.Menu 
-  which can be used to increase or decrease the scroll speed of scolled menu.
-
-+ Hidden YAHOO.widget.Menu instances are now positioned off screen to 
-  prevent them from introducing scrollbars on the browser viewport.  The 
-  default off-screen position is -10000 for both the x and y coordinates and is
-  defined in a new constant: "YAHOO.widget.Menu.prototype.OFF_SCREEN_POSITION".
-  The method responsible for moving a menu off the screen is 
-  "YAHOO.widget.Menu.prototype.positionOffScreen" which is called in response
-  to the firing of the "hide" event.
-    
-
-Changes:
---------
-
-+ Setting "iframe" configuration property on a YAHOO.widget.MenuBar instance
-  will now result in the property cascading down to all submenus.
-
-+ The "position" configuration property no longer automatically enables the 
-  iframe shim for YAHOO.widget.Menu instances.  Previously, setting the 
-  "position" configuration property to "static" would automatically 
-  set the "iframe" configuration property to "false," and setting "position" to
-  "dynamic" would set the "iframe" configuration property to "true" for IE 6.
-
-+ YAHOO.widget.Menu instances no longer have their widths set automatically 
-  as they are rendered.
-
-+ Modified the DOM structure for a YAHOO.widget.MenuItem instance so that the 
-  submenu indicator node (<EM class="submenuindicator" />) and checked 
-  indicator node (<EM class="checkedindicator" />) that were previously direct 
-  descendants of the <A/> node are no longer present.  The updated DOM
-  structure of a YAHOO.widget.MenuItem instance is now:
-
-    <LI class="yuimenuitem">
-    
-        <A class="yuimenuitemlabel">
-    
-            Text Label
-    
-            <EM class="helptext"> Help Text </EM>   (Optional)
-    
-        </A>
-    
-        <DIV class="yuimenu"> ... </DIV> (Optional submenu node)
-    
-    </LI>
-
-
-  With the removal of the submenu indicator and checked indicator nodes,
-  the following YAHOO.widget.MenuItem constants, used to define the inner 
-  text of these nodes, have been removed:
-
-    - YAHOO.widget.MenuItem.prototype.COLLAPSED_SUBMENU_INDICATOR_TEXT
-    - YAHOO.widget.MenuItem.prototype.EXPANDED_SUBMENU_INDICATOR_TEXT
-    - YAHOO.widget.MenuItem.prototype.DISABLED_SUBMENU_INDICATOR_TEXT
-    - YAHOO.widget.MenuItem.prototype.CHECKED_TEXT
-    - YAHOO.widget.MenuItem.prototype.DISABLED_CHECKED_TEXT
-    
-  The "submenuIndicator" property of YAHOO.widget.MenuItem has also 
-  been removed.
-
-
-+ Modified the CSS class names used to represent the state of 
-  YAHOO.widget.MenuItem and YAHOO.widget.MenuBarItem instances.  Previous to 
-  2.4.0 the following CSS class names were applied only to the <A> element 
-  representing the text label for YAHOO.widget.MenuItem and 
-  YAHOO.widget.MenuBarItem instances:
-
-    + hashelptext
-    + checked
-    + hassubmenu
-    + selected
-    + disabled
-
-
-  To provide more flexibility and facilitate easier styling of state, a set of
-  new CSS class names have been created that are applied to both the root 
-  <LI> node and its child <A> node for YAHOO.widget.MenuItem and 
-  YAHOO.widget.MenuBarItem instances:
-  
-
-    New YAHOO.widget.MenuItem CSS classes:
-    --------------------------------------
-    
-    The following are applied to the <LI> element:
-    
-    .yuimenuitem-hassubmenu
-    .yuimenuitem-checked
-    .yuimenuitem-selected
-    .yuimenuitem-disabled
-    
-    .yuimenuitem-checked-selected
-    .yuimenuitem-checked-disabled
-    
-    .yuimenuitem-hassubmenu-selected
-    .yuimenuitem-hassubmenu-disabled
-    
-
-    The following are applied to the <A> element:
-
-    .yuimenuitemlabel-hassubmenu
-    .yuimenuitemlabel-checked
-    .yuimenuitemlabel-selected
-    .yuimenuitemlabel-disabled
-    
-    .yuimenuitemlabel-checked-selected
-    .yuimenuitemlabel-checked-disabled
-    
-    .yuimenuitemlabel-hassubmenu-selected
-    .yuimenuitemlabel-hassubmenu-disabled
-
-
-    New YAHOO.widget.MenuBarItem CSS classes:
-    -----------------------------------------
-    
-    The following are applied to the <LI> element:
-    
-    .yuimenubaritem-hassubmenu
-    .yuimenubaritem-selected
-    .yuimenubaritem-disabled
-    
-    .yuimenubaritem-hassubmenu-selected
-    .yuimenubaritem-hassubmenu-disabled
-    
-
-    The following are applied to the <A> element:
-    
-    .yuimenubaritemlabel-hassubmenu
-    .yuimenubaritemlabel-selected
-    .yuimenubaritemlabel-disabled
-    
-    .yuimenubaritemlabel-hassubmenu-selected
-    .yuimenubaritemlabel-hassubmenu-disabled
-
-
-+ Deprecated the YAHOO.widget.ContextMenuItem class and replaced it 
-  with YAHOO.widget.MenuItem.
-
-+ All submenus of a YAHOO.widget.ContextMenu instance are now of type
-  YAHOO.widget.Menu.
-
-+ Updated the behavior of the "clicktohide" configuration property of 
-  YAHOO.widget.Menu so that it behaves as documented: controls whether or not 
-  clicking outside a menu results in the menu hiding.
-
-
-
-*** version 2.3.1 ***
-
-Fixed the following bugs:
--------------------------
-
-+ Including the Container CSS along with Menu CSS on a page will no longer 
-  result in statically positioned Menu instances rendering as hidden.
-
-+ The focus outline for MenuItem instances no longer sticks in Opera.
-
-+ Clicking MenuItem instances without a value for the "url" configuration 
-  property will no longer result in the MenuItem losing focus.
-  
-+ Improved compatibility with Menu CSS and YUI Base CSS.
-
-
-*** version 2.3 ***
-
-Fixed the following bugs:
--------------------------
-
-+ Pressing the Esc key when an item in a MenuBar has focus will now result
-  in the item blurring in IE.
-
-+ Clicking a YAHOO.widget.MenuItem instance with a "url" configuration property 
-  set will now result in the hiding of its parent YAHOO.widget.Menu instance.
-
-+ Creating an empty YAHOO.widget.Menu instance from existing markup will no 
-  longer result in a JavaScript error.
-  
-+ The "constraintoviewport" configuration property now correctly keeps a 
-  YAHOO.widget.Menu instance inside the boundaries of the browser viewport.
-
-+ Tuned scrolling behavior so that when the user has scrolled to the bottom of 
-  a YAHOO.widget.Menu instance and starts pressing the up arrow key, the 
-  contents begin scrolling only when the next item to be selected is out of 
-  view of the scrollable area.
-
-+ Modified "removeMenu" method of YAHOO.widget.MenuManager so that it removes
-  the specified YAHOO.widget.Menu instance from the collection of visible menus.
-+ Calling the "destroy" method of a visible YAHOO.widget.Menu instance now
-  purges it from the YAHOO.widget.Manager's collection of visible Menus.
-+ YAHOO.widget.Menu instances now blur before hiding.
-
-+ The debug version of YAHOO.widget.Menu now correctly logs as "Menu" rather 
-  than "Overlay" in IE.
-  
-+ Setting a YAHOO.widget.MenuItem instance's "checked" configuration property 
-  to "true" two or more times followed by "false" will no longer result in some 
-  of the DOM elements used to render the checkmark icon will no longer remain 
-  in the item's DOM.
-
-+ It is now possible to click anywhere on a YAHOO.widget.MenuItem instance 
-  and have it navigate to the URL specified by its "url" configuration property 
-  - even if the MenuItem has a value specified for its "target"
-  configuation property.
-
-+ The "toString" method of YAHOO.widget.MenuItem now returns the instance's id.
-
-+ Setting the YAHOO.widget.MenuItem.prototype.COLLAPSED_SUBMENU_INDICATOR_TEXT 
-  constant to empty string no longer results in JavaScript error.
-
-+ YAHOO.widget.MenuBar instances behave the same regardless of the value
-  of their "position" configuration property.
-
-+ It is now possible to ctr or shift-click on YAHOO.widget.MenuItem instances 
-  without the browser automatically redirecting to the URL specified by the 
-  MenuItem's "url" configuration property.
-
-
-Added the following features:
------------------------------
-
-+ Prototype of all classes (Menu, ContextMenu, MenuBar, MenuItem, 
-  ContextMenuItem, MenuBarItem) are augmented with YAHOO.util.EventProvider.
-
-+ Added the following methods to YAHOO.widget.MenuManager:
-
-    - "getMenuItem"
-    - "getMenuItemGroup"
-
-+ Added the following methods to YAHOO.widget.Menu:
-
-    - "subscribe" 
-    - "getSubmenus"
-    - "onRender"
-
-+ Added a "disabled" configuration property to YAHOO.widget.Menu.
-
-+ Added the constant "CSS_LABEL_CLASS_NAME" to YAHOO.widget.MenuItem that 
-  represents the name of the CSS class applied to the <A/> node that is the 
-  first child of its root <LI/> node.
-
-+ Added the constant "CSS_LABEL_CLASS_NAME" to YAHOO.widget.MenuBarItem that 
-  represents the name of the CSS class applied to the <A/> node that is the 
-  first child of its root <LI/> node.
-
-+ Added ability for YAHOO.widget.Menu instances to have shadow:
-
-    - The shadow for a Menu is implemented by appending a new element as the 
-      last child of its root <DIV/> element:
-
-        <DIV class="yuimenu">
-            <DIV class="bd">
-                <UL>
-                    <LI class="yuimenuitem"/>
-                    <LI class="yuimenuitem"/>
-                    <LI class="yuimenuitem"/>
-                </UL>
-            </DIV>
-            <DIV class="yui-menu-shadow"/>
-        </DIV>
-
-    - The code that creates the shadow element resides inside the Menu's 
-      public "onRender" prototype method.  To disable the creation of a Menu's 
-      shadow override the prototype of the "onRender" method:
-      
-      YAHOO.widget.Menu.prototype.onRender = function () { };
-      
-    - The actual creation of the shadow element is deferred until the Menu is 
-      made visible for the first time.
-      
-    - The shadow element is only created for Menu instances whose
-      "position" configuration property is set to "dynamic."
-
-    - A Menu's shadow element can be styled via two CSS classes:
-
-        + "yui-menu-shadow"  - Applied to the shadow element when it is created.
-        + "yui-menu-shadow-visible" - Applied to the shadow element when the 
-        Menu is visible; it is removed when hidden.
-
-    - The shadow element is only styled when using the new "Sam" skin, for
-      the previous default skin its "display" property is set to "none."
-
-
-Changes:
---------
-
-+ Deprecated "browser" property of YAHOO.widget.MenuItem in favor 
-  of the YAHOO.env.ua.
-
-+ Modified the DOM structure for a YAHOO.widget.MenuItem instance so that its
-  root <LI/> node only has only two direct descendants: 
-  
-    - The <A/> node for its text label
-    - The <DIV/> node for its submenu
-  
-  The submenu indicator node (<EM class="submenuindicator" />), checked 
-  indicator node (<EM class="checkedindicator" />), and help text node
-  (<EM class="helptext" />) that were previously direct descendants of a
-  YAHOO.widget.MenuItem instance's root <LI/> are now direct descendants of 
-  its <A/> node:
-
-    <LI class="yuimenuitem || yuimenubaritem">
-
-        <A class="yuimenuitemlabel || yuimenubaritemlabel">
-
-            Text Label
-
-            <EM class="helptext"> Help Text </EM>   (Optional)
-            <EM class="checkedindicator"> ... </EM> (Optional)
-            <EM class="submenuindicator"> ... </EM> (Optional)
-
-        </A>
-
-        <DIV class="yuimenu"> ... </DIV> (Optional submenu node)
-
-    </LI>
-
-+ As a result of the DOM structure changes for YAHOO.widget.MenuItem, the
-  following CSS class are now only applied to a YAHOO.widget.MenuItem 
-  instance's <A/> node:
-
-    - "selected"
-    - "disabled"
-    - "checked"
-    - "hashelptext"
-    - "hassubmenu"
-
-+ The "text" configuration property of YAHOO.widget.MenuItem now accepts a 
-  string of HTML (previously only accepted plain text).
-
-+ The "emphasis" and "strongemphasis" configuration properties of 
-  YAHOO.widget.MenuItem are no longer interpreted when building from 
-  existing markup.
-
-+ All YAHOO.widget.MenuItem instances built from markup must have an <A> node 
-  as the first child of its root <LI> node.
-
-+ When building YAHOO.widget.MenuItem instances from existing markup, the value 
-  of the "text" property is set to the innerHTML of the menu item's <A> node.
-
-+ Deprecated the following YAHOO.widget.MenuItem configuration properties:
-
-    - "strongemphasis"
-    - "emphasis"
-    - "helptext"
-
-
-Known Issues
-------------
-
-+ ContextMenu works differently in Opera
-  --------------------------------------
-  Opera doesn't support the "contextmenu" DOM event used to trigger the display
-  of YAHOO.widget.ContextMenu instances.  As a result, clicking the right mouse 
-  button in Opera will not result in the display of a ContextMenu instance 
-  as it would in IE, Gecko, and Safari.  To work around this shortcoming, users 
-  will need to do the following to trigger the display of 
-  YAHOO.widget.ContextMenu instances in Opera:
-
-    - Opera for Windows: Hold down the control key while clicking with the 
-      left mouse button.
-
-    - Opera for Mac OS X: Hold down the command/Apple key while clicking with  
-      the left mouse button.
-
-+ Focus highlight sticks in Opera 
-  -------------------------------
-  In Opera focus is designated via the application of a background color 
-  to an element's text node.  When a Menu instance has focus in Opera, the 
-  focus highlight can remain on a MenuItem instance even after it has blurred.
-
-+ ContextMenu instances cannot be invoked by clicking on Java Applets
-  -------------------------------------------------------------------
-  When a Java Applet is specified as the "trigger" element for a ContextMenu 
-  instance it will not display when the Applet is clicked.  This is not a 
-  bug in the ContextMenu class, but rather a result of DOM events not bubbling 
-  up from inside Java Applets.  For more information on this issue see:
-  http://tech.groups.yahoo.com/group/ydn-javascript/message/12128
-
-+ Flash Movies appear on top of Menu instances
-  --------------------------------------------
-  Flash movies can appear on top of Menu instances in IE and Gecko-based
-  browsers.  To fix this problem, set the "wmode" of the Flash movie to either
-  "transparent" or "opaque" as indicated below: 
-
-  Via the <object> tag:
-
-    <object>
-        <param name="wmode" value="opaque">
-    </object>
-
-    <object>
-        <param name="wmode" value="transparent"> 
-    </object>
-
-  Via the <embed> tag:
-    
-    <embed wmode="transparent"> ... </embed>
-    <embed wmode="opaque"> ... </embed>
-
-    ** For more information see 
-       http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15523
-
-+ Menu instances not rendered at correct z-index in IE
-  -------------------------------------------------------
-  In IE, when a Menu instance is rendered inside a relatively positioned 
-  element the z-index of the Menu instance is now relative to its 
-  relatively positioned parent element.  This is not a bug in the 
-  Menu class, but rather a bug in IE where relatively positioned elements 
-  establish a new stacking context for their child nodes.  To avoid this 
-  bug is recommend that all Menu instances that need to be able to float
-  above any other element in the document be made direct descendants of the 
-  <body> element.
-  
-  ** For more information see 
-   http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
-
-+ Elements with scrollbars poke through Menu instances floating above them
-  ------------------------------------------------------------------------
-  There is a bug in Gecko-based browsers for Mac OS X where an element's 
-  scrollbars will poke through absolutely positioned elements floating above
-  them.  To fix this problem the "overflow" property of a Menu instance's 
-  shadow element is toggled between "hidden" and "auto" (through the application 
-  and removal of the "hide-scrollbars" and "show-scrollbars" CSS classes) as its 
-  "visibility" configuration property is toggled between "false" and "true."
-  Therefore, the shadow element acts like a shim, blocking scrollbars from
-  poking through the Menu.
-
-  PLEASE NOTE:  
-
-  1) The "hide-scrollbars" and "show-scrollbars" CSS classes classes are 
-     applied only for Gecko on Mac OS X and are added/removed to/from the 
-     Menu's root HTML element (DIV) via the "hideMacGeckoScrollbars" and 
-     "showMacGeckoScrollbars" methods of YAHOO.widget.Overlay.  
-  
-  2) This fix is only applied when using the "Sam" skin; the CSS for the 
-     original Menu skin does not contain any rules for rendering the 
-     shadow element.  
-  
-  3) Once the fix is applied the bug will reappear if the window loses focus.  
-     This can be fixed via Javascript by hiding and showing the Menu instance 
-     when the window receives focus:
-
-        YAHOO.util.Event.on(window, "focus", function () {
-        
-            oMyMenu.hide();
-            oMyMenu.show();
-        
-        });
-
-    ** For more information see 
-       https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-
-
-*** version 2.2.2 ***
-
-Fixed the following bugs:
--------------------------
-
-+ "toString" method of MenuItem, MenuBarItem and ContextMenuItem classes will
-  no longer throw a JavaScript error when using the debug version 
-  of the Event utility.
-
-+ "toString" method of Menu, MenuBar and ContextMenu classes will
-  no longer attempt to output the instance's id if it is not available.
-
-+ Logger statements output by debug version of MenuManager are now properly 
-  categorized as "MenuManager"
-
-
-
-*** version 2.2.1 ***
-
-Added the following features:
------------------------------
-
-+ Added the following methods to YAHOO.widget.Menu:
-  - "focus"
-  - "blur"
-  - "hasFocus"
-
-+ Added the following Custom Events to YAHOO.widget.Menu:
-    + "focusEvent"
-    + "blurEvent"
-
-+ Added the following methods to YAHOO.widget.MenuManager:
-  - "getFocusedMenuItem"
-  - "getFocusedMenu"
-
-+ Added "hasFocus" method to YAHOO.widget.MenuItem
-
-
-Fixed the following bugs:
--------------------------
-
-+ Menu instances no longer set focus to themselves by default when made 
-  visible.  Menus only receive focus in response to the following events: 
-    - The user mouses down on a MenuItem instance
-    - The user tabs into a MenuItem instance
-
-+ Application of the "maxheight" configuration property is now correctly 
-  deferred until the "render" event fires when Menu instance is being 
-  lazy loaded.
-
-+ The "maxheight" configuration property can now be set multiple times without 
-  a Menu instance restoring itself to its original default height.
-
-+ The "maxheight" configuration property can now be set on hidden Menu 
-  instances that use lazy loading. 
-
-+ Menu instances with a "width" configuration property set will now render 
-  at the specified width rather than shrink wrapping to their contents.
-
-+ Menu item help text no longer wraps to the next line in Opera 9.
-
-+ Immediate submenus of a Menubar instance will no longer shift their position 
-  to try and remain inside the confines of the browser's viewport.
-
-+ Lazy loaded ContextMenu instances now appear in the correct position when 
-  they are made visible for the first time.
-
-+ MenuBar instances no longer throw JavaScript errors when navigating items with
-  submenus containing no active items using the keyboard.
-
-+ Replaced use of native "hasOwnProperty" method 
-  with YAHOO.lang.hasOwnProperty.
-
-+ Rendered Menu instances will now update their width when items are added 
-  or removed.
-
-+ Mousing over a Menu instance in an IE window that does not have focus will 
-  no longer cause the window to receive focus.
-
-
-Changes:
---------
-
-+ "activeItem" property of YAHOO.widget.Menu now returns a reference to the 
-  Menu's currently selected item.
-
-+ Added a "visible" CSS class that is applied to visible Menu instances.
-
-+ Refactored the Menu family to improve performance, especially when working 
-  with a large number of instances in IE6.
-
-
-
-*** version 2.2.0 ***
-
-Added the following features:
------------------------------
-
-* Added two new methods to YAHOO.widget.Menu:
-
-    * "getItems" - Returns a flat array of the items in a menu.
-
-    * "clearContent" - Removes all of the content from the menu, including the 
-      menu items, group titles, header and footer.
-
-
-* Added three new configuration attributes to YAHOO.widget.Menu:
-
-    * "submenuhidedelay" - Number indicating the time (in milliseconds) that 
-      should expire before a submenu is hidden when the user mouses out of a 
-      menu item heading in the direction of a submenu. The value must be 
-      greater than or equal to the value specified for the "showdelay" 
-      configuration property.
-
-    * "maxheight" - Defines the maximum height (in pixels) for a menu before 
-      the contents of the body are scrolled. 
-
-    * "classname" - CSS class to be applied to the menu's root <div> element. 
-      The specified class(es) are appended in addition to the default class as 
-      specified by the menu's CSS_CLASS_NAME constant.
-
-
-* Added new constants to YAHOO.widget.MenuItem:
-
-    * COLLAPSED_SUBMENU_INDICATOR_TEXT - String representing the text for the 
-      <em> element used for the submenu arrow indicator.
-
-    * EXPANDED_SUBMENU_INDICATOR_TEXT - String representing the text for the 
-      submenu arrow indicator element (<em>) when the submenu is visible.
-
-    * DISABLED_SUBMENU_INDICATOR_ALT_TEXT - String representing the text for 
-      the submenu arrow indicator element (<em>) when the menu item is disabled.
-
-    * CHECKED_TEXT - String representing the text to be used for the checked 
-      indicator element (<em>).
-
-    * DISABLED_CHECKED_TEXT - String representing the text to be used for the 
-      checked indicator element (<em>) when the menu item is disabled.
-
-
-* Added two new configuration attributes to YAHOO.widget.MenuItem:
-
-    * "onclick" - Object literal representing the code to be executed when the 
-      button is clicked. Format:
-
-        {
-            fn: Function, // The handler to call when the event fires.
-            obj: Object, // An object to pass back to the handler.
-            scope: Object // The object to use for the scope of the handler.
-        }
-    
-    * "classname" - CSS class to be applied to the menu item's root <li> 
-      element. The specified class(es) are appended in addition to the default 
-      class as specified by the menu item's CSS_CLASS_NAME constant.
-
-
-* Added an "id" property to YAHOO.widget.MenuItem that represents the id of
-  the menu item's root <li> node.  Although not a configuration attribute, this
-  property should be set via the object literal of configuration attributes 
-  passed as the second argument to the constructor.  If no value is 
-  specified, then one will be generated using the "generateId" method of the 
-  Dom utility (YAHOO.widget.Dom).
-
-* Added a "trigger context menu event" 
-  (YAHOO.widget.ContextMenu.triggerContextMenuEvent) that fires when the DOM 
-  "contextmenu" event ("mousedown" for Opera) is fired by one of the elemeents
-  defined as a YAHOO.widget.ContextMenu instance's trigger.
-
-* Added a "cancel" method to YAHOO.widget.ContextMenu that can be used to 
-  cancel the display of a YAHOO.widget.ContextMen instance.  This method 
-  should be called within the scope of a "context menu" event handler for 
-  one of the context menu's triggers 
-  (YAHOO.widget.ContextMenu.triggerContextMenuEvent).
-
-
-Fixed the following bugs:
--------------------------
-
-* Users can now move diagonally from a menu item to its corresponding submenu 
-  without the submenu hiding immediately.
-
-* "destroy" method of YAHOO.widget.Menu now unsubscribes from the "text resize"  
-  event (YAHOO.widget.Module.textResizeEvent).
-
-* Browser progress bar no longer flashes when hovering over checked menu items 
-  or menu items with submenus.
-
-* Menu item submenu indicator image no longer jumps to the next line in 
-  quirks mode.
-
-* Mouse events no longer fire in Firefox if a YAHOO.widget.Menu instance is 
-  moved by script into a stationary mouse pointer.
-
-* Modified "toString" method of YAHOO.widget.ContextMenuItem to return the 
-  correct class name, as it was reporting as YAHOO.widget.MenuBarItem.
-
-
-Changes:
---------
-
-* Default value for the "showdelay" configuration attribute is now 250
-
-* Modified code so that all Menu images are added via CSS background images.  
-  As a result, the following constants and properties have been deprecated:
-
-    * YAHOO.widget.MenuItem.SUBMENU_INDICATOR_IMAGE_PATH
-    * YAHOO.widget.MenuItem.SELECTED_SUBMENU_INDICATOR_IMAGE_PATH
-    * YAHOO.widget.MenuItem.DISABLED_SUBMENU_INDICATOR_IMAGE_PATH
-    * YAHOO.widget.MenuItem.COLLAPSED_SUBMENU_INDICATOR_ALT_TEXT
-    * YAHOO.widget.MenuItem.EXPANDED_SUBMENU_INDICATOR_ALT_TEXT
-    * YAHOO.widget.MenuItem.DISABLED_SUBMENU_INDICATOR_ALT_TEXT
-    * YAHOO.widget.MenuItem.CHECKED_IMAGE_PATH
-    * YAHOO.widget.MenuItem.SELECTED_CHECKED_IMAGE_PATH
-    * YAHOO.widget.MenuItem.DISABLED_CHECKED_IMAGE_PATH
-    * YAHOO.widget.MenuItem.CHECKED_IMAGE_ALT_TEXT
-    * YAHOO.widget.MenuItem.DISABLED_CHECKED_IMAGE_ALT_TEXT
-    * YAHOO.widget.MenuItem.IMG_ROOT
-    * YAHOO.widget.MenuItem.IMG_ROOT_SSL
-    * YAHOO.widget.MenuItem.imageRoot
-    * YAHOO.widget.MenuItem.isSecure
-
-
-
-*** version 0.12.2 ***
-
-* No changes
-
-
-
-*** version 0.12.1 ***
-
-Fixed the following bugs:
--------------------------
-
-* Placed the call to the DOM "focus" method used by the MenuItem class inside 
-  a zero-second timeout to resolve a race condition between menu positioning 
-  and focusing of a menu item that resulted in the browser viewport 
-  scrolling unnecessarily.
-
-* Switched to JSMin for JavaScript compression to resolve issues with the 
-  minified version.  
-
-* Disabled menu item instances will no longer display a submenu if the item is 
-  clicked or moused over. 
-
-* Can no longer select more than one item in a menu if using the keyboard and 
-  mouse simultaneously.
-
-* Calling the "destory" method on a menu will now unregister all of the menu's 
-  submenus from the MenuManager.  
-
-
-
-*** version 0.12 ***
-
-Added the following features:
------------------------------
-
-* Added the YAHOO.widget.MenuManager singleton class.
-
-* Added two new methods to YAHOO.widget.Menu:
-
-    * "addItems" - Adds an array of items to a menu.
-
-    * "getRoot" - Returns the root menu in a menu hierarchy.
-
-* Added two new events to YAHOO.widget.Menu:
-
-    * "itemAddedEvent" - Fires when an item is added to a menu.
-
-    * "itemRemovedEvent" - Fires when an item is removed from a menu.
-
-* Added two new properties to YAHOO.widget.Menu:
-
-    * "itemData" - Array of items to be added to the menu.
-
-    * "lazyLoad" - Boolean indicating if the menu's "lazy load" feature 
-      is enabled.
-
-* Added new configuration properties to YAHOO.widget.Menu:
-
-    * "hidedelay" - Hides the menu after the specified number of milliseconds.  
-
-    * "showdelay" - Shows the menu after the specified number of milliseconds.  
-
-    * "container" - The containing element the menu should be rendered into.  
-
-    * "clicktohide" - Boolean indicating if the menu will automatically be 
-      hidden if the user clicks outside of it.
-
-    * "autosubmenudisplay" - Boolean indicating if submenus are automatically 
-      made visible when the user mouses over the menu's items.
-
-* Added a "toString" method to YAHOO.widget.MenuItem, YAHOO.widget.MenuBarItem 
-  and YAHOO.widget.ContextMenuItem that returns the class name followed by the 
-  value of the item's "text" configuration property.
-
-
-Fixed the following bugs:
--------------------------
-
-* Setting a YAHOO.widget.ContextMenu instance's "trigger" configuration 
-  property will remove all previous triggers before setting up the new ones.
-
-* "destroy" method of YAHOO.widget.ContextMenu cleans up all DOM event handlers.
-
-* Clicking on a menu item with a submenu no longer hides/collapses the 
-  entire menu.
-
-* Clicking an item's submenu indicator image no longer collapses the 
-  entire menu.
-  
-  
-Changes:
---------
-
-* Deprecated the YAHOO.widget.MenuModule and YAHOO.widget.MenuModuleItem 
-  classes.  The Base classes are now YAHOO.widget.Menu and 
-  YAHOO.widget.MenuItem.
-
-* "addItem" and "insertItem" methods of YAHOO.widget.Menu now accept an 
-  object literal representing YAHOO.widget.MenuItem configuration properties.
-
-* "clearActiveItem" now takes an argument: flag indicating if the Menu 
-  instance's active item should be blurred.
-
-* Switched the default value of the "visible" configuration property for 
-  YAHOO.widget.Menu to "false."
-
-* Switched the default value of the "constraintoviewport" configuration 
-  property for YAHOO.widget.Menu to "true."
-
-* Overloaded the "submenu" configuration property for YAHOO.widget.MenuItem
-  so that it now can accept any of the following:
-
-    * YAHOO.widget.Menu instance
-    * Object literal representation of a menu
-    * Element id
-    * Element reference
-
-* "hide" and "show" methods of statically positioned menus now toggle the their
-  element's "display" style property between "block" and "none."
-
-
-
-*** version 0.10.0 ***
-
-* Initial release
-
-* Known issues:
-
-      * Some Firefox extensions disable the ability for JavaScript to prevent  
-        the display of the browser's default context menu.  These extensions
-        can cause the YUI ContextMenu to stop working.  If you encounter this 
-        problem, you can reset the context menu preference in Firefox back to 
-        the default by making sure the "Disable or replace context menus" 
-        preference is checked:
-
-            Mac Firefox 1.0: 
-            -------------------
-            Preferences > Web Features > 
-                Advanced... > Disable or replace context menus
-
-            Mac Firefox 1.5
-            -------------------
-            Preferences > Context > 
-                Advanced... > Disable or replace context menus
-
-            Windows Firefox 1.0
-            -------------------
-            Tools > Options > Web Features > 
-                Advanced... > Disable or replace context menus
-
-            Windows Firefox 1.5
-            -------------------
-            Tools > Options > Context > 
-                Advanced... > Disable or replace context menus
-
-
-
-*** version 0.11.3 ***
-
-Added the following features:
------------------------------
-
-* Added a "target" configuration property to the MenuModuleItem object that
-  allows the user to specify the target of an item's anchor element.  Items 
-  that make use of the "target" configuration property will require the user 
-  to click exactly on the item's anchor element to navigate to the specified 
-  URL.
-
-* Items without a "url" property set will automatically hide their parent 
-  menu instance(s) when clicked.
-
-
-Fixed the following bugs:
--------------------------
-
-* Items in a submenu should now navigate to their specified URL when clicked.
-
-* Removed MenuBar's use of "overflow:hidden."  This fixes an issue in Firefox
-  1.5 in which submenus of a Menubar instance cannot overlay other absolutely 
-  positioned elements on the page.
-
-* Submenus of a Menubar instance will now automatically have their iframe shim
-  enabled in IE<7.
-
-* Statically positioned Menubar and Menu instances will now render with the 
-  correct position and dimensions in Safari.
-
-* MenuModuleItem's "focus" method now checks to make sure that an item's 
-  "display" style property is not "none" before trying to set focus to its
-  anchor element.
-  
-* A ContextMenu instance will now hide all other ContextMenu instances before
-  displaying itself.
-
-* Removed the dead space in front of an item's submenu indicator image in IE.  
-  This space was causing an item's submenu to flicker when the user hovered 
-  over it.
-
-
-Changes:
---------
-
-* Moved the DOM event handlers for every menu from the root DIV node of each 
-  instance to the document object.  This change reduces the number of DOM event 
-  handlers used by Menu to eight, improving the cleanup time required by the 
-  Event utility.
-
-                
-
-*** version 0.11.0 ***
-
-Added the following features:
------------------------------
-* Overloaded the "addItem" and "insertItem" methods of MenuModule to accept a 
-  string or a MenuModuleItem instance
-
-* Added the ability to define a MenuItem instance as being "checked"
-
-
-Fixed the following bugs:
--------------------------
-* Changing the path for the submenu indicator image of one MenuModuleItem 
-  subclass will no longer affect other subclasses
-
-* MenuItem instances built from existing markup without anchor tags will no 
-  longer trigger a JavaScript error when clicked
-
-* Modified the implementation of the "imageRoot" property for the 
-  MenuModuleItem class so that it is set to a secure/non-secure path when the
-  object is instantiated
-
-* Menu instances now resize in response to changes to the browser's font size
-
-* Modified the propagation of the MenuModule class's "submenualignment" 
-  configuration property so that it only applies to instances of the same type
-
-* Adjusted the specificity of the style rule that controls the position of a 
-  MenuItem instance's submenu indicator image to prevent it from wrapping in IE
-
-* Specified a width and height for submenu indicator images in the Menu 
-  stylesheet to ensure that Menu instances are always rendered at the correct 
-  width
-
-* Clicking a MenuItem instance will no longer trigger two HTTP GET requests
-
-* Users can now control or shift-click on MenuItem links
-
-
-Changes:
---------
-* In the Menu stylesheet (menu.css), switched from using "first" class to
-  "first-of-type" class
-
-* Changed case of MenuModuleItem class's "subMenuIndicator" property 
-  to "submenuIndicator"
\ No newline at end of file
diff --git a/lib/yui/menu/assets/menu-core.css b/lib/yui/menu/assets/menu-core.css
deleted file mode 100755 (executable)
index cde3be7..0000000
+++ /dev/null
@@ -1,235 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/* Menu & MenuBar styles */
-
-.yuimenubar {
-
-    visibility: visible;
-    position: static;
-
-}
-
-.yuimenu .yuimenu,
-.yuimenubar .yuimenu {
-
-    visibility: hidden;
-    position: absolute;
-    top: -10000px;
-    left: -10000px;
-
-}
-
-.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;
-
-}
-
-
-/* 
-    The following style rule trigger the "hasLayout" property in 
-    IE (http://msdn2.microsoft.com/en-us/library/ms533776.aspx) for a
-    MenuBar instance's <ul> element, allowing both to clear their floated 
-    child <li> elements.
-*/
-
-.yuimenubar ul {
-
-    *zoom: 1;
-
-}
-
-
-/* 
-    Remove the "hasLayout" trigger for submenus of MenuBar instances as it 
-    is unnecessary. 
-*/
-
-.yuimenubar .yuimenu ul {
-
-    *zoom: normal;
-
-}
-
-/*
-    The following style rule allows a MenuBar instance's <ul> element to clear
-    its floated <li> elements in Firefox, Safari and and Opera.
-*/
-
-.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;
-    
-    /*
-        The value for the left margin controls how much the help text is
-        offset from the text of the menu item.  This value will need to 
-        be customized depending on the longest text label of a menu item.
-    */
-    
-    margin: -1em 0 0 10em;
-    
-}
-
-/*
-    PLEASE NOTE: The <div> element used for a menu's shadow is appended 
-    to its root element via JavaScript once it has been rendered.  The 
-    code that creates the shadow lives in the menu's public "onRender" 
-    event handler that is a prototype method of YAHOO.widget.Menu.  
-    Implementers wishing to remove a menu's shadow or add any other markup
-    required for a given skin for menu should override the "onRender" method.
-*/
-
-.yui-menu-shadow {
-
-    position: absolute;
-    visibility: hidden;
-    z-index: -1;
-
-}
-
-.yui-menu-shadow-visible {
-
-    top: 2px;
-    right: -3px;
-    left: -3px;
-    bottom: -3px;
-    visibility: visible;
-
-}
-
-
-/*
-
-There are two known issues with YAHOO.widget.Overlay (the superclass class of 
-Menu) that manifest in Gecko-based browsers on Mac OS X:
-
-    1) Elements with scrollbars will poke through Overlay instances floating 
-       above them.
-    
-    2) An Overlay's scrollbars and the scrollbars of its child nodes remain  
-       visible when the Overlay is hidden.
-
-To fix these bugs in Menu (a subclass of YAHOO.widget.Overlay):
-
-    1) The "overflow" property of a Menu instance's shadow element and child 
-       nodes is toggled between "hidden" and "auto" (through the application  
-       and removal of the "hide-scrollbars" and "show-scrollbars" CSS classes)
-       as its "visibility" configuration property is toggled between 
-       "false" and "true."
-    
-    2) The "display" property of <select> elements that are child nodes of the 
-       Menu instance's root element is set to "none" when it is hidden.
-
-PLEASE NOTE:  
-  
-    1) The "hide-scrollbars" and "show-scrollbars" CSS classes classes are 
-       applied only for Gecko on Mac OS X and are added/removed to/from the 
-       Overlay's root HTML element (DIV) via the "hideMacGeckoScrollbars" and 
-       "showMacGeckoScrollbars" methods of YAHOO.widget.Overlay.
-    
-    2) There may be instances where the CSS for a web page or application 
-       contains style rules whose specificity override the rules implemented by 
-       the Menu CSS files to fix this bug.  In such cases, is necessary to 
-       leverage the provided "hide-scrollbars" and "show-scrollbars" classes to 
-       write custom style rules to guard against this bug.
-
-** For more information on this issue, see:
-
-   + https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-   + SourceForge bug #1723530
-
-*/
-
-.hide-scrollbars * {
-
-       overflow: hidden;
-
-}
-
-.hide-scrollbars select {
-
-       display: none;
-
-}
-
-
-/*
-
-The following style rule (".yuimenu.show-scrollbars") overrides the 
-".show-scrollbars" rule defined in container-core.css which sets the 
-"overflow" property of a YAHOO.widget.Overlay instance's root HTML element to 
-"auto" when it is visible.  Without this override, a Menu would have scrollbars
-when one of its submenus is visible.
-
-*/
-
-.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;
-
-}
\ No newline at end of file
diff --git a/lib/yui/menu/assets/menu.css b/lib/yui/menu/assets/menu.css
deleted file mode 100755 (executable)
index 68e9571..0000000
+++ /dev/null
@@ -1,494 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/* Menu & MenuBar styles */
-
-.yuimenubar {
-
-    visibility: visible;
-    position: static;
-
-}
-
-.yuimenu .yuimenu,
-.yuimenubar .yuimenu {
-
-    visibility: hidden;
-    position: absolute;
-    top: -10000px;
-    left: -10000px;
-
-}
-
-.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;
-
-}
-
-
-/* 
-    The following style rule trigger the "hasLayout" property in 
-    IE (http://msdn2.microsoft.com/en-us/library/ms533776.aspx) for a
-    MenuBar instance's <ul> element, allowing both to clear their floated 
-    child <li> elements.
-*/
-
-.yuimenubar ul {
-
-    *zoom: 1;
-
-}
-
-
-/* 
-    Remove the "hasLayout" trigger for submenus of MenuBar instances as it 
-    is unnecessary. 
-*/
-
-.yuimenubar .yuimenu ul {
-
-    *zoom: normal;
-
-}
-
-/*
-    The following style rule allows a MenuBar instance's <ul> element to clear
-    its floated <li> elements in Firefox, Safari and and Opera.
-*/
-
-.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;
-    
-    /*
-        The value for the left margin controls how much the help text is
-        offset from the text of the menu item.  This value will need to 
-        be customized depending on the longest text label of a menu item.
-    */
-    
-    margin: -1em 0 0 10em;
-    
-}
-
-/*
-    PLEASE NOTE: The <div> element used for a menu's shadow is appended 
-    to its root element via JavaScript once it has been rendered.  The 
-    code that creates the shadow lives in the menu's public "onRender" 
-    event handler that is a prototype method of YAHOO.widget.Menu.  
-    Implementers wishing to remove a menu's shadow or add any other markup
-    required for a given skin for menu should override the "onRender" method.
-*/
-
-.yui-menu-shadow {
-
-    position: absolute;
-    visibility: hidden;
-    z-index: -1;
-
-}
-
-.yui-menu-shadow-visible {
-
-    top: 2px;
-    right: -3px;
-    left: -3px;
-    bottom: -3px;
-    visibility: visible;
-
-}
-
-
-/*
-
-There are two known issues with YAHOO.widget.Overlay (the superclass class of 
-Menu) that manifest in Gecko-based browsers on Mac OS X:
-
-    1) Elements with scrollbars will poke through Overlay instances floating 
-       above them.
-    
-    2) An Overlay's scrollbars and the scrollbars of its child nodes remain  
-       visible when the Overlay is hidden.
-
-To fix these bugs in Menu (a subclass of YAHOO.widget.Overlay):
-
-    1) The "overflow" property of a Menu instance's shadow element and child 
-       nodes is toggled between "hidden" and "auto" (through the application  
-       and removal of the "hide-scrollbars" and "show-scrollbars" CSS classes)
-       as its "visibility" configuration property is toggled between 
-       "false" and "true."
-    
-    2) The "display" property of <select> elements that are child nodes of the 
-       Menu instance's root element is set to "none" when it is hidden.
-
-PLEASE NOTE:  
-  
-    1) The "hide-scrollbars" and "show-scrollbars" CSS classes classes are 
-       applied only for Gecko on Mac OS X and are added/removed to/from the 
-       Overlay's root HTML element (DIV) via the "hideMacGeckoScrollbars" and 
-       "showMacGeckoScrollbars" methods of YAHOO.widget.Overlay.
-    
-    2) There may be instances where the CSS for a web page or application 
-       contains style rules whose specificity override the rules implemented by 
-       the Menu CSS files to fix this bug.  In such cases, is necessary to 
-       leverage the provided "hide-scrollbars" and "show-scrollbars" classes to 
-       write custom style rules to guard against this bug.
-
-** For more information on this issue, see:
-
-   + https://bugzilla.mozilla.org/show_bug.cgi?id=187435
-   + SourceForge bug #1723530
-
-*/
-
-.hide-scrollbars * {
-
-       overflow: hidden;
-
-}
-
-.hide-scrollbars select {
-
-       display: none;
-
-}
-
-
-/*
-
-The following style rule (".yuimenu.show-scrollbars") overrides the 
-".show-scrollbars" rule defined in container-core.css which sets the 
-"overflow" property of a YAHOO.widget.Overlay instance's root HTML element to 
-"auto" when it is visible.  Without this override, a Menu would have scrollbars
-when one of its submenus is visible.
-
-*/
-
-.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;
-
-}
-
-
-/* MenuBar style rules */
-
-.yuimenubar {
-
-    background-color: #f6f7ee;
-    
-}
-
-
-
-/* Menu style rules */
-
-.yuimenu {
-
-    background-color: #f6f7ee;
-    border: solid 1px #c4c4be;
-    padding: 1px;
-    
-}
-
-.yui-menu-shadow {
-
-    display: none;
-
-}
-
-.yuimenu ul {
-
-    border: solid 1px #c4c4be;
-    border-width: 1px 0 0 0;
-    padding: 10px 0;
-
-}
-
-.yuimenu .yui-menu-body-scrolled {
-
-    overflow: hidden;
-
-}
-
-
-/* Group titles */
-
-.yuimenu h6,
-.yuimenubar h6 { 
-
-    font-size: 100%;
-    font-weight: normal;
-    border: solid 1px #c4c4be;
-    color: #b9b9b9;    
-
-}
-
-.yuimenubar h6 {
-
-    float: left;
-    padding: 4px 12px;
-    border-width: 0 1px 0 0;
-
-}
-
-.yuimenubar .yuimenu h6 {
-
-    float: none;
-
-}
-
-.yuimenu h6 {
-
-    border-width: 1px 0 0 0;
-    padding: 5px 10px 0 10px;
-
-}
-
-.yuimenu ul.first-of-type, 
-.yuimenu ul.hastitle,
-.yuimenu h6.first-of-type {
-
-    border-width: 0;
-
-}
-
-
-
-/* Top and bottom scroll controls */
-
-.yuimenu .topscrollbar,
-.yuimenu .bottomscrollbar {
-
-    height: 16px;
-    background-position: center center;
-    background-repeat: no-repeat;
-
-}
-
-.yuimenu .topscrollbar {
-
-    background-image: url(menu_up_arrow.png);
-
-}
-
-.yuimenu .topscrollbar_disabled {
-
-    background-image: url(menu_up_arrow_disabled.png);
-
-}
-
-.yuimenu .bottomscrollbar {
-
-    background-image: url(menu_down_arrow.png);
-
-}
-
-.yuimenu .bottomscrollbar_disabled {
-
-    background-image: url(menu_down_arrow_disabled.png);
-
-}
-
-
-/* MenuItem and MenuBarItem styles */
-
-.yuimenuitem {
-
-    /*
-        For IE: Used to collapse superfluous white space between <li> elements
-        that is triggered by the "display" property of the <a> elements being
-        set to "block."
-    */
-
-    *border-bottom: solid 1px #f6f7ee;
-
-}
-
-.yuimenuitemlabel,
-.yuimenubaritemlabel {
-
-    font-size: 85%;
-    color: #000;
-    text-decoration: none;
-
-}
-
-.yuimenuitemlabel {
-
-    padding: 2px 24px;
-    
-}
-
-.yuimenubaritemlabel {
-
-    border-width: 0 0 0 1px;
-    border-style: solid;
-    border-color: #c4c4be;
-    padding: 4px 24px;
-
-}
-
-.yuimenubar li.first-of-type .yuimenubaritemlabel {
-
-    border-width: 0;
-
-}
-
-.yuimenubaritem-hassubmenu {
-
-    background: url(menubaritem_submenuindicator.png) right center no-repeat;
-
-}
-
-.yuimenuitem-hassubmenu {
-
-    background: url(menuitem_submenuindicator.png) right center no-repeat;
-
-}
-
-.yuimenuitem-checked {
-
-    background: url(menuitem_checkbox.png) left center no-repeat;
-
-}
-
-.yuimenuitemlabel .helptext {
-
-    margin-top: -1.1em;
-    *margin-top: -1.2em;  /* For IE*/
-    
-}
-
-
-
-/* MenuItem states */
-
-
-/* Selected MenuItem */
-
-.yuimenubaritem-selected,
-.yuimenuitem-selected {
-
-    background-color: #8c8ad0;
-
-}
-
-.yuimenubaritemlabel-selected,
-.yuimenuitemlabel-selected {
-
-    text-decoration: underline;
-    color: #fff;
-
-}
-
-.yuimenubaritem-hassubmenu-selected {
-
-    background-image: url(menubaritem_submenuindicator_selected.png);
-
-}
-
-.yuimenuitem-hassubmenu-selected {
-
-    background-image: url(menuitem_submenuindicator_selected.png);
-
-}
-
-.yuimenuitem-checked-selected {
-
-    background-image: url(menuitem_checkbox_selected.png);
-
-}
-
-
-/* Disabled MenuItem */
-
-.yuimenubaritemlabel-disabled,
-.yuimenuitemlabel-disabled {
-
-    cursor: default;
-    color: #b9b9b9;
-
-}
-
-.yuimenubaritem-hassubmenu-disabled {
-
-    background-image: url(menubaritem_submenuindicator_disabled.png);
-
-}
-
-.yuimenuitem-hassubmenu-disabled {
-
-    background-image: url(menuitem_submenuindicator_disabled.png);
-
-}
-
-.yuimenuitem-checked-disabled {
-
-    background-image: url(menuitem_checkbox_disabled.png);
-
-}
\ No newline at end of file
diff --git a/lib/yui/menu/assets/menu_down_arrow.png b/lib/yui/menu/assets/menu_down_arrow.png
deleted file mode 100644 (file)
index 86d885d..0000000
Binary files a/lib/yui/menu/assets/menu_down_arrow.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menu_down_arrow_disabled.png b/lib/yui/menu/assets/menu_down_arrow_disabled.png
deleted file mode 100644 (file)
index 98b3988..0000000
Binary files a/lib/yui/menu/assets/menu_down_arrow_disabled.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menu_up_arrow.png b/lib/yui/menu/assets/menu_up_arrow.png
deleted file mode 100644 (file)
index d83a6be..0000000
Binary files a/lib/yui/menu/assets/menu_up_arrow.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menu_up_arrow_disabled.png b/lib/yui/menu/assets/menu_up_arrow_disabled.png
deleted file mode 100644 (file)
index 63b5638..0000000
Binary files a/lib/yui/menu/assets/menu_up_arrow_disabled.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menubaritem_submenuindicator.png b/lib/yui/menu/assets/menubaritem_submenuindicator.png
deleted file mode 100644 (file)
index 921b267..0000000
Binary files a/lib/yui/menu/assets/menubaritem_submenuindicator.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menubaritem_submenuindicator_disabled.png b/lib/yui/menu/assets/menubaritem_submenuindicator_disabled.png
deleted file mode 100644 (file)
index 63e0c3c..0000000
Binary files a/lib/yui/menu/assets/menubaritem_submenuindicator_disabled.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menubaritem_submenuindicator_selected.png b/lib/yui/menu/assets/menubaritem_submenuindicator_selected.png
deleted file mode 100644 (file)
index 51078d7..0000000
Binary files a/lib/yui/menu/assets/menubaritem_submenuindicator_selected.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menuitem_checkbox.png b/lib/yui/menu/assets/menuitem_checkbox.png
deleted file mode 100644 (file)
index 12e74dd..0000000
Binary files a/lib/yui/menu/assets/menuitem_checkbox.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menuitem_checkbox_disabled.png b/lib/yui/menu/assets/menuitem_checkbox_disabled.png
deleted file mode 100644 (file)
index 0063391..0000000
Binary files a/lib/yui/menu/assets/menuitem_checkbox_disabled.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menuitem_checkbox_selected.png b/lib/yui/menu/assets/menuitem_checkbox_selected.png
deleted file mode 100644 (file)
index 6f26c81..0000000
Binary files a/lib/yui/menu/assets/menuitem_checkbox_selected.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menuitem_submenuindicator.png b/lib/yui/menu/assets/menuitem_submenuindicator.png
deleted file mode 100644 (file)
index ee69fe4..0000000
Binary files a/lib/yui/menu/assets/menuitem_submenuindicator.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menuitem_submenuindicator_disabled.png b/lib/yui/menu/assets/menuitem_submenuindicator_disabled.png
deleted file mode 100644 (file)
index a0ee793..0000000
Binary files a/lib/yui/menu/assets/menuitem_submenuindicator_disabled.png and /dev/null differ
diff --git a/lib/yui/menu/assets/menuitem_submenuindicator_selected.png b/lib/yui/menu/assets/menuitem_submenuindicator_selected.png
deleted file mode 100644 (file)
index a96c7b5..0000000
Binary files a/lib/yui/menu/assets/menuitem_submenuindicator_selected.png and /dev/null differ
diff --git a/lib/yui/menu/menu-debug.js b/lib/yui/menu/menu-debug.js
deleted file mode 100755 (executable)
index f0818e0..0000000
+++ /dev/null
@@ -1,9088 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-
-
-/**
-* @module menu
-* @description <p>The Menu family of components features a collection of 
-* controls that make it easy to add menus to your website or web application.  
-* With the Menu Controls you can create website fly-out menus, customized 
-* context menus, or application-style menu bars with just a small amount of 
-* scripting.</p><p>The Menu family of controls features:</p>
-* <ul>
-*    <li>Keyboard and mouse navigation.</li>
-*    <li>A rich event model that provides access to all of a menu's 
-*    interesting moments.</li>
-*    <li>Support for 
-*    <a href="http://en.wikipedia.org/wiki/Progressive_Enhancement">Progressive
-*    Enhancement</a>; Menus can be created from simple, 
-*    semantic markup on the page or purely through JavaScript.</li>
-* </ul>
-* @title Menu
-* @namespace YAHOO.widget
-* @requires Event, Dom, Container
-*/
-(function () {
-
-    var Dom = YAHOO.util.Dom,
-        Event = YAHOO.util.Event;
-
-
-    /**
-    * Singleton that manages a collection of all menus and menu items.  Listens 
-    * for DOM events at the document level and dispatches the events to the 
-    * corresponding menu or menu item.
-    *
-    * @namespace YAHOO.widget
-    * @class MenuManager
-    * @static
-    */
-    YAHOO.widget.MenuManager = function () {
-    
-        // Private member variables
-    
-    
-        // Flag indicating if the DOM event handlers have been attached
-    
-        var m_bInitializedEventHandlers = false,
-    
-    
-        // Collection of menus
-
-        m_oMenus = {},
-
-
-        // Collection of visible menus
-    
-        m_oVisibleMenus = {},
-    
-    
-        //  Collection of menu items 
-
-        m_oItems = {},
-
-
-        // Map of DOM event types to their equivalent CustomEvent types
-        
-        m_oEventTypes = {
-            "click": "clickEvent",
-            "mousedown": "mouseDownEvent",
-            "mouseup": "mouseUpEvent",
-            "mouseover": "mouseOverEvent",
-            "mouseout": "mouseOutEvent",
-            "keydown": "keyDownEvent",
-            "keyup": "keyUpEvent",
-            "keypress": "keyPressEvent"
-        },
-    
-    
-        m_oFocusedMenuItem = null;
-    
-    
-        var m_oLogger = new YAHOO.widget.LogWriter("MenuManager");
-    
-    
-    
-        // Private methods
-    
-    
-        /**
-        * @method getMenuRootElement
-        * @description Finds the root DIV node of a menu or the root LI node of 
-        * a menu item.
-        * @private
-        * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-        * level-one-html.html#ID-58190037">HTMLElement</a>} p_oElement Object 
-        * specifying an HTML element.
-        */
-        function getMenuRootElement(p_oElement) {
-        
-            var oParentNode;
-    
-            if (p_oElement && p_oElement.tagName) {
-            
-                switch (p_oElement.tagName.toUpperCase()) {
-                        
-                case "DIV":
-    
-                    oParentNode = p_oElement.parentNode;
-    
-                    // Check if the DIV is the inner "body" node of a menu
-
-                    if (
-                        (
-                            Dom.hasClass(p_oElement, "hd") ||
-                            Dom.hasClass(p_oElement, "bd") ||
-                            Dom.hasClass(p_oElement, "ft")
-                        ) && 
-                        oParentNode && 
-                        oParentNode.tagName && 
-                        oParentNode.tagName.toUpperCase() == "DIV") 
-                    {
-                    
-                        return oParentNode;
-                    
-                    }
-                    else {
-                    
-                        return p_oElement;
-                    
-                    }
-                
-                    break;
-
-                case "LI":
-    
-                    return p_oElement;
-
-                default:
-    
-                    oParentNode = p_oElement.parentNode;
-    
-                    if (oParentNode) {
-                    
-                        return getMenuRootElement(oParentNode);
-                    
-                    }
-                
-                    break;
-                
-                }
-    
-            }
-            
-        }
-    
-    
-    
-        // Private event handlers
-    
-    
-        /**
-        * @method onDOMEvent
-        * @description Generic, global event handler for all of a menu's 
-        * DOM-based events.  This listens for events against the document 
-        * object.  If the target of a given event is a member of a menu or 
-        * menu item's DOM, the instance's corresponding Custom Event is fired.
-        * @private
-        * @param {Event} p_oEvent Object representing the DOM event object  
-        * passed back by the event utility (YAHOO.util.Event).
-        */
-        function onDOMEvent(p_oEvent) {
-    
-            // Get the target node of the DOM event
-        
-            var oTarget = Event.getTarget(p_oEvent),
-                
-            // See if the target of the event was a menu, or a menu item
-    
-            oElement = getMenuRootElement(oTarget),
-            sCustomEventType,
-            sTagName,
-            sId,
-            oMenuItem,
-            oMenu; 
-    
-    
-            if (oElement) {
-    
-                sTagName = oElement.tagName.toUpperCase();
-        
-                if (sTagName == "LI") {
-            
-                    sId = oElement.id;
-            
-                    if (sId && m_oItems[sId]) {
-            
-                        oMenuItem = m_oItems[sId];
-                        oMenu = oMenuItem.parent;
-            
-                    }
-                
-                }
-                else if (sTagName == "DIV") {
-                
-                    if (oElement.id) {
-                    
-                        oMenu = m_oMenus[oElement.id];
-                    
-                    }
-                
-                }
-    
-            }
-    
-    
-            if (oMenu) {
-    
-                sCustomEventType = m_oEventTypes[p_oEvent.type];
-    
-    
-                // Fire the Custom Event that corresponds the current DOM event    
-        
-                if (oMenuItem && !oMenuItem.cfg.getProperty("disabled")) {
-    
-                    oMenuItem[sCustomEventType].fire(p_oEvent);                   
-    
-    
-                    if (
-                            p_oEvent.type == "keyup" || 
-                            p_oEvent.type == "mousedown") 
-                    {
-    
-                        if (m_oFocusedMenuItem != oMenuItem) {
-                        
-                            if (m_oFocusedMenuItem) {
-    
-                                m_oFocusedMenuItem.blurEvent.fire();
-                            
-                            }
-    
-                            oMenuItem.focusEvent.fire();
-                        
-                        }
-                    
-                    }
-    
-                }
-        
-                oMenu[sCustomEventType].fire(p_oEvent, oMenuItem);
-            
-            }
-            else if (p_oEvent.type == "mousedown") {
-    
-                if (m_oFocusedMenuItem) {
-    
-                    m_oFocusedMenuItem.blurEvent.fire();
-    
-                    m_oFocusedMenuItem = null;
-    
-                }
-    
-    
-                /*
-                    If the target of the event wasn't a menu, hide all 
-                    dynamically positioned menus
-                */
-                
-                for (var i in m_oVisibleMenus) {
-        
-                    if (YAHOO.lang.hasOwnProperty(m_oVisibleMenus, i)) {
-        
-                        oMenu = m_oVisibleMenus[i];
-        
-                        if (oMenu.cfg.getProperty("clicktohide") && 
-                            !(oMenu instanceof YAHOO.widget.MenuBar) && 
-                            oMenu.cfg.getProperty("position") == "dynamic") {
-        
-                            oMenu.hide();
-        
-                        }
-                        else {
-    
-                            oMenu.clearActiveItem(true);
-        
-                        }
-        
-                    }
-        
-                } 
-    
-            }
-            else if (p_oEvent.type == "keyup") { 
-    
-                if (m_oFocusedMenuItem) {
-    
-                    m_oFocusedMenuItem.blurEvent.fire();
-    
-                    m_oFocusedMenuItem = null;
-    
-                }
-    
-            }
-    
-        }
-    
-    
-        /**
-        * @method onMenuDestroy
-        * @description "destroy" event handler for a menu.
-        * @private
-        * @param {String} p_sType String representing the name of the event 
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        * @param {YAHOO.widget.Menu} p_oMenu The menu that fired the event.
-        */
-        function onMenuDestroy(p_sType, p_aArgs, p_oMenu) {
-    
-            if (m_oMenus[p_oMenu.id]) {
-    
-                this.removeMenu(p_oMenu);
-    
-            }
-    
-        }
-    
-    
-        /**
-        * @method onMenuFocus
-        * @description "focus" event handler for a MenuItem instance.
-        * @private
-        * @param {String} p_sType String representing the name of the event 
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        */
-        function onMenuFocus(p_sType, p_aArgs) {
-    
-            var oItem = p_aArgs[0];
-    
-            if (oItem) {
-    
-                m_oFocusedMenuItem = oItem;
-            
-            }
-    
-        }
-    
-    
-        /**
-        * @method onMenuBlur
-        * @description "blur" event handler for a MenuItem instance.
-        * @private
-        * @param {String} p_sType String representing the name of the event  
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        */
-        function onMenuBlur(p_sType, p_aArgs) {
-    
-            m_oFocusedMenuItem = null;
-    
-        }
-    
-    
-    
-        /**
-        * @method onMenuVisibleConfigChange
-        * @description Event handler for when the "visible" configuration  
-        * property of a Menu instance changes.
-        * @private
-        * @param {String} p_sType String representing the name of the event  
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        */
-        function onMenuVisibleConfigChange(p_sType, p_aArgs) {
-    
-            var bVisible = p_aArgs[0],
-                sId = this.id;
-            
-            if (bVisible) {
-    
-                m_oVisibleMenus[sId] = this;
-                
-                m_oLogger.log(
-                            this + 
-                            " added to the collection of visible menus.");
-            
-            }
-            else if (m_oVisibleMenus[sId]) {
-            
-                delete m_oVisibleMenus[sId];
-                
-                m_oLogger.log( 
-                            this + 
-                            " removed from the collection of visible menus.");
-            
-            }
-        
-        }
-    
-    
-        /**
-        * @method onItemDestroy
-        * @description "destroy" event handler for a MenuItem instance.
-        * @private
-        * @param {String} p_sType String representing the name of the event  
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        */
-        function onItemDestroy(p_sType, p_aArgs) {
-    
-            removeItem(this);
-    
-        }
-
-    
-        function removeItem(p_oMenuItem) {
-
-            var sId = p_oMenuItem.id;
-    
-            if (sId && m_oItems[sId]) {
-    
-                if (m_oFocusedMenuItem == p_oMenuItem) {
-    
-                    m_oFocusedMenuItem = null;
-    
-                }
-    
-                delete m_oItems[sId];
-                
-                p_oMenuItem.destroyEvent.unsubscribe(onItemDestroy);
-    
-                m_oLogger.log(p_oMenuItem + " successfully unregistered.");
-    
-            }
-
-        }
-    
-    
-        /**
-        * @method onItemAdded
-        * @description "itemadded" event handler for a Menu instance.
-        * @private
-        * @param {String} p_sType String representing the name of the event  
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        */
-        function onItemAdded(p_sType, p_aArgs) {
-    
-            var oItem = p_aArgs[0],
-                sId;
-    
-            if (oItem instanceof YAHOO.widget.MenuItem) { 
-    
-                sId = oItem.id;
-        
-                if (!m_oItems[sId]) {
-            
-                    m_oItems[sId] = oItem;
-        
-                    oItem.destroyEvent.subscribe(onItemDestroy);
-        
-                    m_oLogger.log(oItem + " successfully registered.");
-        
-                }
-    
-            }
-        
-        }
-    
-    
-        return {
-    
-            // Privileged methods
-    
-    
-            /**
-            * @method addMenu
-            * @description Adds a menu to the collection of known menus.
-            * @param {YAHOO.widget.Menu} p_oMenu Object specifying the Menu  
-            * instance to be added.
-            */
-            addMenu: function (p_oMenu) {
-    
-                var oDoc;
-    
-                if (p_oMenu instanceof YAHOO.widget.Menu && p_oMenu.id && 
-                    !m_oMenus[p_oMenu.id]) {
-        
-                    m_oMenus[p_oMenu.id] = p_oMenu;
-                
-            
-                    if (!m_bInitializedEventHandlers) {
-            
-                        oDoc = document;
-                
-                        Event.on(oDoc, "mouseover", onDOMEvent, this, true);
-                        Event.on(oDoc, "mouseout", onDOMEvent, this, true);
-                        Event.on(oDoc, "mousedown", onDOMEvent, this, true);
-                        Event.on(oDoc, "mouseup", onDOMEvent, this, true);
-                        Event.on(oDoc, "click", onDOMEvent, this, true);
-                        Event.on(oDoc, "keydown", onDOMEvent, this, true);
-                        Event.on(oDoc, "keyup", onDOMEvent, this, true);
-                        Event.on(oDoc, "keypress", onDOMEvent, this, true);
-    
-    
-                        m_bInitializedEventHandlers = true;
-                        
-                        m_oLogger.log("DOM event handlers initialized.");
-            
-                    }
-            
-                    p_oMenu.cfg.subscribeToConfigEvent("visible", 
-                        onMenuVisibleConfigChange);
-
-                    p_oMenu.destroyEvent.subscribe(onMenuDestroy, p_oMenu, 
-                                            this);
-            
-                    p_oMenu.itemAddedEvent.subscribe(onItemAdded);
-                    p_oMenu.focusEvent.subscribe(onMenuFocus);
-                    p_oMenu.blurEvent.subscribe(onMenuBlur);
-        
-                    m_oLogger.log(p_oMenu + " successfully registered.");
-        
-                }
-        
-            },
-    
-        
-            /**
-            * @method removeMenu
-            * @description Removes a menu from the collection of known menus.
-            * @param {YAHOO.widget.Menu} p_oMenu Object specifying the Menu  
-            * instance to be removed.
-            */
-            removeMenu: function (p_oMenu) {
-    
-                var sId,
-                    aItems,
-                    i;
-        
-                if (p_oMenu) {
-    
-                    sId = p_oMenu.id;
-        
-                    if (m_oMenus[sId] == p_oMenu) {
-
-                        // Unregister each menu item
-
-                        aItems = p_oMenu.getItems();
-
-                        if (aItems && aItems.length > 0) {
-
-                            i = aItems.length - 1;
-
-                            do {
-
-                                removeItem(aItems[i]);
-
-                            }
-                            while (i--);
-
-                        }
-
-
-                        // Unregister the menu
-
-                        delete m_oMenus[sId];
-            
-                        m_oLogger.log(p_oMenu + " successfully unregistered.");
-        
-
-                        /*
-                             Unregister the menu from the collection of 
-                             visible menus
-                        */
-
-                        if (m_oVisibleMenus[sId] == p_oMenu) {
-            
-                            delete m_oVisibleMenus[sId];
-                            
-                            m_oLogger.log(p_oMenu + " unregistered from the" + 
-                                        " collection of visible menus.");
-       
-                        }
-
-
-                        // Unsubscribe event listeners
-
-                        if (p_oMenu.cfg) {
-
-                            p_oMenu.cfg.unsubscribeFromConfigEvent("visible", 
-                                onMenuVisibleConfigChange);
-                            
-                        }
-
-                        p_oMenu.destroyEvent.unsubscribe(onMenuDestroy, 
-                            p_oMenu);
-                
-                        p_oMenu.itemAddedEvent.unsubscribe(onItemAdded);
-                        p_oMenu.focusEvent.unsubscribe(onMenuFocus);
-                        p_oMenu.blurEvent.unsubscribe(onMenuBlur);
-
-                    }
-                
-                }
-    
-            },
-        
-        
-            /**
-            * @method hideVisible
-            * @description Hides all visible, dynamically positioned menus 
-            * (excluding instances of YAHOO.widget.MenuBar).
-            */
-            hideVisible: function () {
-        
-                var oMenu;
-        
-                for (var i in m_oVisibleMenus) {
-        
-                    if (YAHOO.lang.hasOwnProperty(m_oVisibleMenus, i)) {
-        
-                        oMenu = m_oVisibleMenus[i];
-        
-                        if (!(oMenu instanceof YAHOO.widget.MenuBar) && 
-                            oMenu.cfg.getProperty("position") == "dynamic") {
-        
-                            oMenu.hide();
-        
-                        }
-        
-                    }
-        
-                }        
-    
-            },
-
-
-            /**
-            * @method getVisible
-            * @description Returns a collection of all visible menus registered
-            * with the menu manger.
-            * @return {Array}
-            */
-            getVisible: function () {
-            
-                return m_oVisibleMenus;
-            
-            },
-
-    
-            /**
-            * @method getMenus
-            * @description Returns a collection of all menus registered with the 
-            * menu manger.
-            * @return {Array}
-            */
-            getMenus: function () {
-    
-                return m_oMenus;
-            
-            },
-    
-    
-            /**
-            * @method getMenu
-            * @description Returns a menu with the specified id.
-            * @param {String} p_sId String specifying the id of the 
-            * <code>&#60;div&#62;</code> element representing the menu to
-            * be retrieved.
-            * @return {YAHOO.widget.Menu}
-            */
-            getMenu: function (p_sId) {
-    
-                var oMenu = m_oMenus[p_sId];
-        
-                if (oMenu) {
-                
-                    return oMenu;
-                
-                }
-            
-            },
-    
-    
-            /**
-            * @method getMenuItem
-            * @description Returns a menu item with the specified id.
-            * @param {String} p_sId String specifying the id of the 
-            * <code>&#60;li&#62;</code> element representing the menu item to
-            * be retrieved.
-            * @return {YAHOO.widget.MenuItem}
-            */
-            getMenuItem: function (p_sId) {
-    
-                var oItem = m_oItems[p_sId];
-        
-                if (oItem) {
-                
-                    return oItem;
-                
-                }
-            
-            },
-
-
-            /**
-            * @method getMenuItemGroup
-            * @description Returns an array of menu item instances whose 
-            * corresponding <code>&#60;li&#62;</code> elements are child 
-            * nodes of the <code>&#60;ul&#62;</code> element with the 
-            * specified id.
-            * @param {String} p_sId String specifying the id of the 
-            * <code>&#60;ul&#62;</code> element representing the group of 
-            * menu items to be retrieved.
-            * @return {Array}
-            */
-            getMenuItemGroup: function (p_sId) {
-
-                var oUL = Dom.get(p_sId),
-                    aItems,
-                    oNode,
-                    oItem,
-                    sId;
-    
-
-                if (oUL && oUL.tagName && 
-                    oUL.tagName.toUpperCase() == "UL") {
-
-                    oNode = oUL.firstChild;
-
-                    if (oNode) {
-
-                        aItems = [];
-                        
-                        do {
-
-                            sId = oNode.id;
-
-                            if (sId) {
-                            
-                                oItem = this.getMenuItem(sId);
-                                
-                                if (oItem) {
-                                
-                                    aItems[aItems.length] = oItem;
-                                
-                                }
-                            
-                            }
-                        
-                        }
-                        while ((oNode = oNode.nextSibling));
-
-
-                        if (aItems.length > 0) {
-
-                            return aItems;
-                        
-                        }
-
-                    }
-                
-                }
-            
-            },
-
-    
-            /**
-            * @method getFocusedMenuItem
-            * @description Returns a reference to the menu item that currently 
-            * has focus.
-            * @return {YAHOO.widget.MenuItem}
-            */
-            getFocusedMenuItem: function () {
-    
-                return m_oFocusedMenuItem;
-    
-            },
-    
-    
-            /**
-            * @method getFocusedMenu
-            * @description Returns a reference to the menu that currently 
-            * has focus.
-            * @return {YAHOO.widget.Menu}
-            */
-            getFocusedMenu: function () {
-    
-                if (m_oFocusedMenuItem) {
-    
-                    return (m_oFocusedMenuItem.parent.getRoot());
-                
-                }
-    
-            },
-    
-        
-            /**
-            * @method toString
-            * @description Returns a string representing the menu manager.
-            * @return {String}
-            */
-            toString: function () {
-            
-                return "MenuManager";
-            
-            }
-    
-        };
-    
-    }();
-
-})();
-
-
-
-(function () {
-
-
-/**
-* The Menu class creates a container that holds a vertical list representing 
-* a set of options or commands.  Menu is the base class for all 
-* menu containers. 
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the menu.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source 
-* for the menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object 
-* specifying the <code>&#60;div&#62;</code> element of the menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-* level-one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement 
-* Object specifying the <code>&#60;select&#62;</code> element to be used as 
-* the data source for the menu.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu. See configuration class documentation for 
-* more details.
-* @namespace YAHOO.widget
-* @class Menu
-* @constructor
-* @extends YAHOO.widget.Overlay
-*/
-YAHOO.widget.Menu = function (p_oElement, p_oConfig) {
-
-    if (p_oConfig) {
-
-        this.parent = p_oConfig.parent;
-        this.lazyLoad = p_oConfig.lazyLoad || p_oConfig.lazyload;
-        this.itemData = p_oConfig.itemData || p_oConfig.itemdata;
-
-    }
-
-
-    YAHOO.widget.Menu.superclass.constructor.call(this, p_oElement, p_oConfig);
-
-};
-
-
-
-/**
-* @method checkPosition
-* @description Checks to make sure that the value of the "position" property 
-* is one of the supported strings. Returns true if the position is supported.
-* @private
-* @param {Object} p_sPosition String specifying the position of the menu.
-* @return {Boolean}
-*/
-function checkPosition(p_sPosition) {
-
-    if (typeof p_sPosition == "string") {
-
-        return ("dynamic,static".indexOf((p_sPosition.toLowerCase())) != -1);
-
-    }
-
-}
-
-
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Module = YAHOO.widget.Module,
-    Overlay = YAHOO.widget.Overlay,
-    Menu = YAHOO.widget.Menu,
-    MenuManager = YAHOO.widget.MenuManager,
-    CustomEvent = YAHOO.util.CustomEvent,
-    Lang = YAHOO.lang,
-    UA = YAHOO.env.ua,
-    
-    m_oShadowTemplate,
-
-    /**
-    * Constant representing the name of the Menu's events
-    * @property EVENT_TYPES
-    * @private
-    * @final
-    * @type Object
-    */
-    EVENT_TYPES = {
-    
-        "MOUSE_OVER": "mouseover",
-        "MOUSE_OUT": "mouseout",
-        "MOUSE_DOWN": "mousedown",
-        "MOUSE_UP": "mouseup",
-        "CLICK": "click",
-        "KEY_PRESS": "keypress",
-        "KEY_DOWN": "keydown",
-        "KEY_UP": "keyup",
-        "FOCUS": "focus",
-        "BLUR": "blur",
-        "ITEM_ADDED": "itemAdded",
-        "ITEM_REMOVED": "itemRemoved"
-    
-    },
-
-
-    /**
-    * Constant representing the Menu's configuration properties
-    * @property DEFAULT_CONFIG
-    * @private
-    * @final
-    * @type Object
-    */
-    DEFAULT_CONFIG = {
-
-        "VISIBLE": { 
-            key: "visible", 
-            value: false, 
-            validator: Lang.isBoolean
-        }, 
-    
-        "CONSTRAIN_TO_VIEWPORT": {
-            key: "constraintoviewport", 
-            value: true, 
-            validator: Lang.isBoolean, 
-            supercedes: ["iframe","x","y","xy"]
-        }, 
-    
-        "POSITION": { 
-            key: "position", 
-            value: "dynamic", 
-            validator: checkPosition, 
-            supercedes: ["visible", "iframe"]
-        }, 
-    
-        "SUBMENU_ALIGNMENT": { 
-            key: "submenualignment", 
-            value: ["tl","tr"],
-            suppressEvent: true
-        },
-    
-        "AUTO_SUBMENU_DISPLAY": { 
-            key: "autosubmenudisplay", 
-            value: true, 
-            validator: Lang.isBoolean,
-            suppressEvent: true
-        }, 
-    
-        "SHOW_DELAY": { 
-            key: "showdelay", 
-            value: 250, 
-            validator: Lang.isNumber, 
-            suppressEvent: true
-        }, 
-    
-        "HIDE_DELAY": { 
-            key: "hidedelay", 
-            value: 0, 
-            validator: Lang.isNumber, 
-            suppressEvent: true
-        }, 
-    
-        "SUBMENU_HIDE_DELAY": { 
-            key: "submenuhidedelay", 
-            value: 250, 
-            validator: Lang.isNumber,
-            suppressEvent: true
-        }, 
-    
-        "CLICK_TO_HIDE": { 
-            key: "clicktohide", 
-            value: true, 
-            validator: Lang.isBoolean,
-            suppressEvent: true
-        },
-    
-        "CONTAINER": { 
-            key: "container",
-            suppressEvent: true
-        }, 
-
-        "SCROLL_INCREMENT": { 
-            key: "scrollincrement", 
-            value: 1, 
-            validator: Lang.isNumber,
-            supercedes: ["maxheight"],
-            suppressEvent: true
-        },
-
-        "MIN_SCROLL_HEIGHT": { 
-            key: "minscrollheight", 
-            value: 90, 
-            validator: Lang.isNumber,
-            supercedes: ["maxheight"],
-            suppressEvent: true
-        },    
-    
-        "MAX_HEIGHT": { 
-            key: "maxheight", 
-            value: 0, 
-            validator: Lang.isNumber,
-            supercedes: ["iframe"],
-            suppressEvent: true
-        }, 
-    
-        "CLASS_NAME": { 
-            key: "classname", 
-            value: null, 
-            validator: Lang.isString,
-            suppressEvent: true
-        }, 
-    
-        "DISABLED": { 
-            key: "disabled", 
-            value: false, 
-            validator: Lang.isBoolean,
-            suppressEvent: true
-        }
-    
-    };
-
-
-
-YAHOO.lang.extend(Menu, Overlay, {
-
-
-// Constants
-
-
-/**
-* @property CSS_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the 
-* menu's <code>&#60;div&#62;</code> element.
-* @default "yuimenu"
-* @final
-* @type String
-*/
-CSS_CLASS_NAME: "yuimenu",
-
-
-/**
-* @property ITEM_TYPE
-* @description Object representing the type of menu item to instantiate and 
-* add when parsing the child nodes (either <code>&#60;li&#62;</code> element, 
-* <code>&#60;optgroup&#62;</code> element or <code>&#60;option&#62;</code>) 
-* of the menu's source HTML element.
-* @default YAHOO.widget.MenuItem
-* @final
-* @type YAHOO.widget.MenuItem
-*/
-ITEM_TYPE: null,
-
-
-/**
-* @property GROUP_TITLE_TAG_NAME
-* @description String representing the tagname of the HTML element used to 
-* title the menu's item groups.
-* @default H6
-* @final
-* @type String
-*/
-GROUP_TITLE_TAG_NAME: "h6",
-
-
-/**
-* @property OFF_SCREEN_POSITION
-* @description Array representing the default x and y position that a menu 
-* should have when it is positioned outside the viewport by the 
-* "poistionOffScreen" method.
-* @default [-10000, -10000]
-* @final
-* @type Array
-*/
-OFF_SCREEN_POSITION: [-10000, -10000],
-
-
-// Private properties
-
-
-/** 
-* @property _nHideDelayId
-* @description Number representing the time-out setting used to cancel the 
-* hiding of a menu.
-* @default null
-* @private
-* @type Number
-*/
-_nHideDelayId: null,
-
-
-/** 
-* @property _nShowDelayId
-* @description Number representing the time-out setting used to cancel the 
-* showing of a menu.
-* @default null
-* @private
-* @type Number
-*/
-_nShowDelayId: null,
-
-
-/** 
-* @property _nSubmenuHideDelayId
-* @description Number representing the time-out setting used to cancel the 
-* hiding of a submenu.
-* @default null
-* @private
-* @type Number
-*/
-_nSubmenuHideDelayId: null,
-
-
-/** 
-* @property _nBodyScrollId
-* @description Number representing the time-out setting used to cancel the 
-* scrolling of the menu's body element.
-* @default null
-* @private
-* @type Number
-*/
-_nBodyScrollId: null,
-
-
-/** 
-* @property _bHideDelayEventHandlersAssigned
-* @description Boolean indicating if the "mouseover" and "mouseout" event 
-* handlers used for hiding the menu via a call to "window.setTimeout" have 
-* already been assigned.
-* @default false
-* @private
-* @type Boolean
-*/
-_bHideDelayEventHandlersAssigned: false,
-
-
-/**
-* @property _bHandledMouseOverEvent
-* @description Boolean indicating the current state of the menu's 
-* "mouseover" event.
-* @default false
-* @private
-* @type Boolean
-*/
-_bHandledMouseOverEvent: false,
-
-
-/**
-* @property _bHandledMouseOutEvent
-* @description Boolean indicating the current state of the menu's
-* "mouseout" event.
-* @default false
-* @private
-* @type Boolean
-*/
-_bHandledMouseOutEvent: false,
-
-
-/**
-* @property _aGroupTitleElements
-* @description Array of HTML element used to title groups of menu items.
-* @default []
-* @private
-* @type Array
-*/
-_aGroupTitleElements: null,
-
-
-/**
-* @property _aItemGroups
-* @description Multi-dimensional Array representing the menu items as they
-* are grouped in the menu.
-* @default []
-* @private
-* @type Array
-*/
-_aItemGroups: null,
-
-
-/**
-* @property _aListElements
-* @description Array of <code>&#60;ul&#62;</code> elements, each of which is 
-* the parent node for each item's <code>&#60;li&#62;</code> element.
-* @default []
-* @private
-* @type Array
-*/
-_aListElements: null,
-
-
-/**
-* @property _nCurrentMouseX
-* @description The current x coordinate of the mouse inside the area of 
-* the menu.
-* @default 0
-* @private
-* @type Number
-*/
-_nCurrentMouseX: 0,
-
-
-/**
-* @property _bStopMouseEventHandlers
-* @description Stops "mouseover," "mouseout," and "mousemove" event handlers 
-* from executing.
-* @default false
-* @private
-* @type Boolean
-*/
-_bStopMouseEventHandlers: false,
-
-
-/**
-* @property _sClassName
-* @description The current value of the "classname" configuration attribute.
-* @default null
-* @private
-* @type String
-*/
-_sClassName: null,
-
-
-
-// Public properties
-
-
-/**
-* @property lazyLoad
-* @description Boolean indicating if the menu's "lazy load" feature is 
-* enabled.  If set to "true," initialization and rendering of the menu's 
-* items will be deferred until the first time it is made visible.  This 
-* property should be set via the constructor using the configuration 
-* object literal.
-* @default false
-* @type Boolean
-*/
-lazyLoad: false,
-
-
-/**
-* @property itemData
-* @description Array of items to be added to the menu.  The array can contain 
-* strings representing the text for each item to be created, object literals 
-* representing the menu item configuration properties, or MenuItem instances.  
-* This property should be set via the constructor using the configuration 
-* object literal.
-* @default null
-* @type Array
-*/
-itemData: null,
-
-
-/**
-* @property activeItem
-* @description Object reference to the item in the menu that has is selected.
-* @default null
-* @type YAHOO.widget.MenuItem
-*/
-activeItem: null,
-
-
-/**
-* @property parent
-* @description Object reference to the menu's parent menu or menu item.  
-* This property can be set via the constructor using the configuration 
-* object literal.
-* @default null
-* @type YAHOO.widget.MenuItem
-*/
-parent: null,
-
-
-/**
-* @property srcElement
-* @description Object reference to the HTML element (either 
-* <code>&#60;select&#62;</code> or <code>&#60;div&#62;</code>) used to 
-* create the menu.
-* @default null
-* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-* level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a 
-* href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
-* html#ID-22445964">HTMLDivElement</a>
-*/
-srcElement: null,
-
-
-
-// Events
-
-
-/**
-* @event mouseOverEvent
-* @description Fires when the mouse has entered the menu.  Passes back 
-* the DOM Event object as an argument.
-*/
-mouseOverEvent: null,
-
-
-/**
-* @event mouseOutEvent
-* @description Fires when the mouse has left the menu.  Passes back the DOM 
-* Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-mouseOutEvent: null,
-
-
-/**
-* @event mouseDownEvent
-* @description Fires when the user mouses down on the menu.  Passes back the 
-* DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-mouseDownEvent: null,
-
-
-/**
-* @event mouseUpEvent
-* @description Fires when the user releases a mouse button while the mouse is 
-* over the menu.  Passes back the DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-mouseUpEvent: null,
-
-
-/**
-* @event clickEvent
-* @description Fires when the user clicks the on the menu.  Passes back the 
-* DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-clickEvent: null,
-
-
-/**
-* @event keyPressEvent
-* @description Fires when the user presses an alphanumeric key when one of the
-* menu's items has focus.  Passes back the DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-keyPressEvent: null,
-
-
-/**
-* @event keyDownEvent
-* @description Fires when the user presses a key when one of the menu's items 
-* has focus.  Passes back the DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-keyDownEvent: null,
-
-
-/**
-* @event keyUpEvent
-* @description Fires when the user releases a key when one of the menu's items 
-* has focus.  Passes back the DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-keyUpEvent: null,
-
-
-/**
-* @event itemAddedEvent
-* @description Fires when an item is added to the menu.
-* @type YAHOO.util.CustomEvent
-*/
-itemAddedEvent: null,
-
-
-/**
-* @event itemRemovedEvent
-* @description Fires when an item is removed to the menu.
-* @type YAHOO.util.CustomEvent
-*/
-itemRemovedEvent: null,
-
-
-/**
-* @method init
-* @description The Menu class's initialization method. This method is 
-* automatically called by the constructor, and sets up all DOM references 
-* for pre-existing markup, and creates required markup if it is not 
-* already present.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the menu.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source 
-* for the menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object 
-* specifying the <code>&#60;div&#62;</code> element of the menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-* level-one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement 
-* Object specifying the <code>&#60;select&#62;</code> element to be used as 
-* the data source for the menu.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu. See configuration class documentation for 
-* more details.
-*/
-init: function (p_oElement, p_oConfig) {
-
-    this._aItemGroups = [];
-    this._aListElements = [];
-    this._aGroupTitleElements = [];
-
-    if (!this.ITEM_TYPE) {
-
-        this.ITEM_TYPE = YAHOO.widget.MenuItem;
-
-    }
-
-
-    var oElement;
-
-    if (typeof p_oElement == "string") {
-
-        oElement = document.getElementById(p_oElement);
-
-    }
-    else if (p_oElement.tagName) {
-
-        oElement = p_oElement;
-
-    }
-
-
-    if (oElement && oElement.tagName) {
-
-        switch(oElement.tagName.toUpperCase()) {
-    
-            case "DIV":
-
-                this.srcElement = oElement;
-
-                if (!oElement.id) {
-
-                    oElement.setAttribute("id", Dom.generateId());
-
-                }
-
-
-                /* 
-                    Note: we don't pass the user config in here yet 
-                    because we only want it executed once, at the lowest 
-                    subclass level.
-                */ 
-            
-                Menu.superclass.init.call(this, oElement);
-
-                this.beforeInitEvent.fire(Menu);
-
-                this.logger = new YAHOO.widget.LogWriter(this.toString());
-
-                this.logger.log("Source element: " + this.srcElement.tagName);
-    
-            break;
-    
-            case "SELECT":
-    
-                this.srcElement = oElement;
-
-    
-                /*
-                    The source element is not something that we can use 
-                    outright, so we need to create a new Overlay
-
-                    Note: we don't pass the user config in here yet 
-                    because we only want it executed once, at the lowest 
-                    subclass level.
-                */ 
-
-                Menu.superclass.init.call(this, Dom.generateId());
-
-                this.beforeInitEvent.fire(Menu);
-
-                this.logger = new YAHOO.widget.LogWriter(this.toString());
-
-                this.logger.log("Source element: " + this.srcElement.tagName);
-
-            break;
-
-        }
-
-    }
-    else {
-
-        /* 
-            Note: we don't pass the user config in here yet 
-            because we only want it executed once, at the lowest 
-            subclass level.
-        */ 
-    
-        Menu.superclass.init.call(this, p_oElement);
-
-        this.beforeInitEvent.fire(Menu);
-
-        this.logger = new YAHOO.widget.LogWriter(this.toString());
-
-        this.logger.log("No source element found.  " +
-            "Created element with id: " + this.id);
-
-    }
-
-
-    if (this.element) {
-
-        Dom.addClass(this.element, this.CSS_CLASS_NAME);
-
-
-        // Subscribe to Custom Events
-
-        this.initEvent.subscribe(this._onInit);
-        this.beforeRenderEvent.subscribe(this._onBeforeRender);
-        this.renderEvent.subscribe(this._onRender);
-        this.renderEvent.subscribe(this.onRender);
-        this.beforeShowEvent.subscribe(this._onBeforeShow);
-        this.hideEvent.subscribe(this.positionOffScreen);
-        this.showEvent.subscribe(this._onShow);
-        this.beforeHideEvent.subscribe(this._onBeforeHide);
-        this.mouseOverEvent.subscribe(this._onMouseOver);
-        this.mouseOutEvent.subscribe(this._onMouseOut);
-        this.clickEvent.subscribe(this._onClick);
-        this.keyDownEvent.subscribe(this._onKeyDown);
-        this.keyPressEvent.subscribe(this._onKeyPress);
-        
-
-        if (UA.gecko || UA.webkit) {
-
-            this.cfg.subscribeToConfigEvent("y", this._onYChange);
-
-        }
-
-
-        if (p_oConfig) {
-    
-            this.cfg.applyConfig(p_oConfig, true);
-    
-        }
-
-
-        // Register the Menu instance with the MenuManager
-
-        MenuManager.addMenu(this);
-        
-
-        this.initEvent.fire(Menu);
-
-    }
-
-},
-
-
-
-// Private methods
-
-
-/**
-* @method _initSubTree
-* @description Iterates the childNodes of the source element to find nodes 
-* used to instantiate menu and menu items.
-* @private
-*/
-_initSubTree: function () {
-
-    var oSrcElement = this.srcElement,
-        sSrcElementTagName,
-        nGroup,
-        sGroupTitleTagName,
-        oNode,
-        aListElements,
-        nListElements,
-        i;
-
-
-    if (oSrcElement) {
-    
-        sSrcElementTagName = 
-            (oSrcElement.tagName && oSrcElement.tagName.toUpperCase());
-
-
-        if (sSrcElementTagName == "DIV") {
-    
-            //  Populate the collection of item groups and item group titles
-    
-            oNode = this.body.firstChild;
-    
-
-            if (oNode) {
-    
-                nGroup = 0;
-                sGroupTitleTagName = this.GROUP_TITLE_TAG_NAME.toUpperCase();
-        
-                do {
-        
-
-                    if (oNode && oNode.tagName) {
-        
-                        switch (oNode.tagName.toUpperCase()) {
-        
-                            case sGroupTitleTagName:
-                            
-                                this._aGroupTitleElements[nGroup] = oNode;
-        
-                            break;
-        
-                            case "UL":
-        
-                                this._aListElements[nGroup] = oNode;
-                                this._aItemGroups[nGroup] = [];
-                                nGroup++;
-        
-                            break;
-        
-                        }
-                    
-                    }
-        
-                }
-                while ((oNode = oNode.nextSibling));
-        
-        
-                /*
-                    Apply the "first-of-type" class to the first UL to mimic 
-                    the "first-of-type" CSS3 psuedo class.
-                */
-        
-                if (this._aListElements[0]) {
-        
-                    Dom.addClass(this._aListElements[0], "first-of-type");
-        
-                }
-            
-            }
-    
-        }
-    
-    
-        oNode = null;
-    
-        this.logger.log("Searching DOM for items to initialize.");
-    
-
-        if (sSrcElementTagName) {
-    
-            switch (sSrcElementTagName) {
-        
-                case "DIV":
-
-                    aListElements = this._aListElements;
-                    nListElements = aListElements.length;
-        
-                    if (nListElements > 0) {
-        
-                        this.logger.log("Found " + nListElements + 
-                            " item groups to initialize.");
-        
-                        i = nListElements - 1;
-        
-                        do {
-        
-                            oNode = aListElements[i].firstChild;
-            
-                            if (oNode) {
-
-                                this.logger.log("Scanning " + 
-                                    aListElements[i].childNodes.length + 
-                                    " child nodes for items to initialize.");
-            
-                                do {
-                
-                                    if (oNode && oNode.tagName && 
-                                        oNode.tagName.toUpperCase() == "LI") {
-                
-                                        this.logger.log("Initializing " + 
-                                            oNode.tagName + " node.");
-        
-                                        this.addItem(new this.ITEM_TYPE(oNode, 
-                                                    { parent: this }), i);
-            
-                                    }
-                        
-                                }
-                                while ((oNode = oNode.nextSibling));
-                            
-                            }
-                    
-                        }
-                        while (i--);
-        
-                    }
-        
-                break;
-        
-                case "SELECT":
-        
-                    this.logger.log("Scanning " +  
-                        oSrcElement.childNodes.length + 
-                        " child nodes for items to initialize.");
-        
-                    oNode = oSrcElement.firstChild;
-        
-                    do {
-        
-                        if (oNode && oNode.tagName) {
-                        
-                            switch (oNode.tagName.toUpperCase()) {
-            
-                                case "OPTGROUP":
-                                case "OPTION":
-            
-                                    this.logger.log("Initializing " +  
-                                        oNode.tagName + " node.");
-            
-                                    this.addItem(
-                                            new this.ITEM_TYPE(
-                                                    oNode, 
-                                                    { parent: this }
-                                                )
-                                            );
-            
-                                break;
-            
-                            }
-    
-                        }
-        
-                    }
-                    while ((oNode = oNode.nextSibling));
-        
-                break;
-        
-            }
-    
-        }    
-    
-    }
-
-},
-
-
-/**
-* @method _getFirstEnabledItem
-* @description Returns the first enabled item in the menu.
-* @return {YAHOO.widget.MenuItem}
-* @private
-*/
-_getFirstEnabledItem: function () {
-
-    var aItems = this.getItems(),
-        nItems = aItems.length,
-        oItem;
-    
-    for(var i=0; i<nItems; i++) {
-
-        oItem = aItems[i];
-
-        if (oItem && !oItem.cfg.getProperty("disabled") && 
-            oItem.element.style.display != "none") {
-
-            return oItem;
-
-        }
-    
-    }
-    
-},
-
-
-/**
-* @method _addItemToGroup
-* @description Adds a menu item to a group.
-* @private
-* @param {Number} p_nGroupIndex Number indicating the group to which the 
-* item belongs.
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance to be added to the menu.
-* @param {String} p_oItem String specifying the text of the item to be added 
-* to the menu.
-* @param {Object} p_oItem Object literal containing a set of menu item 
-* configuration properties.
-* @param {Number} p_nItemIndex Optional. Number indicating the index at 
-* which the menu item should be added.
-* @return {YAHOO.widget.MenuItem}
-*/
-_addItemToGroup: function (p_nGroupIndex, p_oItem, p_nItemIndex) {
-
-    var oItem,
-        nGroupIndex,
-        aGroup,
-        oGroupItem,
-        bAppend,
-        oNextItemSibling,
-        nItemIndex;
-
-    function getNextItemSibling(p_aArray, p_nStartIndex) {
-
-        return (p_aArray[p_nStartIndex] || getNextItemSibling(p_aArray, 
-                (p_nStartIndex+1)));
-
-    }
-
-    if (p_oItem instanceof this.ITEM_TYPE) {
-
-        oItem = p_oItem;
-        oItem.parent = this;
-
-    }
-    else if (typeof p_oItem == "string") {
-
-        oItem = new this.ITEM_TYPE(p_oItem, { parent: this });
-    
-    }
-    else if (typeof p_oItem == "object") {
-
-        p_oItem.parent = this;
-
-        oItem = new this.ITEM_TYPE(p_oItem.text, p_oItem);
-
-    }
-
-
-    if (oItem) {
-
-        if (oItem.cfg.getProperty("selected")) {
-
-            this.activeItem = oItem;
-        
-        }
-
-
-        nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0;
-        aGroup = this._getItemGroup(nGroupIndex);
-
-
-
-        if (!aGroup) {
-
-            aGroup = this._createItemGroup(nGroupIndex);
-
-        }
-
-
-        if (typeof p_nItemIndex == "number") {
-
-            bAppend = (p_nItemIndex >= aGroup.length);            
-
-
-            if (aGroup[p_nItemIndex]) {
-    
-                aGroup.splice(p_nItemIndex, 0, oItem);
-    
-            }
-            else {
-    
-                aGroup[p_nItemIndex] = oItem;
-    
-            }
-
-
-            oGroupItem = aGroup[p_nItemIndex];
-
-            if (oGroupItem) {
-
-                if (bAppend && (!oGroupItem.element.parentNode || 
-                        oGroupItem.element.parentNode.nodeType == 11)) {
-        
-                    this._aListElements[nGroupIndex].appendChild(
-                        oGroupItem.element);
-    
-                }
-                else {
-    
-                    oNextItemSibling = getNextItemSibling(aGroup, 
-                        (p_nItemIndex+1));
-    
-                    if (oNextItemSibling && (!oGroupItem.element.parentNode || 
-                            oGroupItem.element.parentNode.nodeType == 11)) {
-            
-                        this._aListElements[nGroupIndex].insertBefore(
-                                oGroupItem.element, 
-                                oNextItemSibling.element);
-        
-                    }
-    
-                }
-    
-
-                oGroupItem.parent = this;
-        
-                this._subscribeToItemEvents(oGroupItem);
-    
-                this._configureSubmenu(oGroupItem);
-                
-                this._updateItemProperties(nGroupIndex);
-        
-                this.logger.log("Item inserted." + 
-                    " Text: " + oGroupItem.cfg.getProperty("text") + ", " + 
-                    " Index: " + oGroupItem.index + ", " + 
-                    " Group Index: " + oGroupItem.groupIndex);
-
-                this.itemAddedEvent.fire(oGroupItem);
-                this.changeContentEvent.fire();
-
-                return oGroupItem;
-    
-            }
-
-        }
-        else {
-    
-            nItemIndex = aGroup.length;
-    
-            aGroup[nItemIndex] = oItem;
-
-            oGroupItem = aGroup[nItemIndex];
-    
-
-            if (oGroupItem) {
-    
-                if (!Dom.isAncestor(this._aListElements[nGroupIndex], 
-                        oGroupItem.element)) {
-    
-                    this._aListElements[nGroupIndex].appendChild(
-                        oGroupItem.element);
-    
-                }
-    
-                oGroupItem.element.setAttribute("groupindex", nGroupIndex);
-                oGroupItem.element.setAttribute("index", nItemIndex);
-        
-                oGroupItem.parent = this;
-    
-                oGroupItem.index = nItemIndex;
-                oGroupItem.groupIndex = nGroupIndex;
-        
-                this._subscribeToItemEvents(oGroupItem);
-    
-                this._configureSubmenu(oGroupItem);
-    
-                if (nItemIndex === 0) {
-        
-                    Dom.addClass(oGroupItem.element, "first-of-type");
-        
-                }
-
-                this.logger.log("Item added." + 
-                    " Text: " + oGroupItem.cfg.getProperty("text") + ", " + 
-                    " Index: " + oGroupItem.index + ", " + 
-                    " Group Index: " + oGroupItem.groupIndex);
-        
-
-                this.itemAddedEvent.fire(oGroupItem);
-                this.changeContentEvent.fire();
-
-                return oGroupItem;
-    
-            }
-    
-        }
-
-    }
-    
-},
-
-
-/**
-* @method _removeItemFromGroupByIndex
-* @description Removes a menu item from a group by index.  Returns the menu 
-* item that was removed.
-* @private
-* @param {Number} p_nGroupIndex Number indicating the group to which the menu 
-* item belongs.
-* @param {Number} p_nItemIndex Number indicating the index of the menu item 
-* to be removed.
-* @return {YAHOO.widget.MenuItem}
-*/
-_removeItemFromGroupByIndex: function (p_nGroupIndex, p_nItemIndex) {
-
-    var nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0,
-        aGroup = this._getItemGroup(nGroupIndex),
-        aArray,
-        oItem,
-        oUL;
-
-    if (aGroup) {
-
-        aArray = aGroup.splice(p_nItemIndex, 1);
-        oItem = aArray[0];
-    
-        if (oItem) {
-    
-            // Update the index and className properties of each member        
-            
-            this._updateItemProperties(nGroupIndex);
-    
-            if (aGroup.length === 0) {
-    
-                // Remove the UL
-    
-                oUL = this._aListElements[nGroupIndex];
-    
-                if (this.body && oUL) {
-    
-                    this.body.removeChild(oUL);
-    
-                }
-    
-                // Remove the group from the array of items
-    
-                this._aItemGroups.splice(nGroupIndex, 1);
-    
-    
-                // Remove the UL from the array of ULs
-    
-                this._aListElements.splice(nGroupIndex, 1);
-    
-    
-                /*
-                     Assign the "first-of-type" class to the new first UL 
-                     in the collection
-                */
-    
-                oUL = this._aListElements[0];
-    
-                if (oUL) {
-    
-                    Dom.addClass(oUL, "first-of-type");
-    
-                }            
-    
-            }
-    
-
-            this.itemRemovedEvent.fire(oItem);
-            this.changeContentEvent.fire();
-
-
-            // Return a reference to the item that was removed
-        
-            return oItem;
-    
-        }
-
-    }
-    
-},
-
-
-/**
-* @method _removeItemFromGroupByValue
-* @description Removes a menu item from a group by reference.  Returns the 
-* menu item that was removed.
-* @private
-* @param {Number} p_nGroupIndex Number indicating the group to which the
-* menu item belongs.
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance to be removed.
-* @return {YAHOO.widget.MenuItem}
-*/    
-_removeItemFromGroupByValue: function (p_nGroupIndex, p_oItem) {
-
-    var aGroup = this._getItemGroup(p_nGroupIndex),
-        nItems,
-        nItemIndex,
-        i;
-
-    if (aGroup) {
-
-        nItems = aGroup.length;
-        nItemIndex = -1;
-    
-        if (nItems > 0) {
-    
-            i = nItems-1;
-        
-            do {
-        
-                if (aGroup[i] == p_oItem) {
-        
-                    nItemIndex = i;
-                    break;    
-        
-                }
-        
-            }
-            while(i--);
-        
-            if (nItemIndex > -1) {
-        
-                return (this._removeItemFromGroupByIndex(p_nGroupIndex, 
-                            nItemIndex));
-        
-            }
-    
-        }
-    
-    }
-
-},
-
-
-/**
-* @method _updateItemProperties
-* @description Updates the "index," "groupindex," and "className" properties 
-* of the menu items in the specified group. 
-* @private
-* @param {Number} p_nGroupIndex Number indicating the group of items to update.
-*/
-_updateItemProperties: function (p_nGroupIndex) {
-
-    var aGroup = this._getItemGroup(p_nGroupIndex),
-        nItems = aGroup.length,
-        oItem,
-        oLI,
-        i;
-
-
-    if (nItems > 0) {
-
-        i = nItems - 1;
-
-        // Update the index and className properties of each member
-    
-        do {
-
-            oItem = aGroup[i];
-
-            if (oItem) {
-    
-                oLI = oItem.element;
-
-                oItem.index = i;
-                oItem.groupIndex = p_nGroupIndex;
-
-                oLI.setAttribute("groupindex", p_nGroupIndex);
-                oLI.setAttribute("index", i);
-
-                Dom.removeClass(oLI, "first-of-type");
-
-            }
-    
-        }
-        while(i--);
-
-
-        if (oLI) {
-
-            Dom.addClass(oLI, "first-of-type");
-
-        }
-
-    }
-
-},
-
-
-/**
-* @method _createItemGroup
-* @description Creates a new menu item group (array) and its associated 
-* <code>&#60;ul&#62;</code> element. Returns an aray of menu item groups.
-* @private
-* @param {Number} p_nIndex Number indicating the group to create.
-* @return {Array}
-*/
-_createItemGroup: function (p_nIndex) {
-
-    var oUL;
-
-    if (!this._aItemGroups[p_nIndex]) {
-
-        this._aItemGroups[p_nIndex] = [];
-
-        oUL = document.createElement("ul");
-
-        this._aListElements[p_nIndex] = oUL;
-
-        return this._aItemGroups[p_nIndex];
-
-    }
-
-},
-
-
-/**
-* @method _getItemGroup
-* @description Returns the menu item group at the specified index.
-* @private
-* @param {Number} p_nIndex Number indicating the index of the menu item group 
-* to be retrieved.
-* @return {Array}
-*/
-_getItemGroup: function (p_nIndex) {
-
-    var nIndex = ((typeof p_nIndex == "number") ? p_nIndex : 0);
-
-    return this._aItemGroups[nIndex];
-
-},
-
-
-/**
-* @method _configureSubmenu
-* @description Subscribes the menu item's submenu to its parent menu's events.
-* @private
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance with the submenu to be configured.
-*/
-_configureSubmenu: function (p_oItem) {
-
-    var oSubmenu = p_oItem.cfg.getProperty("submenu");
-
-    if (oSubmenu) {
-            
-        /*
-            Listen for configuration changes to the parent menu 
-            so they they can be applied to the submenu.
-        */
-
-        this.cfg.configChangedEvent.subscribe(this._onParentMenuConfigChange, 
-                oSubmenu, true);
-
-        this.renderEvent.subscribe(this._onParentMenuRender, oSubmenu, true);
-
-        oSubmenu.beforeShowEvent.subscribe(this._onSubmenuBeforeShow);
-
-    }
-
-},
-
-
-
-
-/**
-* @method _subscribeToItemEvents
-* @description Subscribes a menu to a menu item's event.
-* @private
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance whose events should be subscribed to.
-*/
-_subscribeToItemEvents: function (p_oItem) {
-
-    p_oItem.focusEvent.subscribe(this._onMenuItemFocus);
-
-    p_oItem.blurEvent.subscribe(this._onMenuItemBlur);
-
-    p_oItem.destroyEvent.subscribe(this._onMenuItemDestroy, p_oItem, this);
-
-    p_oItem.cfg.configChangedEvent.subscribe(this._onMenuItemConfigChange,
-        p_oItem, this);
-
-},
-
-
-/**
-* @method _onVisibleChange
-* @description Change event handler for the the menu's "visible" configuration
-* property.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onVisibleChange: function (p_sType, p_aArgs) {
-
-    var bVisible = p_aArgs[0];
-    
-    if (bVisible) {
-
-        Dom.addClass(this.element, "visible");
-
-    }
-    else {
-
-        Dom.removeClass(this.element, "visible");
-
-    }
-
-},
-
-
-/**
-* @method _cancelHideDelay
-* @description Cancels the call to "hideMenu."
-* @private
-*/
-_cancelHideDelay: function () {
-
-    var oRoot = this.getRoot();
-
-    if (oRoot._nHideDelayId) {
-
-        window.clearTimeout(oRoot._nHideDelayId);
-
-    }
-
-},
-
-
-/**
-* @method _execHideDelay
-* @description Hides the menu after the number of milliseconds specified by 
-* the "hidedelay" configuration property.
-* @private
-*/
-_execHideDelay: function () {
-
-    this._cancelHideDelay();
-
-    var oRoot = this.getRoot(),
-        me = this;
-
-    function hideMenu() {
-    
-        if (oRoot.activeItem) {
-
-            oRoot.clearActiveItem();
-
-        }
-
-        if (oRoot == me && !(me instanceof YAHOO.widget.MenuBar) && 
-            me.cfg.getProperty("position") == "dynamic") {
-
-            me.hide();
-        
-        }
-    
-    }
-
-
-    oRoot._nHideDelayId = 
-        window.setTimeout(hideMenu, oRoot.cfg.getProperty("hidedelay"));
-
-},
-
-
-/**
-* @method _cancelShowDelay
-* @description Cancels the call to the "showMenu."
-* @private
-*/
-_cancelShowDelay: function () {
-
-    var oRoot = this.getRoot();
-
-    if (oRoot._nShowDelayId) {
-
-        window.clearTimeout(oRoot._nShowDelayId);
-
-    }
-
-},
-
-
-/**
-* @method _execShowDelay
-* @description Shows the menu after the number of milliseconds specified by 
-* the "showdelay" configuration property have ellapsed.
-* @private
-* @param {YAHOO.widget.Menu} p_oMenu Object specifying the menu that should 
-* be made visible.
-*/
-_execShowDelay: function (p_oMenu) {
-
-    var oRoot = this.getRoot();
-
-    function showMenu() {
-
-        if (p_oMenu.parent.cfg.getProperty("selected")) {
-
-            p_oMenu.show();
-
-        }
-
-    }
-
-
-    oRoot._nShowDelayId = 
-        window.setTimeout(showMenu, oRoot.cfg.getProperty("showdelay"));
-
-},
-
-
-/**
-* @method _execSubmenuHideDelay
-* @description Hides a submenu after the number of milliseconds specified by 
-* the "submenuhidedelay" configuration property have ellapsed.
-* @private
-* @param {YAHOO.widget.Menu} p_oSubmenu Object specifying the submenu that  
-* should be hidden.
-* @param {Number} p_nMouseX The x coordinate of the mouse when it left 
-* the specified submenu's parent menu item.
-* @param {Number} p_nHideDelay The number of milliseconds that should ellapse
-* before the submenu is hidden.
-*/
-_execSubmenuHideDelay: function (p_oSubmenu, p_nMouseX, p_nHideDelay) {
-
-    var me = this;
-
-    p_oSubmenu._nSubmenuHideDelayId = window.setTimeout(function () {
-
-        if (me._nCurrentMouseX > (p_nMouseX + 10)) {
-
-            p_oSubmenu._nSubmenuHideDelayId = window.setTimeout(function () {
-        
-                p_oSubmenu.hide();
-
-            }, p_nHideDelay);
-
-        }
-        else {
-
-            p_oSubmenu.hide();
-        
-        }
-
-    }, 50);
-
-},
-
-
-
-// Protected methods
-
-
-/**
-* @method _disableScrollHeader
-* @description Disables the header used for scrolling the body of the menu.
-* @protected
-*/
-_disableScrollHeader: function () {
-
-    if (!this._bHeaderDisabled) {
-
-        Dom.addClass(this.header, "topscrollbar_disabled");
-        this._bHeaderDisabled = true;
-
-    }
-
-},
-
-
-/**
-* @method _disableScrollFooter
-* @description Disables the footer used for scrolling the body of the menu.
-* @protected
-*/
-_disableScrollFooter: function () {
-
-    if (!this._bFooterDisabled) {
-
-        Dom.addClass(this.footer, "bottomscrollbar_disabled");
-        this._bFooterDisabled = true;
-
-    }
-
-},
-
-
-/**
-* @method _enableScrollHeader
-* @description Enables the header used for scrolling the body of the menu.
-* @protected
-*/
-_enableScrollHeader: function () {
-
-    if (this._bHeaderDisabled) {
-
-        Dom.removeClass(this.header, "topscrollbar_disabled");
-        this._bHeaderDisabled = false;
-
-    }
-
-},
-
-
-/**
-* @method _enableScrollFooter
-* @description Enables the footer used for scrolling the body of the menu.
-* @protected
-*/
-_enableScrollFooter: function () {
-
-    if (this._bFooterDisabled) {
-
-        Dom.removeClass(this.footer, "bottomscrollbar_disabled");
-        this._bFooterDisabled = false;
-
-    }
-
-},
-
-
-/**
-* @method _onMouseOver
-* @description "mouseover" event handler for the menu.
-* @protected
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onMouseOver: function (p_sType, p_aArgs) {
-
-    if (this._bStopMouseEventHandlers) {
-    
-        return false;
-    
-    }
-
-
-    var oEvent = p_aArgs[0],
-        oItem = p_aArgs[1],
-        oTarget = Event.getTarget(oEvent),
-        oParentMenu,
-        nShowDelay,
-        bShowDelay,
-        oActiveItem,
-        oItemCfg,
-        oSubmenu;
-
-
-    if (!this._bHandledMouseOverEvent && (oTarget == this.element || 
-        Dom.isAncestor(this.element, oTarget))) {
-
-        // Menu mouseover logic
-
-        this._nCurrentMouseX = 0;
-
-        Event.on(this.element, "mousemove", this._onMouseMove, this, true);
-
-
-               if (!Dom.isAncestor(oItem.element, Event.getRelatedTarget(oEvent))) {
-
-               this.clearActiveItem();
-        
-        }
-
-
-        if (this.parent && this._nSubmenuHideDelayId) {
-
-            window.clearTimeout(this._nSubmenuHideDelayId);
-
-            this.parent.cfg.setProperty("selected", true);
-
-            oParentMenu = this.parent.parent;
-
-            oParentMenu._bHandledMouseOutEvent = true;
-            oParentMenu._bHandledMouseOverEvent = false;
-
-        }
-
-
-        this._bHandledMouseOverEvent = true;
-        this._bHandledMouseOutEvent = false;
-    
-    }
-
-
-    if (oItem && !oItem.handledMouseOverEvent && 
-        !oItem.cfg.getProperty("disabled") && 
-        (oTarget == oItem.element || Dom.isAncestor(oItem.element, oTarget))) {
-
-        // Menu Item mouseover logic
-
-        nShowDelay = this.cfg.getProperty("showdelay");
-        bShowDelay = (nShowDelay > 0);
-
-
-        if (bShowDelay) {
-        
-            this._cancelShowDelay();
-        
-        }
-
-
-        oActiveItem = this.activeItem;
-    
-        if (oActiveItem) {
-    
-            oActiveItem.cfg.setProperty("selected", false);
-    
-        }
-
-
-        oItemCfg = oItem.cfg;
-    
-        // Select and focus the current menu item
-    
-        oItemCfg.setProperty("selected", true);
-
-
-        if (this.hasFocus()) {
-        
-            oItem.focus();
-        
-        }
-
-
-        if (this.cfg.getProperty("autosubmenudisplay")) {
-
-            // Show the submenu this menu item
-
-            oSubmenu = oItemCfg.getProperty("submenu");
-        
-            if (oSubmenu) {
-        
-                if (bShowDelay) {
-
-                    this._execShowDelay(oSubmenu);
-        
-                }
-                else {
-
-                    oSubmenu.show();
-
-                }
-
-            }
-
-        }                        
-
-        oItem.handledMouseOverEvent = true;
-        oItem.handledMouseOutEvent = false;
-
-    }
-
-},
-
-
-/**
-* @method _onMouseOut
-* @description "mouseout" event handler for the menu.
-* @protected
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onMouseOut: function (p_sType, p_aArgs) {
-
-    if (this._bStopMouseEventHandlers) {
-    
-        return false;
-    
-    }
-
-
-    var oEvent = p_aArgs[0],
-        oItem = p_aArgs[1],
-        oRelatedTarget = Event.getRelatedTarget(oEvent),
-        bMovingToSubmenu = false,
-        oItemCfg,
-        oSubmenu,
-        nSubmenuHideDelay,
-        nShowDelay;
-
-
-    if (oItem && !oItem.cfg.getProperty("disabled")) {
-
-        oItemCfg = oItem.cfg;
-        oSubmenu = oItemCfg.getProperty("submenu");
-
-
-        if (oSubmenu && (oRelatedTarget == oSubmenu.element ||
-                Dom.isAncestor(oSubmenu.element, oRelatedTarget))) {
-
-            bMovingToSubmenu = true;
-
-        }
-
-
-        if (!oItem.handledMouseOutEvent && ((oRelatedTarget != oItem.element &&  
-            !Dom.isAncestor(oItem.element, oRelatedTarget)) || 
-            bMovingToSubmenu)) {
-
-            // Menu Item mouseout logic
-
-            if (!bMovingToSubmenu) {
-
-                oItem.cfg.setProperty("selected", false);
-
-
-                if (oSubmenu) {
-
-                    nSubmenuHideDelay = 
-                        this.cfg.getProperty("submenuhidedelay");
-
-                    nShowDelay = this.cfg.getProperty("showdelay");
-
-                    if (!(this instanceof YAHOO.widget.MenuBar) && 
-                        nSubmenuHideDelay > 0 && 
-                        nShowDelay >= nSubmenuHideDelay) {
-
-                        this._execSubmenuHideDelay(oSubmenu, 
-                                Event.getPageX(oEvent),
-                                nSubmenuHideDelay);
-
-                    }
-                    else {
-
-                        oSubmenu.hide();
-
-                    }
-
-                }
-
-            }
-
-
-            oItem.handledMouseOutEvent = true;
-            oItem.handledMouseOverEvent = false;
-    
-        }
-
-    }
-
-
-    if (!this._bHandledMouseOutEvent && ((oRelatedTarget != this.element &&  
-        !Dom.isAncestor(this.element, oRelatedTarget)) || bMovingToSubmenu)) {
-
-        // Menu mouseout logic
-
-        Event.removeListener(this.element, "mousemove", this._onMouseMove);
-
-        this._nCurrentMouseX = Event.getPageX(oEvent);
-
-        this._bHandledMouseOutEvent = true;
-        this._bHandledMouseOverEvent = false;
-
-    }
-
-},
-
-
-/**
-* @method _onMouseMove
-* @description "click" event handler for the menu.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed 
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-_onMouseMove: function (p_oEvent, p_oMenu) {
-
-    if (this._bStopMouseEventHandlers) {
-    
-        return false;
-    
-    }
-
-    this._nCurrentMouseX = Event.getPageX(p_oEvent);
-
-},
-
-
-/**
-* @method _onClick
-* @description "click" event handler for the menu.
-* @protected
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onClick: function (p_sType, p_aArgs) {
-
-       var Event = YAHOO.util.Event,
-               Dom = YAHOO.util.Dom,
-               oEvent = p_aArgs[0],
-               oItem = p_aArgs[1],
-               oSubmenu,
-               bInMenuAnchor = false,
-               oRoot,
-               sId,
-               sURL,
-               nHashPos,
-               nLen;
-
-
-       if (oItem) {
-       
-               if (oItem.cfg.getProperty("disabled")) {
-               
-                       Event.preventDefault(oEvent);
-
-               }
-               else {
-
-                       oSubmenu = oItem.cfg.getProperty("submenu");
-       
-                       
-                       /*
-                                Check if the URL of the anchor is pointing to an element that is 
-                                a child of the menu.
-                       */
-                       
-                       sURL = oItem.cfg.getProperty("url");
-
-               
-                       if (sURL) {
-       
-                               nHashPos = sURL.indexOf("#");
-       
-                               nLen = sURL.length;
-       
-       
-                               if (nHashPos != -1) {
-       
-                                       sURL = sURL.substr(nHashPos, nLen);
-               
-                                       nLen = sURL.length;
-       
-       
-                                       if (nLen > 1) {
-       
-                                               sId = sURL.substr(1, nLen);
-       
-                                               bInMenuAnchor = Dom.isAncestor(this.element, sId);
-                                               
-                                       }
-                                       else if (nLen === 1) {
-       
-                                               bInMenuAnchor = true;
-                                       
-                                       }
-       
-                               }
-                       
-                       }
-
-
-       
-                       if (bInMenuAnchor && !oItem.cfg.getProperty("target")) {
-       
-                               Event.preventDefault(oEvent);
-       
-                               oItem.focus();
-                       
-                       }
-       
-       
-                       if (!oSubmenu) {
-       
-                               oRoot = this.getRoot();
-                               
-                               if (oRoot instanceof YAHOO.widget.MenuBar || 
-                                       oRoot.cfg.getProperty("position") == "static") {
-       
-                                       oRoot.clearActiveItem();
-       
-                               }
-                               else {
-       
-                                       oRoot.hide();
-                               
-                               }
-       
-                       }
-                       
-               }
-       
-       }
-
-},
-
-
-/**
-* @method _onKeyDown
-* @description "keydown" event handler for the menu.
-* @protected
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onKeyDown: function (p_sType, p_aArgs) {
-
-    var oEvent = p_aArgs[0],
-        oItem = p_aArgs[1],
-        me = this,
-        oSubmenu,
-        oItemCfg,
-        oParentItem,
-        oRoot,
-        oNextItem,
-        oBody,
-        nBodyScrollTop,
-        nBodyOffsetHeight,
-        aItems,
-        nItems,
-        nNextItemOffsetTop,
-        nScrollTarget,
-        oParentMenu;
-
-
-    /*
-        This function is called to prevent a bug in Firefox.  In Firefox,
-        moving a DOM element into a stationary mouse pointer will cause the 
-        browser to fire mouse events.  This can result in the menu mouse
-        event handlers being called uncessarily, especially when menus are 
-        moved into a stationary mouse pointer as a result of a 
-        key event handler.
-    */
-    function stopMouseEventHandlers() {
-
-        me._bStopMouseEventHandlers = true;
-        
-        window.setTimeout(function () {
-        
-            me._bStopMouseEventHandlers = false;
-        
-        }, 10);
-
-    }
-
-
-    if (oItem && !oItem.cfg.getProperty("disabled")) {
-
-        oItemCfg = oItem.cfg;
-        oParentItem = this.parent;
-
-        switch(oEvent.keyCode) {
-    
-            case 38:    // Up arrow
-            case 40:    // Down arrow
-    
-                oNextItem = (oEvent.keyCode == 38) ? 
-                    oItem.getPreviousEnabledSibling() : 
-                    oItem.getNextEnabledSibling();
-        
-                if (oNextItem) {
-
-                    this.clearActiveItem();
-
-                    oNextItem.cfg.setProperty("selected", true);
-                    oNextItem.focus();
-
-
-                    if (this.cfg.getProperty("maxheight") > 0) {
-
-                        oBody = this.body;
-                        nBodyScrollTop = oBody.scrollTop;
-                        nBodyOffsetHeight = oBody.offsetHeight;
-                        aItems = this.getItems();
-                        nItems = aItems.length - 1;
-                        nNextItemOffsetTop = oNextItem.element.offsetTop;
-
-
-                        if (oEvent.keyCode == 40 ) {    // Down
-                       
-                            if (nNextItemOffsetTop >= (nBodyOffsetHeight + nBodyScrollTop)) {
-
-                                oBody.scrollTop = nNextItemOffsetTop - nBodyOffsetHeight;
-
-                            }
-                            else if (nNextItemOffsetTop <= nBodyScrollTop) {
-                            
-                                oBody.scrollTop = 0;
-                            
-                            }
-
-
-                            if (oNextItem == aItems[nItems]) {
-
-                                oBody.scrollTop = oNextItem.element.offsetTop;
-
-                            }
-
-                        }
-                        else {  // Up
-
-                            if (nNextItemOffsetTop <= nBodyScrollTop) {
-
-                                oBody.scrollTop = nNextItemOffsetTop - oNextItem.element.offsetHeight;
-                            
-                            }
-                            else if (nNextItemOffsetTop >= (nBodyScrollTop + nBodyOffsetHeight)) {
-                            
-                                oBody.scrollTop = nNextItemOffsetTop;
-                            
-                            }
-
-
-                            if (oNextItem == aItems[0]) {
-                            
-                                oBody.scrollTop = 0;
-                            
-                            }
-
-                        }
-
-
-                        nBodyScrollTop = oBody.scrollTop;
-                        nScrollTarget = oBody.scrollHeight - oBody.offsetHeight;
-
-                        if (nBodyScrollTop === 0) {
-
-                            this._disableScrollHeader();
-                            this._enableScrollFooter();
-
-                        }
-                        else if (nBodyScrollTop == nScrollTarget) {
-
-                             this._enableScrollHeader();
-                             this._disableScrollFooter();
-
-                        }
-                        else {
-
-                            this._enableScrollHeader();
-                            this._enableScrollFooter();
-
-                        }
-
-                    }
-
-                }
-
-    
-                Event.preventDefault(oEvent);
-
-                stopMouseEventHandlers();
-    
-            break;
-            
-    
-            case 39:    // Right arrow
-    
-                oSubmenu = oItemCfg.getProperty("submenu");
-    
-                if (oSubmenu) {
-    
-                    if (!oItemCfg.getProperty("selected")) {
-        
-                        oItemCfg.setProperty("selected", true);
-        
-                    }
-    
-                    oSubmenu.show();
-                    oSubmenu.setInitialFocus();
-                    oSubmenu.setInitialSelection();
-    
-                }
-                else {
-    
-                    oRoot = this.getRoot();
-                    
-                    if (oRoot instanceof YAHOO.widget.MenuBar) {
-    
-                        oNextItem = oRoot.activeItem.getNextEnabledSibling();
-    
-                        if (oNextItem) {
-                        
-                            oRoot.clearActiveItem();
-    
-                            oNextItem.cfg.setProperty("selected", true);
-    
-                            oSubmenu = oNextItem.cfg.getProperty("submenu");
-    
-                            if (oSubmenu) {
-    
-                                oSubmenu.show();
-                            
-                            }
-    
-                            oNextItem.focus();
-                        
-                        }
-                    
-                    }
-                
-                }
-    
-    
-                Event.preventDefault(oEvent);
-
-                stopMouseEventHandlers();
-
-            break;
-    
-    
-            case 37:    // Left arrow
-    
-                if (oParentItem) {
-    
-                    oParentMenu = oParentItem.parent;
-    
-                    if (oParentMenu instanceof YAHOO.widget.MenuBar) {
-    
-                        oNextItem = 
-                            oParentMenu.activeItem.getPreviousEnabledSibling();
-    
-                        if (oNextItem) {
-                        
-                            oParentMenu.clearActiveItem();
-    
-                            oNextItem.cfg.setProperty("selected", true);
-    
-                            oSubmenu = oNextItem.cfg.getProperty("submenu");
-    
-                            if (oSubmenu) {
-                            
-                                oSubmenu.show();
-                            
-                            }
-    
-                            oNextItem.focus();
-                        
-                        } 
-                    
-                    }
-                    else {
-    
-                        this.hide();
-    
-                        oParentItem.focus();
-                    
-                    }
-    
-                }
-    
-                Event.preventDefault(oEvent);
-
-                stopMouseEventHandlers();
-
-            break;        
-    
-        }
-
-
-    }
-
-
-    if (oEvent.keyCode == 27) { // Esc key
-
-        if (this.cfg.getProperty("position") == "dynamic") {
-        
-            this.hide();
-
-            if (this.parent) {
-
-                this.parent.focus();
-            
-            }
-
-        }
-        else if (this.activeItem) {
-
-            oSubmenu = this.activeItem.cfg.getProperty("submenu");
-
-            if (oSubmenu && oSubmenu.cfg.getProperty("visible")) {
-            
-                oSubmenu.hide();
-                this.activeItem.focus();
-            
-            }
-            else {
-
-                this.activeItem.blur();
-                this.activeItem.cfg.setProperty("selected", false);
-        
-            }
-        
-        }
-
-
-        Event.preventDefault(oEvent);
-    
-    }
-    
-},
-
-
-/**
-* @method _onKeyPress
-* @description "keypress" event handler for a Menu instance.
-* @protected
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event 
-* was fired.
-*/
-_onKeyPress: function (p_sType, p_aArgs) {
-    
-    var oEvent = p_aArgs[0];
-
-
-    if (oEvent.keyCode == 40 || oEvent.keyCode == 38) {
-
-        Event.preventDefault(oEvent);
-
-    }
-
-},
-
-
-/**
-* @method _onYChange
-* @description "y" event handler for a Menu instance.
-* @protected
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event 
-* was fired.
-*/
-_onYChange: function (p_sType, p_aArgs) {
-
-    var oParent = this.parent,
-        nScrollTop,
-        oIFrame,
-        nY;
-
-
-    if (oParent) {
-
-        nScrollTop = oParent.parent.body.scrollTop;
-
-
-        if (nScrollTop > 0) {
-    
-            nY = (this.cfg.getProperty("y") - nScrollTop);
-            
-            Dom.setY(this.element, nY);
-
-            oIFrame = this.iframe;            
-    
-
-            if (oIFrame) {
-    
-                Dom.setY(oIFrame, nY);
-    
-            }
-            
-            this.cfg.setProperty("y", nY, true);
-        
-        }
-    
-    }
-
-},
-
-
-/**
-* @method _onScrollTargetMouseOver
-* @description "mouseover" event handler for the menu's "header" and "footer" 
-* elements.  Used to scroll the body of the menu up and down when the 
-* menu's "maxheight" configuration property is set to a value greater than 0.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed 
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-_onScrollTargetMouseOver: function (p_oEvent, p_oMenu) {
-
-    this._cancelHideDelay();
-
-    var oTarget = Event.getTarget(p_oEvent),
-        oBody = this.body,
-        me = this,
-        nScrollIncrement = this.cfg.getProperty("scrollincrement"),
-        nScrollTarget,
-        fnScrollFunction;
-
-
-    function scrollBodyDown() {
-
-        var nScrollTop = oBody.scrollTop;
-
-
-        if (nScrollTop < nScrollTarget) {
-
-            oBody.scrollTop = (nScrollTop + nScrollIncrement);
-
-            me._enableScrollHeader();
-
-        }
-        else {
-
-            oBody.scrollTop = nScrollTarget;
-            
-            window.clearInterval(me._nBodyScrollId);
-
-            me._disableScrollFooter();
-
-        }
-
-    }
-
-
-    function scrollBodyUp() {
-
-        var nScrollTop = oBody.scrollTop;
-
-
-        if (nScrollTop > 0) {
-
-            oBody.scrollTop = (nScrollTop - nScrollIncrement);
-
-            me._enableScrollFooter();
-
-        }
-        else {
-
-            oBody.scrollTop = 0;
-            
-            window.clearInterval(me._nBodyScrollId);
-
-            me._disableScrollHeader();
-
-        }
-
-    }
-
-    
-    if (Dom.hasClass(oTarget, "hd")) {
-
-        fnScrollFunction = scrollBodyUp;
-    
-    }
-    else {
-
-        nScrollTarget = oBody.scrollHeight - oBody.offsetHeight;
-
-        fnScrollFunction = scrollBodyDown;
-    
-    }
-
-
-    this._nBodyScrollId = window.setInterval(fnScrollFunction, 10);
-
-},
-
-
-/**
-* @method _onScrollTargetMouseOut
-* @description "mouseout" event handler for the menu's "header" and "footer" 
-* elements.  Used to stop scrolling the body of the menu up and down when the 
-* menu's "maxheight" configuration property is set to a value greater than 0.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed 
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-_onScrollTargetMouseOut: function (p_oEvent, p_oMenu) {
-
-    window.clearInterval(this._nBodyScrollId);
-
-    this._cancelHideDelay();
-
-},
-
-
-
-// Private methods
-
-
-/**
-* @method _onInit
-* @description "init" event handler for the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onInit: function (p_sType, p_aArgs) {
-
-    this.cfg.subscribeToConfigEvent("visible", this._onVisibleChange);
-
-    var bRootMenu = !this.parent,
-        bLazyLoad = this.lazyLoad;
-
-
-    /*
-        Automatically initialize a menu's subtree if:
-
-        1) This is the root menu and lazyload is off
-        
-        2) This is the root menu, lazyload is on, but the menu is 
-           already visible
-
-        3) This menu is a submenu and lazyload is off
-    */
-
-
-
-    if (((bRootMenu && !bLazyLoad) || 
-        (bRootMenu && (this.cfg.getProperty("visible") || 
-        this.cfg.getProperty("position") == "static")) || 
-        (!bRootMenu && !bLazyLoad)) && this.getItemGroups().length === 0) {
-
-        if (this.srcElement) {
-
-            this._initSubTree();
-        
-        }
-
-
-        if (this.itemData) {
-
-            this.addItems(this.itemData);
-
-        }
-    
-    }
-    else if (bLazyLoad) {
-
-        this.cfg.fireQueue();
-    
-    }
-
-},
-
-
-/**
-* @method _onBeforeRender
-* @description "beforerender" event handler for the menu.  Appends all of the 
-* <code>&#60;ul&#62;</code>, <code>&#60;li&#62;</code> and their accompanying 
-* title elements to the body element of the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onBeforeRender: function (p_sType, p_aArgs) {
-
-    var oEl = this.element,
-        nListElements = this._aListElements.length,
-        bFirstList = true,
-        i = 0,
-        oUL,
-        oGroupTitle;
-
-    if (nListElements > 0) {
-
-        do {
-
-            oUL = this._aListElements[i];
-
-            if (oUL) {
-
-                if (bFirstList) {
-        
-                    Dom.addClass(oUL, "first-of-type");
-                    bFirstList = false;
-        
-                }
-
-
-                if (!Dom.isAncestor(oEl, oUL)) {
-
-                    this.appendToBody(oUL);
-
-                }
-
-
-                oGroupTitle = this._aGroupTitleElements[i];
-
-                if (oGroupTitle) {
-
-                    if (!Dom.isAncestor(oEl, oGroupTitle)) {
-
-                        oUL.parentNode.insertBefore(oGroupTitle, oUL);
-
-                    }
-
-
-                    Dom.addClass(oUL, "hastitle");
-
-                }
-
-            }
-
-            i++;
-
-        }
-        while(i < nListElements);
-
-    }
-
-},
-
-
-/**
-* @method _onRender
-* @description "render" event handler for the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onRender: function (p_sType, p_aArgs) {
-
-    if (this.cfg.getProperty("position") == "dynamic") { 
-
-        if (!this.cfg.getProperty("visible")) {
-
-            this.positionOffScreen();
-
-        }
-    
-    }
-
-},
-
-
-
-
-
-/**
-* @method _onBeforeShow
-* @description "beforeshow" event handler for the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onBeforeShow: function (p_sType, p_aArgs) {
-
-    var nOptions,
-        n,
-        nViewportHeight,
-        oRegion,
-        oSrcElement;
-
-
-    if (this.lazyLoad && this.getItemGroups().length === 0) {
-
-        if (this.srcElement) {
-        
-            this._initSubTree();
-
-        }
-
-
-        if (this.itemData) {
-
-            if (this.parent && this.parent.parent && 
-                this.parent.parent.srcElement && 
-                this.parent.parent.srcElement.tagName.toUpperCase() == 
-                "SELECT") {
-
-                nOptions = this.itemData.length;
-    
-                for(n=0; n<nOptions; n++) {
-
-                    if (this.itemData[n].tagName) {
-
-                        this.addItem((new this.ITEM_TYPE(this.itemData[n])));
-    
-                    }
-    
-                }
-            
-            }
-            else {
-
-                this.addItems(this.itemData);
-            
-            }
-        
-        }
-
-
-        oSrcElement = this.srcElement;
-
-        if (oSrcElement) {
-
-            if (oSrcElement.tagName.toUpperCase() == "SELECT") {
-
-                if (Dom.inDocument(oSrcElement)) {
-
-                    this.render(oSrcElement.parentNode);
-                
-                }
-                else {
-                
-                    this.render(this.cfg.getProperty("container"));
-                
-                }
-
-            }
-            else {
-
-                this.render();
-
-            }
-
-        }
-        else {
-
-            if (this.parent) {
-
-                this.render(this.parent.element);            
-
-            }
-            else {
-
-                this.render(this.cfg.getProperty("container"));
-
-            }                
-
-        }
-
-    }
-
-
-    var nMaxHeight = this.cfg.getProperty("maxheight"),
-        nMinScrollHeight = this.cfg.getProperty("minscrollheight"),
-        bDynamicPos = this.cfg.getProperty("position") == "dynamic";
-
-
-    if (!this.parent && bDynamicPos) {
-
-        this.cfg.refireEvent("xy");
-   
-    }
-
-
-    function clearMaxHeight() {
-    
-        this.cfg.setProperty("maxheight", 0);
-    
-        this.hideEvent.unsubscribe(clearMaxHeight);
-    
-    }
-
-
-    if (!(this instanceof YAHOO.widget.MenuBar) && bDynamicPos) {
-
-
-        if (nMaxHeight === 0) {
-
-            nViewportHeight = Dom.getViewportHeight();
-    
-    
-            if (this.parent && 
-                this.parent.parent instanceof YAHOO.widget.MenuBar) {
-               
-                oRegion = YAHOO.util.Region.getRegion(this.parent.element);
-                
-                nViewportHeight = (nViewportHeight - oRegion.bottom);
-    
-            }
-    
-    
-            if (this.element.offsetHeight >= nViewportHeight) {
-    
-                nMaxHeight = (nViewportHeight - (Overlay.VIEWPORT_OFFSET * 2));
-
-                if (nMaxHeight < nMinScrollHeight) {
-
-                    nMaxHeight = nMinScrollHeight;
-                
-                }
-
-                this.cfg.setProperty("maxheight", nMaxHeight);
-
-                this.hideEvent.subscribe(clearMaxHeight);
-
-            }
-        
-        }
-
-    }
-
-},
-
-
-/**
-* @method _onShow
-* @description "show" event handler for the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onShow: function (p_sType, p_aArgs) {
-
-    var oParent = this.parent,
-        oParentMenu,
-        aParentAlignment,
-        aAlignment;
-
-
-    function disableAutoSubmenuDisplay(p_oEvent) {
-
-        var oTarget;
-
-        if (p_oEvent.type == "mousedown" || (p_oEvent.type == "keydown" && 
-            p_oEvent.keyCode == 27)) {
-
-            /*  
-                Set the "autosubmenudisplay" to "false" if the user
-                clicks outside the menu bar.
-            */
-
-            oTarget = Event.getTarget(p_oEvent);
-
-            if (oTarget != oParentMenu.element || 
-                !Dom.isAncestor(oParentMenu.element, oTarget)) {
-
-                oParentMenu.cfg.setProperty("autosubmenudisplay", false);
-
-                Event.removeListener(document, "mousedown", 
-                        disableAutoSubmenuDisplay);
-
-                Event.removeListener(document, "keydown", 
-                        disableAutoSubmenuDisplay);
-
-            }
-        
-        }
-
-    }
-
-
-    if (oParent) {
-
-        oParentMenu = oParent.parent;
-        aParentAlignment = oParentMenu.cfg.getProperty("submenualignment");
-        aAlignment = this.cfg.getProperty("submenualignment");
-
-
-        if ((aParentAlignment[0] != aAlignment[0]) &&
-            (aParentAlignment[1] != aAlignment[1])) {
-
-            this.cfg.setProperty("submenualignment", 
-                [aParentAlignment[0], aParentAlignment[1]]);
-        
-        }
-
-
-        if (!oParentMenu.cfg.getProperty("autosubmenudisplay") && 
-            (oParentMenu instanceof YAHOO.widget.MenuBar || 
-            oParentMenu.cfg.getProperty("position") == "static")) {
-
-            oParentMenu.cfg.setProperty("autosubmenudisplay", true);
-
-            Event.on(document, "mousedown", disableAutoSubmenuDisplay);                             
-            Event.on(document, "keydown", disableAutoSubmenuDisplay);
-
-        }
-
-    }
-
-},
-
-
-/**
-* @method _onBeforeHide
-* @description "beforehide" event handler for the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onBeforeHide: function (p_sType, p_aArgs) {
-
-    var oActiveItem = this.activeItem,
-        oConfig,
-        oSubmenu;
-
-    if (oActiveItem) {
-
-        oConfig = oActiveItem.cfg;
-
-        oConfig.setProperty("selected", false);
-
-        oSubmenu = oConfig.getProperty("submenu");
-
-        if (oSubmenu) {
-
-            oSubmenu.hide();
-
-        }
-
-    }
-
-    if (this.getRoot() == this) {
-
-        this.blur();
-    
-    }
-
-},
-
-
-/**
-* @method _onParentMenuConfigChange
-* @description "configchange" event handler for a submenu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that 
-* subscribed to the event.
-*/
-_onParentMenuConfigChange: function (p_sType, p_aArgs, p_oSubmenu) {
-    
-    var sPropertyName = p_aArgs[0][0],
-        oPropertyValue = p_aArgs[0][1];
-
-    switch(sPropertyName) {
-
-        case "iframe":
-        case "constraintoviewport":
-        case "hidedelay":
-        case "showdelay":
-        case "submenuhidedelay":
-        case "clicktohide":
-        case "effect":
-        case "classname":
-        case "scrollincrement":
-        case "minscrollheight":
-
-            p_oSubmenu.cfg.setProperty(sPropertyName, oPropertyValue);
-                
-        break;        
-        
-    }
-    
-},
-
-
-/**
-* @method _onParentMenuRender
-* @description "render" event handler for a submenu.  Renders a  
-* submenu in response to the firing of its parent's "render" event.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that 
-* subscribed to the event.
-*/
-_onParentMenuRender: function (p_sType, p_aArgs, p_oSubmenu) {
-
-    var oParentCfg = p_oSubmenu.parent.parent.cfg,
-
-        oConfig = {
-
-            constraintoviewport: oParentCfg.getProperty("constraintoviewport"),
-
-            xy: [0,0],
-
-            clicktohide: oParentCfg.getProperty("clicktohide"),
-                
-            effect: oParentCfg.getProperty("effect"),
-
-            showdelay: oParentCfg.getProperty("showdelay"),
-            
-            hidedelay: oParentCfg.getProperty("hidedelay"),
-
-            submenuhidedelay: oParentCfg.getProperty("submenuhidedelay"),
-
-            classname: oParentCfg.getProperty("classname"),
-            
-            scrollincrement: oParentCfg.getProperty("scrollincrement"),
-            
-            minscrollheight: oParentCfg.getProperty("minscrollheight"),
-            
-            iframe: oParentCfg.getProperty("iframe")
-
-        },
-        
-        oLI;
-
-
-    p_oSubmenu.cfg.applyConfig(oConfig);
-
-
-    if (!this.lazyLoad) {
-
-        oLI = this.parent.element;
-
-        if (this.element.parentNode == oLI) {
-    
-            this.render();
-    
-        }
-        else {
-
-            this.render(oLI);
-    
-        }
-
-    }
-    
-},
-
-
-/**
-* @method _onSubmenuBeforeShow
-* @description "beforeshow" event handler for a submenu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onSubmenuBeforeShow: function (p_sType, p_aArgs) {
-
-    var oParent = this.parent,
-        aAlignment = oParent.parent.cfg.getProperty("submenualignment");
-
-
-    if (!this.cfg.getProperty("context")) {
-    
-        this.cfg.setProperty("context", 
-            [oParent.element, aAlignment[0], aAlignment[1]]);
-
-    }
-    else {
-
-        this.align();
-    
-    }
-
-},
-
-
-/**
-* @method _onMenuItemFocus
-* @description "focus" event handler for the menu's items.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onMenuItemFocus: function (p_sType, p_aArgs) {
-
-    this.parent.focusEvent.fire(this);
-
-},
-
-
-/**
-* @method _onMenuItemBlur
-* @description "blur" event handler for the menu's items.
-* @private
-* @param {String} p_sType String representing the name of the event 
-* that was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onMenuItemBlur: function (p_sType, p_aArgs) {
-
-    this.parent.blurEvent.fire(this);
-
-},
-
-
-/**
-* @method _onMenuItemDestroy
-* @description "destroy" event handler for the menu's items.
-* @private
-* @param {String} p_sType String representing the name of the event 
-* that was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item 
-* that fired the event.
-*/
-_onMenuItemDestroy: function (p_sType, p_aArgs, p_oItem) {
-
-    this._removeItemFromGroupByValue(p_oItem.groupIndex, p_oItem);
-
-},
-
-
-/**
-* @method _onMenuItemConfigChange
-* @description "configchange" event handler for the menu's items.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item 
-* that fired the event.
-*/
-_onMenuItemConfigChange: function (p_sType, p_aArgs, p_oItem) {
-
-    var sPropertyName = p_aArgs[0][0],
-        oPropertyValue = p_aArgs[0][1],
-        oSubmenu;
-
-
-    switch(sPropertyName) {
-
-        case "selected":
-
-            if (oPropertyValue === true) {
-
-                this.activeItem = p_oItem;
-            
-            }
-
-        break;
-
-        case "submenu":
-
-            oSubmenu = p_aArgs[0][1];
-
-            if (oSubmenu) {
-
-                this._configureSubmenu(p_oItem);
-
-            }
-
-        break;
-
-    }
-
-},
-
-
-
-// Public event handlers for configuration properties
-
-
-/**
-* @method enforceConstraints
-* @description The default event handler executed when the moveEvent is fired,  
-* if the "constraintoviewport" configuration property is set to true.
-* @param {String} type The name of the event that was fired.
-* @param {Array} args Collection of arguments sent when the 
-* event was fired.
-* @param {Array} obj Array containing the current Menu instance 
-* and the item that fired the event.
-*/
-enforceConstraints: function (type, args, obj) {
-
-    var oParentMenuItem = this.parent,
-        nViewportOffset = Overlay.VIEWPORT_OFFSET,
-        oElement = this.element,
-        oConfig = this.cfg,
-        pos = args[0],
-        offsetHeight = oElement.offsetHeight,
-        offsetWidth = oElement.offsetWidth,
-        viewPortWidth = Dom.getViewportWidth(),
-        viewPortHeight = Dom.getViewportHeight(),
-        nPadding = (oParentMenuItem && 
-            oParentMenuItem.parent instanceof YAHOO.widget.MenuBar) ? 
-            0 : nViewportOffset,
-        aContext = oConfig.getProperty("context"),
-        oContextElement = aContext ? aContext[0] : null,
-        topConstraint,
-        leftConstraint,
-        bottomConstraint,
-        rightConstraint,
-        scrollX,
-        scrollY,
-        x,
-        y;
-    
-
-    if (offsetWidth < viewPortWidth) {
-
-        x = pos[0];
-        scrollX = Dom.getDocumentScrollLeft();
-        leftConstraint = scrollX + nPadding;
-        rightConstraint = scrollX + viewPortWidth - offsetWidth - nPadding;
-
-        if (x < nViewportOffset) {
-    
-            x = leftConstraint;
-    
-        } else if ((x + offsetWidth) > viewPortWidth) {
-    
-            if(oContextElement &&
-                ((x - oContextElement.offsetWidth) > offsetWidth)) {
-    
-                if (oParentMenuItem && 
-                    oParentMenuItem.parent instanceof YAHOO.widget.MenuBar) {
-    
-                    x = (x - (offsetWidth - oContextElement.offsetWidth));
-    
-                }
-                else {
-    
-                    x = (x - (oContextElement.offsetWidth + offsetWidth));
-    
-                }
-    
-            }
-            else {
-    
-                x = rightConstraint;
-    
-            }
-    
-        }
-    
-    }
-
-
-    if (offsetHeight < viewPortHeight) {
-
-        y = pos[1];
-        scrollY = Dom.getDocumentScrollTop();
-        topConstraint = scrollY + nPadding;
-        bottomConstraint = scrollY + viewPortHeight - offsetHeight - nPadding;
-
-
-
-        if (y < nViewportOffset) {
-    
-            y = topConstraint;
-    
-        } else if (y > bottomConstraint) {
-    
-            if (oContextElement && (y > offsetHeight)) {
-    
-                y = ((y + oContextElement.offsetHeight) - offsetHeight);
-    
-            }
-            else {
-    
-                y = bottomConstraint;
-                
-
-    
-            }
-    
-        }
-
-    }
-
-
-    oConfig.setProperty("x", x, true);
-    oConfig.setProperty("y", y, true);
-    oConfig.setProperty("xy", [x,y], true);
-
-},
-
-
-/**
-* @method configVisible
-* @description Event handler for when the "visible" configuration property 
-* the menu changes.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-configVisible: function (p_sType, p_aArgs, p_oMenu) {
-
-    var bVisible,
-        sDisplay;
-
-    if (this.cfg.getProperty("position") == "dynamic") {
-
-        Menu.superclass.configVisible.call(this, p_sType, p_aArgs, p_oMenu);
-
-    }
-    else {
-
-        bVisible = p_aArgs[0];
-        sDisplay = Dom.getStyle(this.element, "display");
-
-        Dom.setStyle(this.element, "visibility", "visible");
-
-        if (bVisible) {
-
-            if (sDisplay != "block") {
-                this.beforeShowEvent.fire();
-                Dom.setStyle(this.element, "display", "block");
-                this.showEvent.fire();
-            }
-        
-        }
-        else {
-
-                       if (sDisplay == "block") {
-                               this.beforeHideEvent.fire();
-                               Dom.setStyle(this.element, "display", "none");
-                               this.hideEvent.fire();
-                       }
-        
-        }
-
-    }
-
-},
-
-
-/**
-* @method configPosition
-* @description Event handler for when the "position" configuration property 
-* of the menu changes.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-configPosition: function (p_sType, p_aArgs, p_oMenu) {
-
-    var oElement = this.element,
-        sCSSPosition = p_aArgs[0] == "static" ? "static" : "absolute",
-        oCfg = this.cfg,
-        nZIndex;
-
-
-    Dom.setStyle(oElement, "position", sCSSPosition);
-
-
-    if (sCSSPosition == "static") {
-
-        // Statically positioned menus are visible by default
-        
-        Dom.setStyle(oElement, "display", "block");
-
-        oCfg.setProperty("visible", true);
-
-    }
-    else {
-
-        /*
-            Even though the "visible" property is queued to 
-            "false" by default, we need to set the "visibility" property to 
-            "hidden" since Overlay's "configVisible" implementation checks the 
-            element's "visibility" style property before deciding whether 
-            or not to show an Overlay instance.
-        */
-
-        Dom.setStyle(oElement, "visibility", "hidden");
-    
-    }
-
-
-    if (sCSSPosition == "absolute") {
-
-        nZIndex = oCfg.getProperty("zindex");
-
-        if (!nZIndex || nZIndex === 0) {
-
-            nZIndex = this.parent ? 
-                (this.parent.parent.cfg.getProperty("zindex") + 1) : 1;
-
-            oCfg.setProperty("zindex", nZIndex);
-
-        }
-
-    }
-
-},
-
-
-/**
-* @method configIframe
-* @description Event handler for when the "iframe" configuration property of 
-* the menu changes.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-configIframe: function (p_sType, p_aArgs, p_oMenu) {    
-
-    if (this.cfg.getProperty("position") == "dynamic") {
-
-        Menu.superclass.configIframe.call(this, p_sType, p_aArgs, p_oMenu);
-
-    }
-
-},
-
-
-/**
-* @method configHideDelay
-* @description Event handler for when the "hidedelay" configuration property 
-* of the menu changes.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-configHideDelay: function (p_sType, p_aArgs, p_oMenu) {
-
-    var nHideDelay = p_aArgs[0],
-        oMouseOutEvent = this.mouseOutEvent,
-        oMouseOverEvent = this.mouseOverEvent,
-        oKeyDownEvent = this.keyDownEvent;
-
-    if (nHideDelay > 0) {
-
-        /*
-            Only assign event handlers once. This way the user change 
-            the value for the hidedelay as many times as they want.
-        */
-
-        if (!this._bHideDelayEventHandlersAssigned) {
-
-            oMouseOutEvent.subscribe(this._execHideDelay);
-            oMouseOverEvent.subscribe(this._cancelHideDelay);
-            oKeyDownEvent.subscribe(this._cancelHideDelay);
-
-            this._bHideDelayEventHandlersAssigned = true;
-        
-        }
-
-    }
-    else {
-
-        oMouseOutEvent.unsubscribe(this._execHideDelay);
-        oMouseOverEvent.unsubscribe(this._cancelHideDelay);
-        oKeyDownEvent.unsubscribe(this._cancelHideDelay);
-
-        this._bHideDelayEventHandlersAssigned = false;
-
-    }
-
-},
-
-
-/**
-* @method configContainer
-* @description Event handler for when the "container" configuration property 
-* of the menu changes.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-configContainer: function (p_sType, p_aArgs, p_oMenu) {
-
-       var oElement = p_aArgs[0];
-
-       if (typeof oElement == 'string') {
-
-        this.cfg.setProperty("container", document.getElementById(oElement), 
-                true);
-
-       }
-
-},
-
-
-/**
-* @method _setMaxHeight
-* @description "renderEvent" handler used to defer the setting of the 
-* "maxheight" configuration property until the menu is rendered in lazy 
-* load scenarios.
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event 
-* was fired.
-* @param {Number} p_nMaxHeight Number representing the value to set for the 
-* "maxheight" configuration property.
-* @private
-*/
-_setMaxHeight: function (p_sType, p_aArgs, p_nMaxHeight) {
-
-    this.cfg.setProperty("maxheight", p_nMaxHeight);
-    this.renderEvent.unsubscribe(this._setMaxHeight);
-
-},
-
-
-/**
-* @method configMaxHeight
-* @description Event handler for when the "maxheight" configuration property of 
-* a Menu changes.
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event 
-* was fired.
-* @param {YAHOO.widget.Menu} p_oMenu The Menu instance fired
-* the event.
-*/
-configMaxHeight: function (p_sType, p_aArgs, p_oMenu) {
-
-    var nMaxHeight = p_aArgs[0],
-        oElement = this.element,
-        oBody = this.body,
-        oHeader = this.header,
-        oFooter = this.footer,
-        fnMouseOver = this._onScrollTargetMouseOver,
-        fnMouseOut = this._onScrollTargetMouseOut,
-        nMinScrollHeight = this.cfg.getProperty("minscrollheight"),
-        nHeight,
-        nOffsetWidth,
-        sWidth;
-
-
-    if (nMaxHeight !== 0 && nMaxHeight < nMinScrollHeight) {
-    
-        nMaxHeight = nMinScrollHeight;
-    
-    }
-
-
-    if (this.lazyLoad && !oBody) {
-
-        this.renderEvent.unsubscribe(this._setMaxHeight);
-    
-        if (nMaxHeight > 0) {
-
-            this.renderEvent.subscribe(this._setMaxHeight, nMaxHeight, this);
-
-        }
-
-        return;
-    
-    }
-
-
-    Dom.setStyle(oBody, "height", "");
-    Dom.removeClass(oBody, "yui-menu-body-scrolled");
-
-
-    /*
-        There is a bug in gecko-based browsers where an element whose 
-        "position" property is set to "absolute" and "overflow" property is set 
-        to "hidden" will not render at the correct width when its 
-        offsetParent's "position" property is also set to "absolute."  It is 
-        possible to work around this bug by specifying a value for the width 
-        property in addition to overflow.
-
-               In IE it is also necessary to give the Menu a width when the scrollbars are 
-               rendered to prevent the Menu from rendering with a width that is 100% of
-               the browser viewport.
-    */
-
-       var bSetWidth = ((UA.gecko && this.parent && this.parent.parent && 
-        this.parent.parent.cfg.getProperty("position") == "dynamic") || UA.ie);
-
-
-    if (bSetWidth) {
-
-               if (!this.cfg.getProperty("width")) {
-
-                       nOffsetWidth = oElement.offsetWidth;
-       
-                       /*
-                               Measuring the difference of the offsetWidth before and after
-                               setting the "width" style attribute allows us to compute the 
-                               about of padding and borders applied to the element, which in 
-                               turn allows us to set the "width" property correctly.
-                       */
-                       
-                       oElement.style.width = nOffsetWidth + "px";
-       
-                       sWidth = (nOffsetWidth - (oElement.offsetWidth - nOffsetWidth)) + "px";
-       
-                       this.cfg.setProperty("width", sWidth);
-               
-               }
-
-    }
-
-
-    if (!oHeader && !oFooter) {
-
-        this.setHeader("&#32;");
-        this.setFooter("&#32;");
-
-        oHeader = this.header;
-        oFooter = this.footer;
-
-        Dom.addClass(oHeader, "topscrollbar");
-        Dom.addClass(oFooter, "bottomscrollbar");
-        
-        oElement.insertBefore(oHeader, oBody);
-        oElement.appendChild(oFooter);
-    
-    }
-
-
-    nHeight = (nMaxHeight - (oHeader.offsetHeight + oHeader.offsetHeight));
-
-
-    if (nHeight > 0 && (oBody.offsetHeight > nMaxHeight)) {
-
-        Dom.addClass(oBody, "yui-menu-body-scrolled");
-        Dom.setStyle(oBody, "height", (nHeight + "px"));
-
-        Event.on(oHeader, "mouseover", fnMouseOver, this, true);
-        Event.on(oHeader, "mouseout", fnMouseOut, this, true);
-        Event.on(oFooter, "mouseover", fnMouseOver, this, true);
-        Event.on(oFooter, "mouseout", fnMouseOut, this, true);
-
-        this._disableScrollHeader();
-        this._enableScrollFooter();
-
-    }
-    else if (oHeader && oFooter) {
-
-               if (bSetWidth) {
-
-                       this.cfg.setProperty("width", "");
-               
-               }
-
-
-        this._enableScrollHeader();
-        this._enableScrollFooter();
-
-        Event.removeListener(oHeader, "mouseover", fnMouseOver);
-        Event.removeListener(oHeader, "mouseout", fnMouseOut);
-        Event.removeListener(oFooter, "mouseover", fnMouseOver);
-        Event.removeListener(oFooter, "mouseout", fnMouseOut);
-
-        oElement.removeChild(oHeader);
-        oElement.removeChild(oFooter);
-
-        this.header = null;
-        this.footer = null;
-    
-    }
-
-    this.cfg.refireEvent("iframe");
-
-},
-
-
-/**
-* @method configClassName
-* @description Event handler for when the "classname" configuration property of 
-* a menu changes.
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu The Menu instance fired the event.
-*/
-configClassName: function (p_sType, p_aArgs, p_oMenu) {
-
-    var sClassName = p_aArgs[0];
-
-    if (this._sClassName) {
-
-        Dom.removeClass(this.element, this._sClassName);
-
-    }
-
-    Dom.addClass(this.element, sClassName);
-    this._sClassName = sClassName;
-
-},
-
-
-/**
-* @method _onItemAdded
-* @description "itemadded" event handler for a Menu instance.
-* @private
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event 
-* was fired.
-*/
-_onItemAdded: function (p_sType, p_aArgs) {
-
-    var oItem = p_aArgs[0];
-    
-    if (oItem) {
-
-        oItem.cfg.setProperty("disabled", true);
-    
-    }
-
-},
-
-
-/**
-* @method configDisabled
-* @description Event handler for when the "disabled" configuration property of 
-* a menu changes.
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu The Menu instance fired the event.
-*/
-configDisabled: function (p_sType, p_aArgs, p_oMenu) {
-
-    var bDisabled = p_aArgs[0],
-        aItems = this.getItems(),
-        nItems,
-        i;
-
-    if (Lang.isArray(aItems)) {
-
-        nItems = aItems.length;
-    
-        if (nItems > 0) {
-        
-            i = nItems - 1;
-    
-            do {
-    
-                aItems[i].cfg.setProperty("disabled", bDisabled);
-            
-            }
-            while (i--);
-        
-        }
-
-
-        if (bDisabled) {
-
-            this.clearActiveItem(true);
-
-            Dom.addClass(this.element, "disabled");
-
-            this.itemAddedEvent.subscribe(this._onItemAdded);
-
-        }
-        else {
-
-            Dom.removeClass(this.element, "disabled");
-
-            this.itemAddedEvent.unsubscribe(this._onItemAdded);
-
-        }
-        
-    }
-
-},
-
-
-/**
-* @method onRender
-* @description "render" event handler for the menu.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-onRender: function (p_sType, p_aArgs) {
-
-    function sizeShadow() {
-
-        var oElement = this.element,
-            oShadow = this._shadow;
-    
-        if (oShadow && oElement) {
-
-            oShadow.style.width = (oElement.offsetWidth + 6) + "px";
-            oShadow.style.height = (oElement.offsetHeight + 1) + "px";
-            
-        }
-    
-    }
-
-
-    function replaceShadow() {
-
-        this.element.appendChild(this._shadow);
-
-    }
-
-
-    function addShadowVisibleClass() {
-    
-        Dom.addClass(this._shadow, "yui-menu-shadow-visible");
-    
-    }
-    
-
-    function removeShadowVisibleClass() {
-
-        Dom.removeClass(this._shadow, "yui-menu-shadow-visible");
-    
-    }
-
-
-    function createShadow() {
-
-        var oShadow = this._shadow,
-            oElement,
-            me;
-
-        if (!oShadow) {
-
-            oElement = this.element;
-            me = this;
-
-            if (!m_oShadowTemplate) {
-
-                m_oShadowTemplate = document.createElement("div");
-                m_oShadowTemplate.className = 
-                    "yui-menu-shadow yui-menu-shadow-visible";
-            
-            }
-
-            oShadow = m_oShadowTemplate.cloneNode(false);
-
-            oElement.appendChild(oShadow);
-            
-            this._shadow = oShadow;
-
-            this.beforeShowEvent.subscribe(addShadowVisibleClass);
-            this.beforeHideEvent.subscribe(removeShadowVisibleClass);
-
-            if (UA.ie) {
-        
-                /*
-                     Need to call sizeShadow & syncIframe via setTimeout for 
-                     IE 7 Quirks Mode and IE 6 Standards Mode and Quirks Mode 
-                     or the shadow and iframe shim will not be sized and 
-                     positioned properly.
-                */
-        
-                window.setTimeout(function () { 
-        
-                    sizeShadow.call(me); 
-                    me.syncIframe();
-        
-                }, 0);
-
-                this.cfg.subscribeToConfigEvent("width", sizeShadow);
-                this.cfg.subscribeToConfigEvent("height", sizeShadow);
-                this.cfg.subscribeToConfigEvent("maxheight", sizeShadow);
-                this.changeContentEvent.subscribe(sizeShadow);
-
-                Module.textResizeEvent.subscribe(sizeShadow, me, true);
-                
-                this.destroyEvent.subscribe(function () {
-                
-                    Module.textResizeEvent.unsubscribe(sizeShadow, me);
-                
-                });
-        
-            }
-
-            this.cfg.subscribeToConfigEvent("maxheight", replaceShadow);
-
-        }
-
-    }
-
-
-    function onBeforeShow() {
-    
-        createShadow.call(this);
-
-        this.beforeShowEvent.unsubscribe(onBeforeShow);
-    
-    }
-
-
-    if (this.cfg.getProperty("position") == "dynamic") {
-
-        if (this.cfg.getProperty("visible")) {
-
-            createShadow.call(this);
-        
-        }
-        else {
-
-            this.beforeShowEvent.subscribe(onBeforeShow);
-        
-        }
-    
-    }
-
-},
-
-
-// Public methods
-
-
-/**
-* @method initEvents
-* @description Initializes the custom events for the menu.
-*/
-initEvents: function () {
-
-       Menu.superclass.initEvents.call(this);
-
-    // Create custom events
-
-    var SIGNATURE = CustomEvent.LIST;
-
-    this.mouseOverEvent = this.createEvent(EVENT_TYPES.MOUSE_OVER);
-    this.mouseOverEvent.signature = SIGNATURE;
-
-    this.mouseOutEvent = this.createEvent(EVENT_TYPES.MOUSE_OUT);
-    this.mouseOutEvent.signature = SIGNATURE;
-    
-    this.mouseDownEvent = this.createEvent(EVENT_TYPES.MOUSE_DOWN);
-    this.mouseDownEvent.signature = SIGNATURE;
-
-    this.mouseUpEvent = this.createEvent(EVENT_TYPES.MOUSE_UP);
-    this.mouseUpEvent.signature = SIGNATURE;
-    
-    this.clickEvent = this.createEvent(EVENT_TYPES.CLICK);
-    this.clickEvent.signature = SIGNATURE;
-    
-    this.keyPressEvent = this.createEvent(EVENT_TYPES.KEY_PRESS);
-    this.keyPressEvent.signature = SIGNATURE;
-    
-    this.keyDownEvent = this.createEvent(EVENT_TYPES.KEY_DOWN);
-    this.keyDownEvent.signature = SIGNATURE;
-    
-    this.keyUpEvent = this.createEvent(EVENT_TYPES.KEY_UP);
-    this.keyUpEvent.signature = SIGNATURE;
-    
-    this.focusEvent = this.createEvent(EVENT_TYPES.FOCUS);
-    this.focusEvent.signature = SIGNATURE;
-    
-    this.blurEvent = this.createEvent(EVENT_TYPES.BLUR);
-    this.blurEvent.signature = SIGNATURE;
-    
-    this.itemAddedEvent = this.createEvent(EVENT_TYPES.ITEM_ADDED);
-    this.itemAddedEvent.signature = SIGNATURE;
-    
-    this.itemRemovedEvent = this.createEvent(EVENT_TYPES.ITEM_REMOVED);
-    this.itemRemovedEvent.signature = SIGNATURE;
-
-},
-
-
-/**
-* @method positionOffScreen
-* @description Positions the menu outside of the boundaries of the browser's 
-* viewport.  Called automatically when a menu is hidden to ensure that 
-* it doesn't force the browser to render uncessary scrollbars.
-*/
-positionOffScreen: function () {
-
-    var oIFrame = this.iframe,
-        aPos = this.OFF_SCREEN_POSITION;
-
-    Dom.setXY(this.element, aPos);
-    
-    if (oIFrame) {
-
-        Dom.setXY(oIFrame, aPos);
-    
-    }
-
-},
-
-
-/**
-* @method getRoot
-* @description Finds the menu's root menu.
-*/
-getRoot: function () {
-
-    var oItem = this.parent,
-        oParentMenu;
-
-    if (oItem) {
-
-        oParentMenu = oItem.parent;
-
-        return oParentMenu ? oParentMenu.getRoot() : this;
-
-    }
-    else {
-    
-        return this;
-    
-    }
-
-},
-
-
-/**
-* @method toString
-* @description Returns a string representing the menu.
-* @return {String}
-*/
-toString: function () {
-
-    var sReturnVal = "Menu",
-        sId = this.id;
-
-    if (sId) {
-
-        sReturnVal += (" " + sId);
-    
-    }
-
-    return sReturnVal;
-
-},
-
-
-/**
-* @method setItemGroupTitle
-* @description Sets the title of a group of menu items.
-* @param {String} p_sGroupTitle String specifying the title of the group.
-* @param {Number} p_nGroupIndex Optional. Number specifying the group to which
-* the title belongs.
-*/
-setItemGroupTitle: function (p_sGroupTitle, p_nGroupIndex) {
-
-    var nGroupIndex,
-        oTitle,
-        i,
-        nFirstIndex;
-        
-    if (typeof p_sGroupTitle == "string" && p_sGroupTitle.length > 0) {
-
-        nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0;
-        oTitle = this._aGroupTitleElements[nGroupIndex];
-
-
-        if (oTitle) {
-
-            oTitle.innerHTML = p_sGroupTitle;
-            
-        }
-        else {
-
-            oTitle = document.createElement(this.GROUP_TITLE_TAG_NAME);
-                    
-            oTitle.innerHTML = p_sGroupTitle;
-
-            this._aGroupTitleElements[nGroupIndex] = oTitle;
-
-        }
-
-
-        i = this._aGroupTitleElements.length - 1;
-
-        do {
-
-            if (this._aGroupTitleElements[i]) {
-
-                Dom.removeClass(this._aGroupTitleElements[i], "first-of-type");
-
-                nFirstIndex = i;
-
-            }
-
-        }
-        while(i--);
-
-
-        if (nFirstIndex !== null) {
-
-            Dom.addClass(this._aGroupTitleElements[nFirstIndex], 
-                "first-of-type");
-
-        }
-
-        this.changeContentEvent.fire();
-
-    }
-
-},
-
-
-
-/**
-* @method addItem
-* @description Appends an item to the menu.
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance to be added to the menu.
-* @param {String} p_oItem String specifying the text of the item to be added 
-* to the menu.
-* @param {Object} p_oItem Object literal containing a set of menu item 
-* configuration properties.
-* @param {Number} p_nGroupIndex Optional. Number indicating the group to
-* which the item belongs.
-* @return {YAHOO.widget.MenuItem}
-*/
-addItem: function (p_oItem, p_nGroupIndex) {
-
-    if (p_oItem) {
-
-        return this._addItemToGroup(p_nGroupIndex, p_oItem);
-        
-    }
-
-},
-
-
-/**
-* @method addItems
-* @description Adds an array of items to the menu.
-* @param {Array} p_aItems Array of items to be added to the menu.  The array 
-* can contain strings specifying the text for each item to be created, object
-* literals specifying each of the menu item configuration properties, 
-* or MenuItem instances.
-* @param {Number} p_nGroupIndex Optional. Number specifying the group to 
-* which the items belongs.
-* @return {Array}
-*/
-addItems: function (p_aItems, p_nGroupIndex) {
-
-    var nItems,
-        aItems,
-        oItem,
-        i;
-
-    if (Lang.isArray(p_aItems)) {
-
-        nItems = p_aItems.length;
-        aItems = [];
-
-        for(i=0; i<nItems; i++) {
-
-            oItem = p_aItems[i];
-
-            if (oItem) {
-
-                if (Lang.isArray(oItem)) {
-    
-                    aItems[aItems.length] = this.addItems(oItem, i);
-    
-                }
-                else {
-    
-                    aItems[aItems.length] = 
-                        this._addItemToGroup(p_nGroupIndex, oItem);
-                
-                }
-
-            }
-    
-        }
-
-
-        if (aItems.length) {
-        
-            return aItems;
-        
-        }
-
-    }
-
-},
-
-
-/**
-* @method insertItem
-* @description Inserts an item into the menu at the specified index.
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance to be added to the menu.
-* @param {String} p_oItem String specifying the text of the item to be added 
-* to the menu.
-* @param {Object} p_oItem Object literal containing a set of menu item 
-* configuration properties.
-* @param {Number} p_nItemIndex Number indicating the ordinal position at which
-* the item should be added.
-* @param {Number} p_nGroupIndex Optional. Number indicating the group to which 
-* the item belongs.
-* @return {YAHOO.widget.MenuItem}
-*/
-insertItem: function (p_oItem, p_nItemIndex, p_nGroupIndex) {
-    
-    if (p_oItem) {
-
-        return this._addItemToGroup(p_nGroupIndex, p_oItem, p_nItemIndex);
-
-    }
-
-},
-
-
-/**
-* @method removeItem
-* @description Removes the specified item from the menu.
-* @param {YAHOO.widget.MenuItem} p_oObject Object reference for the MenuItem 
-* instance to be removed from the menu.
-* @param {Number} p_oObject Number specifying the index of the item 
-* to be removed.
-* @param {Number} p_nGroupIndex Optional. Number specifying the group to 
-* which the item belongs.
-* @return {YAHOO.widget.MenuItem}
-*/
-removeItem: function (p_oObject, p_nGroupIndex) {
-
-    var oItem;
-    
-    if (typeof p_oObject != "undefined") {
-
-        if (p_oObject instanceof YAHOO.widget.MenuItem) {
-
-            oItem = this._removeItemFromGroupByValue(p_nGroupIndex, p_oObject);           
-
-        }
-        else if (typeof p_oObject == "number") {
-
-            oItem = this._removeItemFromGroupByIndex(p_nGroupIndex, p_oObject);
-
-        }
-
-        if (oItem) {
-
-            oItem.destroy();
-
-            this.logger.log("Item removed." + 
-                " Text: " + oItem.cfg.getProperty("text") + ", " + 
-                " Index: " + oItem.index + ", " + 
-                " Group Index: " + oItem.groupIndex);
-
-            return oItem;
-
-        }
-
-    }
-
-},
-
-
-/**
-* @method getItems
-* @description Returns an array of all of the items in the menu.
-* @return {Array}
-*/
-getItems: function () {
-
-    var aGroups = this._aItemGroups,
-        nGroups,
-        aItems = [];
-
-    if (Lang.isArray(aGroups)) {
-
-        nGroups = aGroups.length;
-
-        return ((nGroups == 1) ? aGroups[0] : 
-                    (Array.prototype.concat.apply(aItems, aGroups)));
-
-    }
-
-},
-
-
-/**
-* @method getItemGroups
-* @description Multi-dimensional Array representing the menu items as they 
-* are grouped in the menu.
-* @return {Array}
-*/        
-getItemGroups: function () {
-
-    return this._aItemGroups;
-
-},
-
-
-/**
-* @method getItem
-* @description Returns the item at the specified index.
-* @param {Number} p_nItemIndex Number indicating the ordinal position of the 
-* item to be retrieved.
-* @param {Number} p_nGroupIndex Optional. Number indicating the group to which 
-* the item belongs.
-* @return {YAHOO.widget.MenuItem}
-*/
-getItem: function (p_nItemIndex, p_nGroupIndex) {
-    
-    var aGroup;
-    
-    if (typeof p_nItemIndex == "number") {
-
-        aGroup = this._getItemGroup(p_nGroupIndex);
-
-        if (aGroup) {
-
-            return aGroup[p_nItemIndex];
-        
-        }
-
-    }
-    
-},
-
-
-/**
-* @method getSubmenus
-* @description Returns an array of all of the submenus that are immediate 
-* children of the menu.
-* @return {Array}
-*/
-getSubmenus: function () {
-
-    var aItems = this.getItems(),
-        nItems = aItems.length,
-        aSubmenus,
-        oSubmenu,
-        oItem,
-        i;
-
-
-    if (nItems > 0) {
-        
-        aSubmenus = [];
-
-        for(i=0; i<nItems; i++) {
-
-            oItem = aItems[i];
-            
-            if (oItem) {
-
-                oSubmenu = oItem.cfg.getProperty("submenu");
-                
-                if (oSubmenu) {
-
-                    aSubmenus[aSubmenus.length] = oSubmenu;
-
-                }
-            
-            }
-        
-        }
-    
-    }
-
-    return aSubmenus;
-
-},
-
-
-/**
-* @method clearContent
-* @description Removes all of the content from the menu, including the menu 
-* items, group titles, header and footer.
-*/
-clearContent: function () {
-
-    var aItems = this.getItems(),
-        nItems = aItems.length,
-        oElement = this.element,
-        oBody = this.body,
-        oHeader = this.header,
-        oFooter = this.footer,
-        oItem,
-        oSubmenu,
-        i;
-
-
-    if (nItems > 0) {
-
-        i = nItems - 1;
-
-        do {
-
-            oItem = aItems[i];
-
-            if (oItem) {
-
-                oSubmenu = oItem.cfg.getProperty("submenu");
-
-                if (oSubmenu) {
-
-                    this.cfg.configChangedEvent.unsubscribe(
-                        this._onParentMenuConfigChange, oSubmenu);
-
-                    this.renderEvent.unsubscribe(this._onParentMenuRender, 
-                        oSubmenu);
-
-                }
-                
-                this.removeItem(oItem);
-
-            }
-        
-        }
-        while(i--);
-
-    }
-
-
-    if (oHeader) {
-
-        Event.purgeElement(oHeader);
-        oElement.removeChild(oHeader);
-
-    }
-    
-
-    if (oFooter) {
-
-        Event.purgeElement(oFooter);
-        oElement.removeChild(oFooter);
-    }
-
-
-    if (oBody) {
-
-        Event.purgeElement(oBody);
-
-        oBody.innerHTML = "";
-
-    }
-
-    this.activeItem = null;
-
-    this._aItemGroups = [];
-    this._aListElements = [];
-    this._aGroupTitleElements = [];
-
-    this.cfg.setProperty("width", null);
-
-},
-
-
-/**
-* @method destroy
-* @description Removes the menu's <code>&#60;div&#62;</code> element 
-* (and accompanying child nodes) from the document.
-*/
-destroy: function () {
-
-    // Remove all items
-
-    this.clearContent();
-
-    this._aItemGroups = null;
-    this._aListElements = null;
-    this._aGroupTitleElements = null;
-
-
-    // Continue with the superclass implementation of this method
-
-    Menu.superclass.destroy.call(this);
-    
-    this.logger.log("Destroyed.");
-
-},
-
-
-/**
-* @method setInitialFocus
-* @description Sets focus to the menu's first enabled item.
-*/
-setInitialFocus: function () {
-
-    var oItem = this._getFirstEnabledItem();
-    
-    if (oItem) {
-
-        oItem.focus();
-
-    }
-    
-},
-
-
-/**
-* @method setInitialSelection
-* @description Sets the "selected" configuration property of the menu's first 
-* enabled item to "true."
-*/
-setInitialSelection: function () {
-
-    var oItem = this._getFirstEnabledItem();
-    
-    if (oItem) {
-    
-        oItem.cfg.setProperty("selected", true);
-    }        
-
-},
-
-
-/**
-* @method clearActiveItem
-* @description Sets the "selected" configuration property of the menu's active
-* item to "false" and hides the item's submenu.
-* @param {Boolean} p_bBlur Boolean indicating if the menu's active item 
-* should be blurred.  
-*/
-clearActiveItem: function (p_bBlur) {
-
-    if (this.cfg.getProperty("showdelay") > 0) {
-    
-        this._cancelShowDelay();
-    
-    }
-
-
-    var oActiveItem = this.activeItem,
-        oConfig,
-        oSubmenu;
-
-    if (oActiveItem) {
-
-        oConfig = oActiveItem.cfg;
-
-        if (p_bBlur) {
-
-            oActiveItem.blur();
-        
-        }
-
-        oConfig.setProperty("selected", false);
-
-        oSubmenu = oConfig.getProperty("submenu");
-
-        if (oSubmenu) {
-
-            oSubmenu.hide();
-
-        }
-
-        this.activeItem = null;            
-
-    }
-
-},
-
-
-/**
-* @method focus
-* @description Causes the menu to receive focus and fires the "focus" event.
-*/
-focus: function () {
-
-    if (!this.hasFocus()) {
-
-        this.setInitialFocus();
-    
-    }
-
-},
-
-
-/**
-* @method blur
-* @description Causes the menu to lose focus and fires the "blur" event.
-*/    
-blur: function () {
-
-    var oItem;
-
-    if (this.hasFocus()) {
-    
-        oItem = MenuManager.getFocusedMenuItem();
-        
-        if (oItem) {
-
-            oItem.blur();
-
-        }
-
-    }
-
-},
-
-
-/**
-* @method hasFocus
-* @description Returns a boolean indicating whether or not the menu has focus.
-* @return {Boolean}
-*/
-hasFocus: function () {
-
-    return (MenuManager.getFocusedMenu() == this.getRoot());
-
-},
-
-
-/**
-* Adds the specified CustomEvent subscriber to the menu and each of 
-* its submenus.
-* @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 p_override {boolean}  If true, the obj passed in becomes the 
-*                              execution scope of the listener
-*/
-subscribe: function () {
-
-    function onItemAdded(p_sType, p_aArgs, p_oObject) {
-
-        var oItem = p_aArgs[0],
-            oSubmenu = oItem.cfg.getProperty("submenu");
-
-        if (oSubmenu) {
-
-            oSubmenu.subscribe.apply(oSubmenu, p_oObject);
-
-        }
-    
-    }
-
-
-    function onSubmenuAdded(p_sType, p_aArgs, p_oObject) { 
-    
-        var oSubmenu = this.cfg.getProperty("submenu");
-        
-        if (oSubmenu) {
-
-            oSubmenu.subscribe.apply(oSubmenu, p_oObject);
-        
-        }
-    
-    }
-
-
-    Menu.superclass.subscribe.apply(this, arguments);
-    Menu.superclass.subscribe.call(this, "itemAdded", onItemAdded, arguments);
-
-
-    var aItems = this.getItems(),
-        nItems,
-        oItem,
-        oSubmenu,
-        i;
-        
-
-    if (aItems) {
-
-        nItems = aItems.length;
-        
-        if (nItems > 0) {
-        
-            i = nItems - 1;
-            
-            do {
-
-                oItem = aItems[i];
-                
-                oSubmenu = oItem.cfg.getProperty("submenu");
-                
-                if (oSubmenu) {
-                
-                    oSubmenu.subscribe.apply(oSubmenu, arguments);
-                
-                }
-                else {
-                
-                    oItem.cfg.subscribeToConfigEvent("submenu", onSubmenuAdded, arguments);
-                
-                }
-
-            }
-            while (i--);
-        
-        }
-
-    }
-
-},
-
-
-/**
-* @description Initializes the class's configurable properties which can be
-* changed using the menu's Config object ("cfg").
-* @method initDefaultConfig
-*/
-initDefaultConfig: function () {
-
-    Menu.superclass.initDefaultConfig.call(this);
-
-    var oConfig = this.cfg;
-
-
-    // Module documentation overrides
-
-    /**
-    * @config effect
-    * @description Object or array of objects representing the ContainerEffect 
-    * classes that are active for animating the container.  When set this 
-    * property is automatically applied to all submenus.
-    * @type Object
-    * @default null
-    */
-
-    // Overlay documentation overrides
-
-
-    /**
-    * @config x
-    * @description Number representing the absolute x-coordinate position of 
-    * the Menu.  This property is only applied when the "position" 
-    * configuration property is set to dynamic.
-    * @type Number
-    * @default null
-    */
-    
-
-    /**
-    * @config y
-    * @description Number representing the absolute y-coordinate position of 
-    * the Menu.  This property is only applied when the "position" 
-    * configuration property is set to dynamic.
-    * @type Number
-    * @default null
-    */
-
-
-    /**
-    * @description Array of the absolute x and y positions of the Menu.  This 
-    * property is only applied when the "position" configuration property is 
-    * set to dynamic.
-    * @config xy
-    * @type Number[]
-    * @default null
-    */
-    
-
-    /**
-    * @config context
-    * @description Array of context arguments for context-sensitive positioning.  
-    * The format is: [id or element, element corner, context corner]. 
-    * For example, setting this property to ["img1", "tl", "bl"] would 
-    * align the Mnu's top left corner to the context element's 
-    * bottom left corner.  This property is only applied when the "position" 
-    * configuration property is set to dynamic.
-    * @type Array
-    * @default null
-    */
-    
-    
-    /**
-    * @config fixedcenter
-    * @description Boolean indicating if the Menu should be anchored to the 
-    * center of the viewport.  This property is only applied when the 
-    * "position" configuration property is set to dynamic.
-    * @type Boolean
-    * @default false
-    */
-
-    
-    /**
-    * @config zindex
-    * @description Number representing the CSS z-index of the Menu.  This 
-    * property is only applied when the "position" configuration property is 
-    * set to dynamic.
-    * @type Number
-    * @default null
-    */
-    
-    
-    /**
-    * @config iframe
-    * @description Boolean indicating whether or not the Menu should 
-    * have an IFRAME shim; used to prevent SELECT elements from 
-    * poking through an Overlay instance in IE6.  When set to "true", 
-    * the iframe shim is created when the Menu instance is intially
-    * made visible.  This property is only applied when the "position" 
-    * configuration property is set to dynamic and is automatically applied 
-    * to all submenus.
-    * @type Boolean
-    * @default true for IE6 and below, false for all other browsers.
-    */
-
-
-       // Add configuration attributes
-
-    /*
-        Change the default value for the "visible" configuration 
-        property to "false" by re-adding the property.
-    */
-
-    /**
-    * @config visible
-    * @description Boolean indicating whether or not the menu is visible.  If 
-    * the menu's "position" configuration property is set to "dynamic" (the 
-    * default), this property toggles the menu's <code>&#60;div&#62;</code> 
-    * element's "visibility" style property between "visible" (true) or 
-    * "hidden" (false).  If the menu's "position" configuration property is 
-    * set to "static" this property toggles the menu's 
-    * <code>&#60;div&#62;</code> element's "display" style property 
-    * between "block" (true) or "none" (false).
-    * @default false
-    * @type Boolean
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.VISIBLE.key, 
-        {
-            handler: this.configVisible, 
-            value: DEFAULT_CONFIG.VISIBLE.value, 
-            validator: DEFAULT_CONFIG.VISIBLE.validator
-         }
-     );
-
-
-    /*
-        Change the default value for the "constraintoviewport" configuration 
-        property to "true" by re-adding the property.
-    */
-
-    /**
-    * @config constraintoviewport
-    * @description Boolean indicating if the menu will try to remain inside 
-    * the boundaries of the size of viewport.  This property is only applied 
-    * when the "position" configuration property is set to dynamic and is 
-    * automatically applied to all submenus.
-    * @default true
-    * @type Boolean
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.key, 
-        {
-            handler: this.configConstrainToViewport, 
-            value: DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.value, 
-            validator: DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.validator, 
-            supercedes: DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.supercedes 
-        } 
-    );
-
-
-    /**
-    * @config position
-    * @description String indicating how a menu should be positioned on the 
-    * screen.  Possible values are "static" and "dynamic."  Static menus are 
-    * visible by default and reside in the normal flow of the document 
-    * (CSS position: static).  Dynamic menus are hidden by default, reside 
-    * out of the normal flow of the document (CSS position: absolute), and 
-    * can overlay other elements on the screen.
-    * @default dynamic
-    * @type String
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.POSITION.key, 
-        {
-            handler: this.configPosition,
-            value: DEFAULT_CONFIG.POSITION.value, 
-            validator: DEFAULT_CONFIG.POSITION.validator,
-            supercedes: DEFAULT_CONFIG.POSITION.supercedes
-        }
-    );
-
-
-    /**
-    * @config submenualignment
-    * @description Array defining how submenus should be aligned to their 
-    * parent menu item. The format is: [itemCorner, submenuCorner]. By default
-    * a submenu's top left corner is aligned to its parent menu item's top 
-    * right corner.
-    * @default ["tl","tr"]
-    * @type Array
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.SUBMENU_ALIGNMENT.key, 
-        { 
-            value: DEFAULT_CONFIG.SUBMENU_ALIGNMENT.value,
-            suppressEvent: DEFAULT_CONFIG.SUBMENU_ALIGNMENT.suppressEvent
-        }
-    );
-
-
-    /**
-    * @config autosubmenudisplay
-    * @description Boolean indicating if submenus are automatically made 
-    * visible when the user mouses over the menu's items.
-    * @default true
-    * @type Boolean
-    */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.key, 
-          { 
-              value: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.value, 
-              validator: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.validator,
-              suppressEvent: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.suppressEvent
-       } 
-    );
-
-
-    /**
-    * @config showdelay
-    * @description Number indicating the time (in milliseconds) that should 
-    * expire before a submenu is made visible when the user mouses over 
-    * the menu's items.  This property is only applied when the "position" 
-    * configuration property is set to dynamic and is automatically applied 
-    * to all submenus.
-    * @default 250
-    * @type Number
-    */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.SHOW_DELAY.key, 
-          { 
-              value: DEFAULT_CONFIG.SHOW_DELAY.value, 
-              validator: DEFAULT_CONFIG.SHOW_DELAY.validator,
-              suppressEvent: DEFAULT_CONFIG.SHOW_DELAY.suppressEvent
-       } 
-    );
-
-
-    /**
-    * @config hidedelay
-    * @description Number indicating the time (in milliseconds) that should 
-    * expire before the menu is hidden.  This property is only applied when 
-    * the "position" configuration property is set to dynamic and is 
-    * automatically applied to all submenus.
-    * @default 0
-    * @type Number
-    */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.HIDE_DELAY.key, 
-          { 
-              handler: this.configHideDelay,
-              value: DEFAULT_CONFIG.HIDE_DELAY.value, 
-              validator: DEFAULT_CONFIG.HIDE_DELAY.validator, 
-              suppressEvent: DEFAULT_CONFIG.HIDE_DELAY.suppressEvent
-       } 
-    );
-
-
-    /**
-    * @config submenuhidedelay
-    * @description Number indicating the time (in milliseconds) that should 
-    * expire before a submenu is hidden when the user mouses out of a menu item 
-    * heading in the direction of a submenu.  The value must be greater than or 
-    * equal to the value specified for the "showdelay" configuration property.
-    * This property is only applied when the "position" configuration property 
-    * is set to dynamic and is automatically applied to all submenus.
-    * @default 250
-    * @type Number
-    */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.SUBMENU_HIDE_DELAY.key, 
-          { 
-              value: DEFAULT_CONFIG.SUBMENU_HIDE_DELAY.value, 
-              validator: DEFAULT_CONFIG.SUBMENU_HIDE_DELAY.validator,
-              suppressEvent: DEFAULT_CONFIG.SUBMENU_HIDE_DELAY.suppressEvent
-       } 
-    );
-
-
-    /**
-    * @config clicktohide
-    * @description Boolean indicating if the menu will automatically be 
-    * hidden if the user clicks outside of it.  This property is only 
-    * applied when the "position" configuration property is set to dynamic 
-    * and is automatically applied to all submenus.
-    * @default true
-    * @type Boolean
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.CLICK_TO_HIDE.key,
-        {
-            value: DEFAULT_CONFIG.CLICK_TO_HIDE.value,
-            validator: DEFAULT_CONFIG.CLICK_TO_HIDE.validator,
-            suppressEvent: DEFAULT_CONFIG.CLICK_TO_HIDE.suppressEvent
-        }
-    );
-
-
-       /**
-       * @config container
-       * @description HTML element reference or string specifying the id 
-       * attribute of the HTML element that the menu's markup should be 
-       * rendered into.
-       * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-       * level-one-html.html#ID-58190037">HTMLElement</a>|String
-       * @default document.body
-       */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.CONTAINER.key, 
-          { 
-              handler: this.configContainer,
-              value: document.body,
-           suppressEvent: DEFAULT_CONFIG.CONTAINER.suppressEvent
-       } 
-   );
-
-
-    /**
-    * @config scrollincrement
-    * @description Number used to control the scroll speed of a menu.  Used to 
-    * increment the "scrollTop" property of the menu's body by when a menu's 
-    * content is scrolling.  When set this property is automatically applied 
-    * to all submenus.
-    * @default 1
-    * @type Number
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.SCROLL_INCREMENT.key, 
-        { 
-            value: DEFAULT_CONFIG.SCROLL_INCREMENT.value, 
-            validator: DEFAULT_CONFIG.SCROLL_INCREMENT.validator,
-            supercedes: DEFAULT_CONFIG.SCROLL_INCREMENT.supercedes,
-            suppressEvent: DEFAULT_CONFIG.SCROLL_INCREMENT.suppressEvent
-        }
-    );
-
-
-    /**
-    * @config minscrollheight
-    * @description Number defining the minimum threshold for the "maxheight" 
-    * configuration property.  When set this property is automatically applied 
-    * to all submenus.
-    * @default 90
-    * @type Number
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.MIN_SCROLL_HEIGHT.key, 
-        { 
-            value: DEFAULT_CONFIG.MIN_SCROLL_HEIGHT.value, 
-            validator: DEFAULT_CONFIG.MIN_SCROLL_HEIGHT.validator,
-            supercedes: DEFAULT_CONFIG.MIN_SCROLL_HEIGHT.supercedes,
-            suppressEvent: DEFAULT_CONFIG.MIN_SCROLL_HEIGHT.suppressEvent
-        }
-    );
-
-
-    /**
-    * @config maxheight
-    * @description Number defining the maximum height (in pixels) for a menu's 
-    * body element (<code>&#60;div class="bd"&#60;</code>).  Once a menu's body 
-    * exceeds this height, the contents of the body are scrolled to maintain 
-    * this value.  This value cannot be set lower than the value of the 
-    * "minscrollheight" configuration property.
-    * @default 0
-    * @type Number
-    */
-    oConfig.addProperty(
-       DEFAULT_CONFIG.MAX_HEIGHT.key, 
-       {
-            handler: this.configMaxHeight,
-            value: DEFAULT_CONFIG.MAX_HEIGHT.value,
-            validator: DEFAULT_CONFIG.MAX_HEIGHT.validator,
-            suppressEvent: DEFAULT_CONFIG.MAX_HEIGHT.suppressEvent,
-            supercedes: DEFAULT_CONFIG.MAX_HEIGHT.supercedes            
-       } 
-    );
-
-
-    /**
-    * @config classname
-    * @description String representing the CSS class to be applied to the 
-    * menu's root <code>&#60;div&#62;</code> element.  The specified class(es)  
-    * are appended in addition to the default class as specified by the menu's
-    * CSS_CLASS_NAME constant. When set this property is automatically 
-    * applied to all submenus.
-    * @default null
-    * @type String
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.CLASS_NAME.key, 
-        { 
-            handler: this.configClassName,
-            value: DEFAULT_CONFIG.CLASS_NAME.value, 
-            validator: DEFAULT_CONFIG.CLASS_NAME.validator,
-            supercedes: DEFAULT_CONFIG.CLASS_NAME.supercedes      
-        }
-    );
-
-
-    /**
-    * @config disabled
-    * @description Boolean indicating if the menu should be disabled.  
-    * Disabling a menu disables each of its items.  (Disabled menu items are 
-    * dimmed and will not respond to user input or fire events.)  Disabled
-    * menus have a corresponding "disabled" CSS class applied to their root
-    * <code>&#60;div&#62;</code> element.
-    * @default false
-    * @type Boolean
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.DISABLED.key, 
-        { 
-            handler: this.configDisabled,
-            value: DEFAULT_CONFIG.DISABLED.value, 
-            validator: DEFAULT_CONFIG.DISABLED.validator,
-            suppressEvent: DEFAULT_CONFIG.DISABLED.suppressEvent
-        }
-    );
-
-}
-
-}); // END YAHOO.lang.extend
-
-})();
-
-
-
-(function () {
-
-
-/**
-* Creates an item for a menu.
-* 
-* @param {String} p_oObject String specifying the text of the menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying 
-* the <code>&#60;li&#62;</code> element of the menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object 
-* specifying the <code>&#60;optgroup&#62;</code> element of the menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object 
-* specifying the <code>&#60;option&#62;</code> element of the menu item.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu item. See configuration class documentation 
-* for more details.
-* @class MenuItem
-* @constructor
-*/
-YAHOO.widget.MenuItem = function (p_oObject, p_oConfig) {
-
-    if (p_oObject) {
-
-        if (p_oConfig) {
-    
-            this.parent = p_oConfig.parent;
-            this.value = p_oConfig.value;
-            this.id = p_oConfig.id;
-
-        }
-
-        this.init(p_oObject, p_oConfig);
-
-    }
-
-};
-
-
-var Dom = YAHOO.util.Dom,
-    Module = YAHOO.widget.Module,
-    Menu = YAHOO.widget.Menu,
-    MenuItem = YAHOO.widget.MenuItem,
-    CustomEvent = YAHOO.util.CustomEvent,
-    Lang = YAHOO.lang,
-
-    m_oMenuItemTemplate,
-
-    /**
-    * Constant representing the name of the MenuItem's events
-    * @property EVENT_TYPES
-    * @private
-    * @final
-    * @type Object
-    */
-    EVENT_TYPES = {
-    
-        "MOUSE_OVER": "mouseover",
-        "MOUSE_OUT": "mouseout",
-        "MOUSE_DOWN": "mousedown",
-        "MOUSE_UP": "mouseup",
-        "CLICK": "click",
-        "KEY_PRESS": "keypress",
-        "KEY_DOWN": "keydown",
-        "KEY_UP": "keyup",
-        "ITEM_ADDED": "itemAdded",
-        "ITEM_REMOVED": "itemRemoved",
-        "FOCUS": "focus",
-        "BLUR": "blur",
-        "DESTROY": "destroy"
-    
-    },
-
-    /**
-    * Constant representing the MenuItem's configuration properties
-    * @property DEFAULT_CONFIG
-    * @private
-    * @final
-    * @type Object
-    */
-    DEFAULT_CONFIG = {
-    
-        "TEXT": { 
-            key: "text", 
-            value: "", 
-            validator: Lang.isString, 
-            suppressEvent: true 
-        }, 
-    
-        "HELP_TEXT": { 
-            key: "helptext",
-            supercedes: ["text"], 
-            suppressEvent: true 
-        },
-    
-        "URL": { 
-            key: "url", 
-            value: "#", 
-            suppressEvent: true 
-        }, 
-    
-        "TARGET": { 
-            key: "target", 
-            suppressEvent: true 
-        }, 
-    
-        "EMPHASIS": { 
-            key: "emphasis", 
-            value: false, 
-            validator: Lang.isBoolean, 
-            suppressEvent: true, 
-            supercedes: ["text"]
-        }, 
-    
-        "STRONG_EMPHASIS": { 
-            key: "strongemphasis", 
-            value: false, 
-            validator: Lang.isBoolean, 
-            suppressEvent: true,
-            supercedes: ["text"]
-        },
-    
-        "CHECKED": { 
-            key: "checked", 
-            value: false, 
-            validator: Lang.isBoolean, 
-            suppressEvent: true, 
-            supercedes: ["disabled", "selected"]
-        }, 
-
-        "SUBMENU": { 
-            key: "submenu",
-            suppressEvent: true,
-            supercedes: ["disabled", "selected"]
-        },
-    
-        "DISABLED": { 
-            key: "disabled", 
-            value: false, 
-            validator: Lang.isBoolean, 
-            suppressEvent: true,
-            supercedes: ["text", "selected"]
-        },
-    
-        "SELECTED": { 
-            key: "selected", 
-            value: false, 
-            validator: Lang.isBoolean, 
-            suppressEvent: true
-        },
-    
-        "ONCLICK": { 
-            key: "onclick",
-            suppressEvent: true
-        },
-    
-        "CLASS_NAME": { 
-            key: "classname", 
-            value: null, 
-            validator: Lang.isString,
-            suppressEvent: true
-        }
-    
-    };
-
-
-MenuItem.prototype = {
-
-    /**
-    * @property CSS_CLASS_NAME
-    * @description String representing the CSS class(es) to be applied to the 
-    * <code>&#60;li&#62;</code> element of the menu item.
-    * @default "yuimenuitem"
-    * @final
-    * @type String
-    */
-    CSS_CLASS_NAME: "yuimenuitem",
-
-
-    /**
-    * @property CSS_LABEL_CLASS_NAME
-    * @description String representing the CSS class(es) to be applied to the 
-    * menu item's <code>&#60;a&#62;</code> element.
-    * @default "yuimenuitemlabel"
-    * @final
-    * @type String
-    */
-    CSS_LABEL_CLASS_NAME: "yuimenuitemlabel",
-
-
-    /**
-    * @property SUBMENU_TYPE
-    * @description Object representing the type of menu to instantiate and 
-    * add when parsing the child nodes of the menu item's source HTML element.
-    * @final
-    * @type YAHOO.widget.Menu
-    */
-    SUBMENU_TYPE: null,
-
-
-
-    // Private member variables
-    
-
-    /**
-    * @property _oAnchor
-    * @description Object reference to the menu item's 
-    * <code>&#60;a&#62;</code> element.
-    * @default null 
-    * @private
-    * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-48250443">HTMLAnchorElement</a>
-    */
-    _oAnchor: null,
-    
-    
-    /**
-    * @property _oHelpTextEM
-    * @description Object reference to the menu item's help text 
-    * <code>&#60;em&#62;</code> element.
-    * @default null
-    * @private
-    * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-58190037">HTMLElement</a>
-    */
-    _oHelpTextEM: null,
-    
-    
-    /**
-    * @property _oSubmenu
-    * @description Object reference to the menu item's submenu.
-    * @default null
-    * @private
-    * @type YAHOO.widget.Menu
-    */
-    _oSubmenu: null,
-
-
-    /** 
-    * @property _oOnclickAttributeValue
-    * @description Object reference to the menu item's current value for the 
-    * "onclick" configuration attribute.
-    * @default null
-    * @private
-    * @type Object
-    */
-    _oOnclickAttributeValue: null,
-
-
-    /**
-    * @property _sClassName
-    * @description The current value of the "classname" configuration attribute.
-    * @default null
-    * @private
-    * @type String
-    */
-    _sClassName: null,
-
-
-
-    // Public properties
-
-
-       /**
-    * @property constructor
-       * @description Object reference to the menu item's constructor function.
-    * @default YAHOO.widget.MenuItem
-       * @type YAHOO.widget.MenuItem
-       */
-       constructor: MenuItem,
-
-
-    /**
-    * @property index
-    * @description Number indicating the ordinal position of the menu item in 
-    * its group.
-    * @default null
-    * @type Number
-    */
-    index: null,
-
-
-    /**
-    * @property groupIndex
-    * @description Number indicating the index of the group to which the menu 
-    * item belongs.
-    * @default null
-    * @type Number
-    */
-    groupIndex: null,
-
-
-    /**
-    * @property parent
-    * @description Object reference to the menu item's parent menu.
-    * @default null
-    * @type YAHOO.widget.Menu
-    */
-    parent: null,
-
-
-    /**
-    * @property element
-    * @description Object reference to the menu item's 
-    * <code>&#60;li&#62;</code> element.
-    * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level
-    * -one-html.html#ID-74680021">HTMLLIElement</a>
-    * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-74680021">HTMLLIElement</a>
-    */
-    element: null,
-
-
-    /**
-    * @property srcElement
-    * @description Object reference to the HTML element (either 
-    * <code>&#60;li&#62;</code>, <code>&#60;optgroup&#62;</code> or 
-    * <code>&#60;option&#62;</code>) used create the menu item.
-    * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-    * level-one-html.html#ID-74680021">HTMLLIElement</a>|<a href="http://www.
-    * w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-38450247"
-    * >HTMLOptGroupElement</a>|<a href="http://www.w3.org/TR/2000/WD-DOM-
-    * Level-1-20000929/level-one-html.html#ID-70901257">HTMLOptionElement</a>
-    * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-74680021">HTMLLIElement</a>|<a href="http://www.w3.
-    * org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-38450247">
-    * HTMLOptGroupElement</a>|<a href="http://www.w3.org/TR/2000/WD-DOM-
-    * Level-1-20000929/level-one-html.html#ID-70901257">HTMLOptionElement</a>
-    */
-    srcElement: null,
-
-
-    /**
-    * @property value
-    * @description Object reference to the menu item's value.
-    * @default null
-    * @type Object
-    */
-    value: null,
-
-
-       /**
-    * @property browser
-    * @deprecated Use YAHOO.env.ua
-       * @description String representing the browser.
-       * @type String
-       */
-       browser: Module.prototype.browser,
-
-
-    /**
-    * @property id
-    * @description Id of the menu item's root <code>&#60;li&#62;</code> 
-    * element.  This property should be set via the constructor using the 
-    * configuration object literal.  If an id is not specified, then one will 
-    * be created using the "generateId" method of the Dom utility.
-    * @default null
-    * @type String
-    */
-    id: null,
-
-
-
-    // Events
-
-
-    /**
-    * @event destroyEvent
-    * @description Fires when the menu item's <code>&#60;li&#62;</code> 
-    * element is removed from its parent <code>&#60;ul&#62;</code> element.
-    * @type YAHOO.util.CustomEvent
-    */
-    destroyEvent: null,
-
-
-    /**
-    * @event mouseOverEvent
-    * @description Fires when the mouse has entered the menu item.  Passes 
-    * back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    mouseOverEvent: null,
-
-
-    /**
-    * @event mouseOutEvent
-    * @description Fires when the mouse has left the menu item.  Passes back 
-    * the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    mouseOutEvent: null,
-
-
-    /**
-    * @event mouseDownEvent
-    * @description Fires when the user mouses down on the menu item.  Passes 
-    * back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    mouseDownEvent: null,
-
-
-    /**
-    * @event mouseUpEvent
-    * @description Fires when the user releases a mouse button while the mouse 
-    * is over the menu item.  Passes back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    mouseUpEvent: null,
-
-
-    /**
-    * @event clickEvent
-    * @description Fires when the user clicks the on the menu item.  Passes 
-    * back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    clickEvent: null,
-
-
-    /**
-    * @event keyPressEvent
-    * @description Fires when the user presses an alphanumeric key when the 
-    * menu item has focus.  Passes back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    keyPressEvent: null,
-
-
-    /**
-    * @event keyDownEvent
-    * @description Fires when the user presses a key when the menu item has 
-    * focus.  Passes back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    keyDownEvent: null,
-
-
-    /**
-    * @event keyUpEvent
-    * @description Fires when the user releases a key when the menu item has 
-    * focus.  Passes back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    keyUpEvent: null,
-
-
-    /**
-    * @event focusEvent
-    * @description Fires when the menu item receives focus.
-    * @type YAHOO.util.CustomEvent
-    */
-    focusEvent: null,
-
-
-    /**
-    * @event blurEvent
-    * @description Fires when the menu item loses the input focus.
-    * @type YAHOO.util.CustomEvent
-    */
-    blurEvent: null,
-
-
-    /**
-    * @method init
-    * @description The MenuItem class's initialization method. This method is 
-    * automatically called by the constructor, and sets up all DOM references 
-    * for pre-existing markup, and creates required markup if it is not 
-    * already present.
-    * @param {String} p_oObject String specifying the text of the menu item.
-    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying 
-    * the <code>&#60;li&#62;</code> element of the menu item.
-    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object 
-    * specifying the <code>&#60;optgroup&#62;</code> element of the menu item.
-    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object 
-    * specifying the <code>&#60;option&#62;</code> element of the menu item.
-    * @param {Object} p_oConfig Optional. Object literal specifying the 
-    * configuration for the menu item. See configuration class documentation 
-    * for more details.
-    */
-    init: function (p_oObject, p_oConfig) {
-
-
-        if (!this.SUBMENU_TYPE) {
-    
-            this.SUBMENU_TYPE = Menu;
-    
-        }
-
-
-        // Create the config object
-
-        this.cfg = new YAHOO.util.Config(this);
-
-        this.initDefaultConfig();
-
-        var SIGNATURE = CustomEvent.LIST,
-            oConfig = this.cfg,
-            sURL = "#",
-            oAnchor,
-            sTarget,
-            sText,
-            sId;
-
-
-        if (Lang.isString(p_oObject)) {
-
-            this._createRootNodeStructure();
-
-            oConfig.queueProperty("text", p_oObject);
-
-        }
-        else if (p_oObject && p_oObject.tagName) {
-
-            switch(p_oObject.tagName.toUpperCase()) {
-
-                case "OPTION":
-
-                    this._createRootNodeStructure();
-
-                    oConfig.queueProperty("text", p_oObject.text);
-                    oConfig.queueProperty("disabled", p_oObject.disabled);
-
-                    this.value = p_oObject.value;
-
-                    this.srcElement = p_oObject;
-
-                break;
-
-                case "OPTGROUP":
-
-                    this._createRootNodeStructure();
-
-                    oConfig.queueProperty("text", p_oObject.label);
-                    oConfig.queueProperty("disabled", p_oObject.disabled);
-
-                    this.srcElement = p_oObject;
-
-                    this._initSubTree();
-
-                break;
-
-                case "LI":
-
-                    // Get the anchor node (if it exists)
-                    
-                    oAnchor = Dom.getFirstChild(p_oObject);
-
-
-                    // Capture the "text" and/or the "URL"
-
-                    if (oAnchor) {
-
-                        sURL = oAnchor.getAttribute("href");
-                        sTarget = oAnchor.getAttribute("target");
-
-                        sText = oAnchor.innerHTML;
-
-                    }
-
-                    this.srcElement = p_oObject;
-                    this.element = p_oObject;
-                    this._oAnchor = oAnchor;
-
-                    /*
-                        Set these properties silently to sync up the 
-                        configuration object without making changes to the 
-                        element's DOM
-                    */ 
-
-                    oConfig.setProperty("text", sText, true);
-                    oConfig.setProperty("url", sURL, true);
-                    oConfig.setProperty("target", sTarget, true);
-
-                    this._initSubTree();
-
-                break;
-
-            }            
-
-        }
-
-
-        if (this.element) {
-
-            sId = (this.srcElement || this.element).id;
-
-            if (!sId) {
-
-                sId = this.id || Dom.generateId();
-
-                this.element.id = sId;
-
-            }
-
-            this.id = sId;
-
-
-            Dom.addClass(this.element, this.CSS_CLASS_NAME);
-            Dom.addClass(this._oAnchor, this.CSS_LABEL_CLASS_NAME);
-
-
-            // Create custom events
-
-            this.mouseOverEvent = this.createEvent(EVENT_TYPES.MOUSE_OVER);
-            this.mouseOverEvent.signature = SIGNATURE;
-
-            this.mouseOutEvent = this.createEvent(EVENT_TYPES.MOUSE_OUT);
-            this.mouseOutEvent.signature = SIGNATURE;
-
-            this.mouseDownEvent = this.createEvent(EVENT_TYPES.MOUSE_DOWN);
-            this.mouseDownEvent.signature = SIGNATURE;
-
-            this.mouseUpEvent = this.createEvent(EVENT_TYPES.MOUSE_UP);
-            this.mouseUpEvent.signature = SIGNATURE;
-
-            this.clickEvent = this.createEvent(EVENT_TYPES.CLICK);
-            this.clickEvent.signature = SIGNATURE;
-
-            this.keyPressEvent = this.createEvent(EVENT_TYPES.KEY_PRESS);
-            this.keyPressEvent.signature = SIGNATURE;
-
-            this.keyDownEvent = this.createEvent(EVENT_TYPES.KEY_DOWN);
-            this.keyDownEvent.signature = SIGNATURE;
-
-            this.keyUpEvent = this.createEvent(EVENT_TYPES.KEY_UP);
-            this.keyUpEvent.signature = SIGNATURE;
-
-            this.focusEvent = this.createEvent(EVENT_TYPES.FOCUS);
-            this.focusEvent.signature = SIGNATURE;
-
-            this.blurEvent = this.createEvent(EVENT_TYPES.BLUR);
-            this.blurEvent.signature = SIGNATURE;
-
-            this.destroyEvent = this.createEvent(EVENT_TYPES.DESTROY);
-            this.destroyEvent.signature = SIGNATURE;
-
-            if (p_oConfig) {
-    
-                oConfig.applyConfig(p_oConfig);
-    
-            }        
-
-            oConfig.fireQueue();
-
-        }
-
-    },
-
-
-
-    // Private methods
-
-
-    /**
-    * @method _createRootNodeStructure
-    * @description Creates the core DOM structure for the menu item.
-    * @private
-    */
-    _createRootNodeStructure: function () {
-
-        var oElement,
-            oAnchor;
-
-        if (!m_oMenuItemTemplate) {
-
-            m_oMenuItemTemplate = document.createElement("li");
-            m_oMenuItemTemplate.innerHTML = "<a href=\"#\"></a>";
-
-        }
-
-        oElement = m_oMenuItemTemplate.cloneNode(true);
-        oElement.className = this.CSS_CLASS_NAME;
-
-        oAnchor = oElement.firstChild;
-        oAnchor.className = this.CSS_LABEL_CLASS_NAME;
-        
-        this.element = oElement;
-        this._oAnchor = oAnchor;
-
-    },
-
-
-    /**
-    * @method _initSubTree
-    * @description Iterates the source element's childNodes collection and uses 
-    * the child nodes to instantiate other menus.
-    * @private
-    */
-    _initSubTree: function () {
-
-        var oSrcEl = this.srcElement,
-            oConfig = this.cfg,
-            oNode,
-            aOptions,
-            nOptions,
-            oMenu,
-            n;
-
-
-        if (oSrcEl.childNodes.length > 0) {
-
-            if (this.parent.lazyLoad && this.parent.srcElement && 
-                this.parent.srcElement.tagName.toUpperCase() == "SELECT") {
-
-                oConfig.setProperty(
-                        "submenu", 
-                        { id: Dom.generateId(), itemdata: oSrcEl.childNodes }
-                    );
-
-            }
-            else {
-
-                oNode = oSrcEl.firstChild;
-                aOptions = [];
-    
-                do {
-    
-                    if (oNode && oNode.tagName) {
-    
-                        switch(oNode.tagName.toUpperCase()) {
-                
-                            case "DIV":
-                
-                                oConfig.setProperty("submenu", oNode);
-                
-                            break;
-         
-                            case "OPTION":
-        
-                                aOptions[aOptions.length] = oNode;
-        
-                            break;
-               
-                        }
-                    
-                    }
-                
-                }        
-                while((oNode = oNode.nextSibling));
-    
-    
-                nOptions = aOptions.length;
-    
-                if (nOptions > 0) {
-    
-                    oMenu = new this.SUBMENU_TYPE(Dom.generateId());
-                    
-                    oConfig.setProperty("submenu", oMenu);
-    
-                    for(n=0; n<nOptions; n++) {
-        
-                        oMenu.addItem((new oMenu.ITEM_TYPE(aOptions[n])));
-        
-                    }
-        
-                }
-            
-            }
-
-        }
-
-    },
-
-
-
-    // Event handlers for configuration properties
-
-
-    /**
-    * @method configText
-    * @description Event handler for when the "text" configuration property of 
-    * the menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */
-    configText: function (p_sType, p_aArgs, p_oItem) {
-
-        var sText = p_aArgs[0],
-            oConfig = this.cfg,
-            oAnchor = this._oAnchor,
-            sHelpText = oConfig.getProperty("helptext"),
-            sHelpTextHTML = "",
-            sEmphasisStartTag = "",
-            sEmphasisEndTag = "";
-
-
-        if (sText) {
-
-
-            if (sHelpText) {
-                    
-                sHelpTextHTML = "<em class=\"helptext\">" + sHelpText + "</em>";
-            
-            }
-
-
-            if (oConfig.getProperty("emphasis")) {
-
-                sEmphasisStartTag = "<em>";
-                sEmphasisEndTag = "</em>";
-
-            }
-
-
-            if (oConfig.getProperty("strongemphasis")) {
-
-                sEmphasisStartTag = "<strong>";
-                sEmphasisEndTag = "</strong>";
-            
-            }
-
-
-            oAnchor.innerHTML = (sEmphasisStartTag + sText + 
-                sEmphasisEndTag + sHelpTextHTML);
-
-        }
-
-    },
-
-
-    /**
-    * @method configHelpText
-    * @description Event handler for when the "helptext" configuration property 
-    * of the menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configHelpText: function (p_sType, p_aArgs, p_oItem) {
-
-        this.cfg.refireEvent("text");
-
-    },
-
-
-    /**
-    * @method configURL
-    * @description Event handler for when the "url" configuration property of 
-    * the menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configURL: function (p_sType, p_aArgs, p_oItem) {
-
-        var sURL = p_aArgs[0];
-
-        if (!sURL) {
-
-            sURL = "#";
-
-        }
-
-        var oAnchor = this._oAnchor;
-
-        if (YAHOO.env.ua.opera) {
-
-            oAnchor.removeAttribute("href");
-        
-        }
-
-        oAnchor.setAttribute("href", sURL);
-
-    },
-
-
-    /**
-    * @method configTarget
-    * @description Event handler for when the "target" configuration property 
-    * of the menu item changes.  
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configTarget: function (p_sType, p_aArgs, p_oItem) {
-
-        var sTarget = p_aArgs[0],
-            oAnchor = this._oAnchor;
-
-        if (sTarget && sTarget.length > 0) {
-
-            oAnchor.setAttribute("target", sTarget);
-
-        }
-        else {
-
-            oAnchor.removeAttribute("target");
-        
-        }
-
-    },
-
-
-    /**
-    * @method configEmphasis
-    * @description Event handler for when the "emphasis" configuration property
-    * of the menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configEmphasis: function (p_sType, p_aArgs, p_oItem) {
-
-        var bEmphasis = p_aArgs[0],
-            oConfig = this.cfg;
-
-
-        if (bEmphasis && oConfig.getProperty("strongemphasis")) {
-
-            oConfig.setProperty("strongemphasis", false);
-
-        }
-
-
-        oConfig.refireEvent("text");
-
-    },
-
-
-    /**
-    * @method configStrongEmphasis
-    * @description Event handler for when the "strongemphasis" configuration 
-    * property of the menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configStrongEmphasis: function (p_sType, p_aArgs, p_oItem) {
-
-        var bStrongEmphasis = p_aArgs[0],
-            oConfig = this.cfg;
-
-
-        if (bStrongEmphasis && oConfig.getProperty("emphasis")) {
-
-            oConfig.setProperty("emphasis", false);
-
-        }
-
-        oConfig.refireEvent("text");
-
-    },
-
-
-    /**
-    * @method configChecked
-    * @description Event handler for when the "checked" configuration property 
-    * of the menu item changes. 
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configChecked: function (p_sType, p_aArgs, p_oItem) {
-
-        var bChecked = p_aArgs[0],
-            oElement = this.element,
-            oAnchor = this._oAnchor,
-            oConfig = this.cfg,
-            sState = "-checked",
-            sClassName = this.CSS_CLASS_NAME + sState,
-            sLabelClassName = this.CSS_LABEL_CLASS_NAME + sState;
-
-
-        if (bChecked) {
-
-            Dom.addClass(oElement, sClassName);
-            Dom.addClass(oAnchor, sLabelClassName);
-
-        }
-        else {
-
-            Dom.removeClass(oElement, sClassName);
-            Dom.removeClass(oAnchor, sLabelClassName);
-        
-        }
-
-
-        oConfig.refireEvent("text");
-
-
-        if (oConfig.getProperty("disabled")) {
-
-            oConfig.refireEvent("disabled");
-
-        }
-
-
-        if (oConfig.getProperty("selected")) {
-
-            oConfig.refireEvent("selected");
-
-        }
-
-    },
-
-
-
-    /**
-    * @method configDisabled
-    * @description Event handler for when the "disabled" configuration property 
-    * of the menu item changes. 
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configDisabled: function (p_sType, p_aArgs, p_oItem) {
-
-        var bDisabled = p_aArgs[0],
-            oConfig = this.cfg,
-            oSubmenu = oConfig.getProperty("submenu"),
-            bChecked = oConfig.getProperty("checked"),
-            oElement = this.element,
-            oAnchor = this._oAnchor,
-            sState = "-disabled",
-            sCheckedState = "-checked" + sState,
-            sSubmenuState = "-hassubmenu" + sState,
-            sClassName = this.CSS_CLASS_NAME + sState,
-            sLabelClassName = this.CSS_LABEL_CLASS_NAME + sState,
-            sCheckedClassName = this.CSS_CLASS_NAME + sCheckedState,
-            sLabelCheckedClassName = this.CSS_LABEL_CLASS_NAME + sCheckedState,
-            sSubmenuClassName = this.CSS_CLASS_NAME + sSubmenuState,
-            sLabelSubmenuClassName = this.CSS_LABEL_CLASS_NAME + sSubmenuState;
-
-
-        if (bDisabled) {
-
-            if (oConfig.getProperty("selected")) {
-
-                oConfig.setProperty("selected", false);
-
-            }
-
-            Dom.addClass(oElement, sClassName);
-            Dom.addClass(oAnchor, sLabelClassName);
-
-
-            if (oSubmenu) {
-
-                Dom.addClass(oElement, sSubmenuClassName);
-                Dom.addClass(oAnchor, sLabelSubmenuClassName);
-            
-            }
-            
-
-            if (bChecked) {
-
-                Dom.addClass(oElement, sCheckedClassName);
-                Dom.addClass(oAnchor, sLabelCheckedClassName);
-
-            }
-
-        }
-        else {
-
-            Dom.removeClass(oElement, sClassName);
-            Dom.removeClass(oAnchor, sLabelClassName);
-
-
-            if (oSubmenu) {
-
-                Dom.removeClass(oElement, sSubmenuClassName);
-                Dom.removeClass(oAnchor, sLabelSubmenuClassName);
-            
-            }
-            
-
-            if (bChecked) {
-
-                Dom.removeClass(oElement, sCheckedClassName);
-                Dom.removeClass(oAnchor, sLabelCheckedClassName);
-
-            }
-
-        }
-
-    },
-
-
-    /**
-    * @method configSelected
-    * @description Event handler for when the "selected" configuration property 
-    * of the menu item changes. 
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configSelected: function (p_sType, p_aArgs, p_oItem) {
-
-        var oConfig = this.cfg,
-            bSelected = p_aArgs[0],
-            oElement = this.element,
-            oAnchor = this._oAnchor,
-            bChecked = oConfig.getProperty("checked"),
-            oSubmenu = oConfig.getProperty("submenu"),
-            sState = "-selected",
-            sCheckedState = "-checked" + sState,
-            sSubmenuState = "-hassubmenu" + sState,
-            sClassName = this.CSS_CLASS_NAME + sState,
-            sLabelClassName = this.CSS_LABEL_CLASS_NAME + sState,
-            sCheckedClassName = this.CSS_CLASS_NAME + sCheckedState,
-            sLabelCheckedClassName = this.CSS_LABEL_CLASS_NAME + sCheckedState,
-            sSubmenuClassName = this.CSS_CLASS_NAME + sSubmenuState,
-            sLabelSubmenuClassName = this.CSS_LABEL_CLASS_NAME + sSubmenuState;
-
-
-        if (YAHOO.env.ua.opera) {
-
-            oAnchor.blur();
-        
-        }
-
-
-        if (bSelected && !oConfig.getProperty("disabled")) {
-
-            Dom.addClass(oElement, sClassName);
-            Dom.addClass(oAnchor, sLabelClassName);
-
-
-            if (oSubmenu) {
-
-                Dom.addClass(oElement, sSubmenuClassName);
-                Dom.addClass(oAnchor, sLabelSubmenuClassName);
-            
-            }
-
-
-            if (bChecked) {
-
-                Dom.addClass(oElement, sCheckedClassName);
-                Dom.addClass(oAnchor, sLabelCheckedClassName);
-
-            }
-
-        }
-        else {
-
-            Dom.removeClass(oElement, sClassName);
-            Dom.removeClass(oAnchor, sLabelClassName);
-
-
-            if (oSubmenu) {
-
-                Dom.removeClass(oElement, sSubmenuClassName);
-                Dom.removeClass(oAnchor, sLabelSubmenuClassName);
-            
-            }
-
-        
-            if (bChecked) {
-
-                Dom.removeClass(oElement, sCheckedClassName);
-                Dom.removeClass(oAnchor, sLabelCheckedClassName);
-
-            }
-
-        }
-
-
-        if (this.hasFocus() && YAHOO.env.ua.opera) {
-        
-            oAnchor.focus();
-        
-        }
-
-    },
-
-
-    /**
-    * @method _onSubmenuBeforeHide
-    * @description "beforehide" Custom Event handler for a submenu.
-    * @private
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    */
-    _onSubmenuBeforeHide: function (p_sType, p_aArgs) {
-
-        var oItem = this.parent,
-            oMenu;
-
-        function onHide() {
-
-            oItem._oAnchor.blur();
-            oMenu.beforeHideEvent.unsubscribe(onHide);
-        
-        }
-
-
-        if (oItem.hasFocus()) {
-
-            oMenu = oItem.parent;
-
-            oMenu.beforeHideEvent.subscribe(onHide);
-        
-        }
-    
-    },
-
-
-    /**
-    * @method configSubmenu
-    * @description Event handler for when the "submenu" configuration property 
-    * of the menu item changes. 
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */
-    configSubmenu: function (p_sType, p_aArgs, p_oItem) {
-
-        var oSubmenu = p_aArgs[0],
-            oConfig = this.cfg,
-            oElement = this.element,
-            oAnchor = this._oAnchor,
-            bLazyLoad = this.parent && this.parent.lazyLoad,
-            sState = "-hassubmenu",
-            sClassName = this.CSS_CLASS_NAME + sState,
-            sLabelClassName = this.CSS_LABEL_CLASS_NAME + sState,
-            oMenu,
-            sSubmenuId,
-            oSubmenuConfig;
-
-
-        if (oSubmenu) {
-
-            if (oSubmenu instanceof Menu) {
-
-                oMenu = oSubmenu;
-                oMenu.parent = this;
-                oMenu.lazyLoad = bLazyLoad;
-
-            }
-            else if (typeof oSubmenu == "object" && oSubmenu.id && 
-                !oSubmenu.nodeType) {
-
-                sSubmenuId = oSubmenu.id;
-                oSubmenuConfig = oSubmenu;
-
-                oSubmenuConfig.lazyload = bLazyLoad;
-                oSubmenuConfig.parent = this;
-
-                oMenu = new this.SUBMENU_TYPE(sSubmenuId, oSubmenuConfig);
-
-
-                // Set the value of the property to the Menu instance
-
-                oConfig.setProperty("submenu", oMenu, true);
-
-            }
-            else {
-
-                oMenu = new this.SUBMENU_TYPE(oSubmenu,
-                                { lazyload: bLazyLoad, parent: this });
-
-
-                // Set the value of the property to the Menu instance
-                
-                oConfig.setProperty("submenu", oMenu, true);
-
-            }
-
-
-            if (oMenu) {
-
-                Dom.addClass(oElement, sClassName);
-                Dom.addClass(oAnchor, sLabelClassName);
-
-                this._oSubmenu = oMenu;
-
-                if (YAHOO.env.ua.opera) {
-                
-                    oMenu.beforeHideEvent.subscribe(this._onSubmenuBeforeHide);               
-                
-                }
-            
-            }
-
-        }
-        else {
-
-            Dom.removeClass(oElement, sClassName);
-            Dom.removeClass(oAnchor, sLabelClassName);
-
-            if (this._oSubmenu) {
-
-                this._oSubmenu.destroy();
-
-            }
-
-        }
-
-
-        if (oConfig.getProperty("disabled")) {
-
-            oConfig.refireEvent("disabled");
-
-        }
-
-
-        if (oConfig.getProperty("selected")) {
-
-            oConfig.refireEvent("selected");
-
-        }
-
-    },
-
-
-    /**
-    * @method configOnClick
-    * @description Event handler for when the "onclick" configuration property 
-    * of the menu item changes. 
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */
-    configOnClick: function (p_sType, p_aArgs, p_oItem) {
-
-        var oObject = p_aArgs[0];
-
-        /*
-            Remove any existing listeners if a "click" event handler has 
-            already been specified.
-        */
-
-        if (this._oOnclickAttributeValue && 
-            (this._oOnclickAttributeValue != oObject)) {
-
-            this.clickEvent.unsubscribe(this._oOnclickAttributeValue.fn, 
-                                this._oOnclickAttributeValue.obj);
-
-            this._oOnclickAttributeValue = null;
-
-        }
-
-
-        if (!this._oOnclickAttributeValue && typeof oObject == "object" && 
-            typeof oObject.fn == "function") {
-            
-            this.clickEvent.subscribe(oObject.fn, 
-                ((!YAHOO.lang.isUndefined(oObject.obj)) ? oObject.obj : this), 
-                oObject.scope);
-
-            this._oOnclickAttributeValue = oObject;
-
-        }
-    
-    },
-
-
-    /**
-    * @method configClassName
-    * @description Event handler for when the "classname" configuration 
-    * property of a menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */
-    configClassName: function (p_sType, p_aArgs, p_oItem) {
-    
-        var sClassName = p_aArgs[0];
-    
-        if (this._sClassName) {
-    
-            Dom.removeClass(this.element, this._sClassName);
-    
-        }
-    
-        Dom.addClass(this.element, sClassName);
-        this._sClassName = sClassName;
-    
-    },
-
-
-
-    // Public methods
-
-
-       /**
-    * @method initDefaultConfig
-       * @description Initializes an item's configurable properties.
-       */
-       initDefaultConfig : function () {
-
-        var oConfig = this.cfg;
-
-
-        // Define the configuration attributes
-
-        /**
-        * @config text
-        * @description String specifying the text label for the menu item.  
-        * When building a menu from existing HTML the value of this property
-        * will be interpreted from the menu's markup.
-        * @default ""
-        * @type String
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.TEXT.key, 
-            { 
-                handler: this.configText, 
-                value: DEFAULT_CONFIG.TEXT.value, 
-                validator: DEFAULT_CONFIG.TEXT.validator, 
-                suppressEvent: DEFAULT_CONFIG.TEXT.suppressEvent 
-            }
-        );
-        
-
-        /**
-        * @config helptext
-        * @description String specifying additional instructional text to 
-        * accompany the text for the menu item.
-        * @deprecated Use "text" configuration property to add help text markup.  
-        * For example: <code>oMenuItem.cfg.setProperty("text", "Copy &#60;em 
-        * class=\"helptext\"&#62;Ctrl + C&#60;/em&#62;");</code>
-        * @default null
-        * @type String|<a href="http://www.w3.org/TR/
-        * 2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-58190037">
-        * HTMLElement</a>
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.HELP_TEXT.key,
-            {
-                handler: this.configHelpText, 
-                supercedes: DEFAULT_CONFIG.HELP_TEXT.supercedes,
-                suppressEvent: DEFAULT_CONFIG.HELP_TEXT.suppressEvent 
-            }
-        );
-
-
-        /**
-        * @config url
-        * @description String specifying the URL for the menu item's anchor's 
-        * "href" attribute.  When building a menu from existing HTML the value 
-        * of this property will be interpreted from the menu's markup.
-        * @default "#"
-        * @type String
-        */        
-        oConfig.addProperty(
-            DEFAULT_CONFIG.URL.key, 
-            {
-                handler: this.configURL, 
-                value: DEFAULT_CONFIG.URL.value, 
-                suppressEvent: DEFAULT_CONFIG.URL.suppressEvent
-            }
-        );
-
-
-        /**
-        * @config target
-        * @description String specifying the value for the "target" attribute 
-        * of the menu item's anchor element. <strong>Specifying a target will 
-        * require the user to click directly on the menu item's anchor node in
-        * order to cause the browser to navigate to the specified URL.</strong> 
-        * When building a menu from existing HTML the value of this property 
-        * will be interpreted from the menu's markup.
-        * @default null
-        * @type String
-        */        
-        oConfig.addProperty(
-            DEFAULT_CONFIG.TARGET.key, 
-            {
-                handler: this.configTarget, 
-                suppressEvent: DEFAULT_CONFIG.TARGET.suppressEvent
-            }
-        );
-
-
-        /**
-        * @config emphasis
-        * @description Boolean indicating if the text of the menu item will be 
-        * rendered with emphasis.
-        * @deprecated Use "text" configuration property to add emphasis.  
-        * For example: <code>oMenuItem.cfg.setProperty("text", "&#60;em&#62;Some 
-        * Text&#60;/em&#62;");</code>
-        * @default false
-        * @type Boolean
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.EMPHASIS.key, 
-            { 
-                handler: this.configEmphasis, 
-                value: DEFAULT_CONFIG.EMPHASIS.value, 
-                validator: DEFAULT_CONFIG.EMPHASIS.validator, 
-                suppressEvent: DEFAULT_CONFIG.EMPHASIS.suppressEvent,
-                supercedes: DEFAULT_CONFIG.EMPHASIS.supercedes
-            }
-        );
-
-
-        /**
-        * @config strongemphasis
-        * @description Boolean indicating if the text of the menu item will be 
-        * rendered with strong emphasis.
-        * @deprecated Use "text" configuration property to add strong emphasis.  
-        * For example: <code>oMenuItem.cfg.setProperty("text", "&#60;strong&#62; 
-        * Some Text&#60;/strong&#62;");</code>
-        * @default false
-        * @type Boolean
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.STRONG_EMPHASIS.key,
-            {
-                handler: this.configStrongEmphasis,
-                value: DEFAULT_CONFIG.STRONG_EMPHASIS.value,
-                validator: DEFAULT_CONFIG.STRONG_EMPHASIS.validator,
-                suppressEvent: DEFAULT_CONFIG.STRONG_EMPHASIS.suppressEvent,
-                supercedes: DEFAULT_CONFIG.STRONG_EMPHASIS.supercedes
-            }
-        );
-
-
-        /**
-        * @config checked
-        * @description Boolean indicating if the menu item should be rendered 
-        * with a checkmark.
-        * @default false
-        * @type Boolean
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.CHECKED.key, 
-            {
-                handler: this.configChecked, 
-                value: DEFAULT_CONFIG.CHECKED.value, 
-                validator: DEFAULT_CONFIG.CHECKED.validator, 
-                suppressEvent: DEFAULT_CONFIG.CHECKED.suppressEvent,
-                supercedes: DEFAULT_CONFIG.CHECKED.supercedes
-            } 
-        );
-
-
-        /**
-        * @config disabled
-        * @description Boolean indicating if the menu item should be disabled.  
-        * (Disabled menu items are  dimmed and will not respond to user input 
-        * or fire events.)
-        * @default false
-        * @type Boolean
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.DISABLED.key,
-            {
-                handler: this.configDisabled,
-                value: DEFAULT_CONFIG.DISABLED.value,
-                validator: DEFAULT_CONFIG.DISABLED.validator,
-                suppressEvent: DEFAULT_CONFIG.DISABLED.suppressEvent
-            }
-        );
-
-
-        /**
-        * @config selected
-        * @description Boolean indicating if the menu item should 
-        * be highlighted.
-        * @default false
-        * @type Boolean
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.SELECTED.key,
-            {
-                handler: this.configSelected,
-                value: DEFAULT_CONFIG.SELECTED.value,
-                validator: DEFAULT_CONFIG.SELECTED.validator,
-                suppressEvent: DEFAULT_CONFIG.SELECTED.suppressEvent
-            }
-        );
-
-
-        /**
-        * @config submenu
-        * @description Object specifying the submenu to be appended to the 
-        * menu item.  The value can be one of the following: <ul><li>Object 
-        * specifying a Menu instance.</li><li>Object literal specifying the
-        * menu to be created.  Format: <code>{ id: [menu id], itemdata: 
-        * [<a href="YAHOO.widget.Menu.html#itemData">array of values for 
-        * items</a>] }</code>.</li><li>String specifying the id attribute 
-        * of the <code>&#60;div&#62;</code> element of the menu.</li><li>
-        * Object specifying the <code>&#60;div&#62;</code> element of the 
-        * menu.</li></ul>
-        * @default null
-        * @type Menu|String|Object|<a href="http://www.w3.org/TR/2000/
-        * WD-DOM-Level-1-20000929/level-one-html.html#ID-58190037">
-        * HTMLElement</a>
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.SUBMENU.key, 
-            {
-                handler: this.configSubmenu, 
-                supercedes: DEFAULT_CONFIG.SUBMENU.supercedes,
-                suppressEvent: DEFAULT_CONFIG.SUBMENU.suppressEvent
-            }
-        );
-
-
-        /**
-        * @config onclick
-        * @description Object literal representing the code to be executed when 
-        * the item is clicked.  Format:<br> <code> {<br> 
-        * <strong>fn:</strong> Function,   &#47;&#47; The handler to call when 
-        * the event fires.<br> <strong>obj:</strong> Object, &#47;&#47; An 
-        * object to  pass back to the handler.<br> <strong>scope:</strong> 
-        * Object &#47;&#47; The object to use for the scope of the handler.
-        * <br> } </code>
-        * @type Object
-        * @default null
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.ONCLICK.key, 
-            {
-                handler: this.configOnClick, 
-                suppressEvent: DEFAULT_CONFIG.ONCLICK.suppressEvent 
-            }
-        );
-
-
-        /**
-        * @config classname
-        * @description CSS class to be applied to the menu item's root 
-        * <code>&#60;li&#62;</code> element.  The specified class(es) are 
-        * appended in addition to the default class as specified by the menu 
-        * item's CSS_CLASS_NAME constant.
-        * @default null
-        * @type String
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.CLASS_NAME.key, 
-            { 
-                handler: this.configClassName,
-                value: DEFAULT_CONFIG.CLASS_NAME.value, 
-                validator: DEFAULT_CONFIG.CLASS_NAME.validator,
-                suppressEvent: DEFAULT_CONFIG.CLASS_NAME.suppressEvent 
-            }
-        );
-
-       },
-
-
-    /**
-    * @method getNextEnabledSibling
-    * @description Finds the menu item's next enabled sibling.
-    * @return YAHOO.widget.MenuItem
-    */
-    getNextEnabledSibling: function () {
-
-        var nGroupIndex,
-            aItemGroups,
-            oNextItem,
-            nNextGroupIndex,
-            aNextGroup;
-
-        function getNextArrayItem(p_aArray, p_nStartIndex) {
-
-            return p_aArray[p_nStartIndex] || 
-                getNextArrayItem(p_aArray, (p_nStartIndex+1));
-
-        }
-
-        if (this.parent instanceof Menu) {
-
-            nGroupIndex = this.groupIndex;
-    
-            aItemGroups = this.parent.getItemGroups();
-    
-            if (this.index < (aItemGroups[nGroupIndex].length - 1)) {
-    
-                oNextItem = getNextArrayItem(aItemGroups[nGroupIndex], 
-                        (this.index+1));
-    
-            }
-            else {
-    
-                if (nGroupIndex < (aItemGroups.length - 1)) {
-    
-                    nNextGroupIndex = nGroupIndex + 1;
-    
-                }
-                else {
-    
-                    nNextGroupIndex = 0;
-    
-                }
-    
-                aNextGroup = getNextArrayItem(aItemGroups, nNextGroupIndex);
-    
-                // Retrieve the first menu item in the next group
-    
-                oNextItem = getNextArrayItem(aNextGroup, 0);
-    
-            }
-    
-            return (oNextItem.cfg.getProperty("disabled") || 
-                oNextItem.element.style.display == "none") ? 
-                oNextItem.getNextEnabledSibling() : oNextItem;
-
-        }
-
-    },
-
-
-    /**
-    * @method getPreviousEnabledSibling
-    * @description Finds the menu item's previous enabled sibling.
-    * @return {YAHOO.widget.MenuItem}
-    */
-    getPreviousEnabledSibling: function () {
-
-        var nGroupIndex,
-            aItemGroups,
-            oPreviousItem,
-            nPreviousGroupIndex,
-            aPreviousGroup;
-
-        function getPreviousArrayItem(p_aArray, p_nStartIndex) {
-
-            return p_aArray[p_nStartIndex] ||  
-                getPreviousArrayItem(p_aArray, (p_nStartIndex-1));
-
-        }
-
-        function getFirstItemIndex(p_aArray, p_nStartIndex) {
-
-            return p_aArray[p_nStartIndex] ? p_nStartIndex : 
-                getFirstItemIndex(p_aArray, (p_nStartIndex+1));
-
-        }
-
-       if (this.parent instanceof Menu) {
-
-            nGroupIndex = this.groupIndex;
-            aItemGroups = this.parent.getItemGroups();
-
-    
-            if (this.index > getFirstItemIndex(aItemGroups[nGroupIndex], 0)) {
-    
-                oPreviousItem = getPreviousArrayItem(aItemGroups[nGroupIndex], 
-                        (this.index-1));
-    
-            }
-            else {
-    
-                if (nGroupIndex > getFirstItemIndex(aItemGroups, 0)) {
-    
-                    nPreviousGroupIndex = nGroupIndex - 1;
-    
-                }
-                else {
-    
-                    nPreviousGroupIndex = aItemGroups.length - 1;
-    
-                }
-    
-                aPreviousGroup = getPreviousArrayItem(aItemGroups, 
-                    nPreviousGroupIndex);
-    
-                oPreviousItem = getPreviousArrayItem(aPreviousGroup, 
-                        (aPreviousGroup.length - 1));
-    
-            }
-
-            return (oPreviousItem.cfg.getProperty("disabled") || 
-                oPreviousItem.element.style.display == "none") ? 
-                oPreviousItem.getPreviousEnabledSibling() : oPreviousItem;
-
-        }
-
-    },
-
-
-    /**
-    * @method focus
-    * @description Causes the menu item to receive the focus and fires the 
-    * focus event.
-    */
-    focus: function () {
-
-        var oParent = this.parent,
-            oAnchor = this._oAnchor,
-            oActiveItem = oParent.activeItem,
-            me = this;
-
-
-        function setFocus() {
-
-            try {
-
-                if (YAHOO.env.ua.ie && !document.hasFocus()) {
-                
-                    return;
-                
-                }
-
-                if (oActiveItem) {
-    
-                    oActiveItem.blurEvent.fire();
-    
-                }
-
-                oAnchor.focus();
-                
-                me.focusEvent.fire();
-
-            }
-            catch(e) {
-            
-            }
-
-        }
-
-
-        if (!this.cfg.getProperty("disabled") && oParent && 
-            oParent.cfg.getProperty("visible") && 
-            this.element.style.display != "none") {
-
-
-            /*
-                Setting focus via a timer fixes a race condition in Firefox, IE 
-                and Opera where the browser viewport jumps as it trys to 
-                position and focus the menu.
-            */
-
-            window.setTimeout(setFocus, 0);
-
-        }
-
-    },
-
-
-    /**
-    * @method blur
-    * @description Causes the menu item to lose focus and fires the 
-    * blur event.
-    */    
-    blur: function () {
-
-        var oParent = this.parent;
-
-        if (!this.cfg.getProperty("disabled") && oParent && 
-            oParent.cfg.getProperty("visible")) {
-
-
-            var me = this;
-            
-            window.setTimeout(function () {
-
-                try {
-    
-                    me._oAnchor.blur();
-                    me.blurEvent.fire();    
-
-                } 
-                catch (e) {
-                
-                }
-                
-            }, 0);
-
-        }
-
-    },
-
-
-    /**
-    * @method hasFocus
-    * @description Returns a boolean indicating whether or not the menu item
-    * has focus.
-    * @return {Boolean}
-    */
-    hasFocus: function () {
-    
-        return (YAHOO.widget.MenuManager.getFocusedMenuItem() == this);
-    
-    },
-
-
-       /**
-    * @method destroy
-       * @description Removes the menu item's <code>&#60;li&#62;</code> element 
-       * from its parent <code>&#60;ul&#62;</code> element.
-       */
-    destroy: function () {
-
-        var oEl = this.element,
-            oSubmenu,
-            oParentNode;
-
-        if (oEl) {
-
-
-            // If the item has a submenu, destroy it first
-
-            oSubmenu = this.cfg.getProperty("submenu");
-
-            if (oSubmenu) {
-            
-                oSubmenu.destroy();
-            
-            }
-
-
-            // Remove CustomEvent listeners
-    
-            this.mouseOverEvent.unsubscribeAll();
-            this.mouseOutEvent.unsubscribeAll();
-            this.mouseDownEvent.unsubscribeAll();
-            this.mouseUpEvent.unsubscribeAll();
-            this.clickEvent.unsubscribeAll();
-            this.keyPressEvent.unsubscribeAll();
-            this.keyDownEvent.unsubscribeAll();
-            this.keyUpEvent.unsubscribeAll();
-            this.focusEvent.unsubscribeAll();
-            this.blurEvent.unsubscribeAll();
-            this.cfg.configChangedEvent.unsubscribeAll();
-
-
-            // Remove the element from the parent node
-
-            oParentNode = oEl.parentNode;
-
-            if (oParentNode) {
-
-                oParentNode.removeChild(oEl);
-
-                this.destroyEvent.fire();
-
-            }
-
-            this.destroyEvent.unsubscribeAll();
-
-        }
-
-    },
-
-
-    /**
-    * @method toString
-    * @description Returns a string representing the menu item.
-    * @return {String}
-    */
-    toString: function () {
-
-        var sReturnVal = "MenuItem",
-            sId = this.id;
-
-        if (sId) {
-    
-            sReturnVal += (" " + sId);
-        
-        }
-
-        return sReturnVal;
-    
-    }
-
-};
-
-Lang.augmentProto(MenuItem, YAHOO.util.EventProvider);
-
-})();
-(function () {
-
-
-/**
-* Creates a list of options or commands which are made visible in response to 
-* an HTML element's "contextmenu" event ("mousedown" for Opera).
-*
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the context menu.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source for the 
-* context menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-
-* html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying the 
-* <code>&#60;div&#62;</code> element of the context menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-
-* html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object specifying 
-* the <code>&#60;select&#62;</code> element to be used as the data source for 
-* the context menu.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the context menu. See configuration class documentation 
-* for more details.
-* @class ContextMenu
-* @constructor
-* @extends YAHOO.widget.Menu
-* @namespace YAHOO.widget
-*/
-YAHOO.widget.ContextMenu = function(p_oElement, p_oConfig) {
-
-    YAHOO.widget.ContextMenu.superclass.constructor.call(this, 
-            p_oElement, p_oConfig);
-
-};
-
-
-var Event = YAHOO.util.Event,
-    ContextMenu = YAHOO.widget.ContextMenu,
-
-
-
-    /**
-    * Constant representing the name of the ContextMenu's events
-    * @property EVENT_TYPES
-    * @private
-    * @final
-    * @type Object
-    */
-    EVENT_TYPES = {
-
-        "TRIGGER_CONTEXT_MENU": "triggerContextMenu",
-        "CONTEXT_MENU": (YAHOO.env.ua.opera ? "mousedown" : "contextmenu"),
-        "CLICK": "click"
-
-    },
-    
-    
-    /**
-    * Constant representing the ContextMenu's configuration properties
-    * @property DEFAULT_CONFIG
-    * @private
-    * @final
-    * @type Object
-    */
-    DEFAULT_CONFIG = {
-    
-        "TRIGGER": { 
-            key: "trigger",
-            suppressEvent: true
-        }
-    
-    };
-
-
-/**
-* @method position
-* @description "beforeShow" event handler used to position the contextmenu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {Array} p_aPos Array representing the xy position for the context menu.
-*/
-function position(p_sType, p_aArgs, p_aPos) {
-
-    this.cfg.setProperty("xy", p_aPos);
-    
-    this.beforeShowEvent.unsubscribe(position, p_aPos);
-
-}
-
-
-YAHOO.lang.extend(ContextMenu, YAHOO.widget.Menu, {
-
-
-
-// Private properties
-
-
-/**
-* @property _oTrigger
-* @description Object reference to the current value of the "trigger" 
-* configuration property.
-* @default null
-* @private
-* @type String|<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/leve
-* l-one-html.html#ID-58190037">HTMLElement</a>|Array
-*/
-_oTrigger: null,
-
-
-/**
-* @property _bCancelled
-* @description Boolean indicating if the display of the context menu should 
-* be cancelled.
-* @default false
-* @private
-* @type Boolean
-*/
-_bCancelled: false,
-
-
-
-// Public properties
-
-
-/**
-* @property contextEventTarget
-* @description Object reference for the HTML element that was the target of the
-* "contextmenu" DOM event ("mousedown" for Opera) that triggered the display of 
-* the context menu.
-* @default null
-* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-
-* html.html#ID-58190037">HTMLElement</a>
-*/
-contextEventTarget: null,
-
-
-
-// Events
-
-
-/**
-* @event triggerContextMenuEvent
-* @description Custom Event wrapper for the "contextmenu" DOM event 
-* ("mousedown" for Opera) fired by the element(s) that trigger the display of 
-* the context menu.
-*/
-triggerContextMenuEvent: null,
-
-
-
-/**
-* @method init
-* @description The ContextMenu class's initialization method. This method is 
-* automatically called by the constructor, and sets up all DOM references for 
-* pre-existing markup, and creates required markup if it is not already present.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the context menu.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source for 
-* the context menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-
-* html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying the 
-* <code>&#60;div&#62;</code> element of the context menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-
-* html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object specifying 
-* the <code>&#60;select&#62;</code> element to be used as the data source for 
-* the context menu.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the context menu. See configuration class documentation 
-* for more details.
-*/
-init: function(p_oElement, p_oConfig) {
-
-
-    // Call the init of the superclass (YAHOO.widget.Menu)
-
-    ContextMenu.superclass.init.call(this, p_oElement);
-
-
-    this.beforeInitEvent.fire(ContextMenu);
-
-
-    if(p_oConfig) {
-
-        this.cfg.applyConfig(p_oConfig, true);
-
-    }
-    
-    
-    this.initEvent.fire(ContextMenu);
-    
-},
-
-
-/**
-* @method initEvents
-* @description Initializes the custom events for the context menu.
-*/
-initEvents: function() {
-
-       ContextMenu.superclass.initEvents.call(this);
-
-    // Create custom events
-
-    this.triggerContextMenuEvent = 
-        this.createEvent(EVENT_TYPES.TRIGGER_CONTEXT_MENU);
-
-    this.triggerContextMenuEvent.signature = YAHOO.util.CustomEvent.LIST;
-
-},
-
-
-/**
-* @method cancel
-* @description Cancels the display of the context menu.
-*/
-cancel: function() {
-
-    this._bCancelled = true;
-
-},
-
-
-
-// Private methods
-
-
-/**
-* @method _removeEventHandlers
-* @description Removes all of the DOM event handlers from the HTML element(s) 
-* whose "context menu" event ("click" for Opera) trigger the display of 
-* the context menu.
-* @private
-*/
-_removeEventHandlers: function() {
-
-    var oTrigger = this._oTrigger;
-
-
-    // Remove the event handlers from the trigger(s)
-
-    if (oTrigger) {
-
-        Event.removeListener(oTrigger, EVENT_TYPES.CONTEXT_MENU, 
-            this._onTriggerContextMenu);    
-        
-        if(YAHOO.env.ua.opera) {
-        
-            Event.removeListener(oTrigger, EVENT_TYPES.CLICK, 
-                this._onTriggerClick);
-    
-        }
-
-    }
-
-},
-
-
-
-// Private event handlers
-
-
-
-/**
-* @method _onTriggerClick
-* @description "click" event handler for the HTML element(s) identified as the 
-* "trigger" for the context menu.  Used to cancel default behaviors in Opera.
-* @private
-* @param {Event} p_oEvent Object representing the DOM event object passed back 
-* by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context 
-* menu that is handling the event.
-*/
-_onTriggerClick: function(p_oEvent, p_oMenu) {
-
-    if(p_oEvent.ctrlKey) {
-    
-        Event.stopEvent(p_oEvent);
-
-    }
-    
-},
-
-
-/**
-* @method _onTriggerContextMenu
-* @description "contextmenu" event handler ("mousedown" for Opera) for the HTML 
-* element(s) that trigger the display of the context menu.
-* @private
-* @param {Event} p_oEvent Object representing the DOM event object passed back 
-* by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context 
-* menu that is handling the event.
-*/
-_onTriggerContextMenu: function(p_oEvent, p_oMenu) {
-
-    if (p_oEvent.type == "mousedown" && !p_oEvent.ctrlKey) {
-
-        return;
-
-    }
-
-
-    var aXY;
-
-
-    /*
-        Prevent the browser's default context menu from appearing and 
-        stop the propagation of the "contextmenu" event so that 
-        other ContextMenu instances are not displayed.
-    */
-
-    Event.stopEvent(p_oEvent);
-
-
-    this.contextEventTarget = Event.getTarget(p_oEvent);
-
-    this.triggerContextMenuEvent.fire(p_oEvent);
-
-
-    // Hide any other Menu instances that might be visible
-
-    YAHOO.widget.MenuManager.hideVisible();
-    
-
-
-    if(!this._bCancelled) {
-
-        // Position and display the context menu
-
-        aXY = Event.getXY(p_oEvent);
-
-
-        if (!YAHOO.util.Dom.inDocument(this.element)) {
-
-            this.beforeShowEvent.subscribe(position, aXY);
-
-        }
-        else {
-
-            this.cfg.setProperty("xy", aXY);
-        
-        }
-
-
-        this.show();
-
-    }
-
-    this._bCancelled = false;
-
-},
-
-
-
-// Public methods
-
-
-/**
-* @method toString
-* @description Returns a string representing the context menu.
-* @return {String}
-*/
-toString: function() {
-
-    var sReturnVal = "ContextMenu",
-        sId = this.id;
-
-    if(sId) {
-
-        sReturnVal += (" " + sId);
-    
-    }
-
-    return sReturnVal;
-
-},
-
-
-/**
-* @method initDefaultConfig
-* @description Initializes the class's configurable properties which can be 
-* changed using the context menu's Config object ("cfg").
-*/
-initDefaultConfig: function() {
-
-    ContextMenu.superclass.initDefaultConfig.call(this);
-
-    /**
-    * @config trigger
-    * @description The HTML element(s) whose "contextmenu" event ("mousedown" 
-    * for Opera) trigger the display of the context menu.  Can be a string 
-    * representing the id attribute of the HTML element, an object reference 
-    * for the HTML element, or an array of strings or HTML element references.
-    * @default null
-    * @type String|<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-    * level-one-html.html#ID-58190037">HTMLElement</a>|Array
-    */
-    this.cfg.addProperty(DEFAULT_CONFIG.TRIGGER.key, 
-        {
-            handler: this.configTrigger, 
-            suppressEvent: DEFAULT_CONFIG.TRIGGER.suppressEvent 
-        }
-    );
-
-},
-
-
-/**
-* @method destroy
-* @description Removes the context menu's <code>&#60;div&#62;</code> element 
-* (and accompanying child nodes) from the document.
-*/
-destroy: function() {
-
-    // Remove the DOM event handlers from the current trigger(s)
-
-    this._removeEventHandlers();
-
-
-    // Continue with the superclass implementation of this method
-
-    ContextMenu.superclass.destroy.call(this);
-
-},
-
-
-
-// Public event handlers for configuration properties
-
-
-/**
-* @method configTrigger
-* @description Event handler for when the value of the "trigger" configuration 
-* property changes. 
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context 
-* menu that fired the event.
-*/
-configTrigger: function(p_sType, p_aArgs, p_oMenu) {
-    
-    var oTrigger = p_aArgs[0];
-
-    if(oTrigger) {
-
-        /*
-            If there is a current "trigger" - remove the event handlers 
-            from that element(s) before assigning new ones
-        */
-
-        if(this._oTrigger) {
-        
-            this._removeEventHandlers();
-
-        }
-
-        this._oTrigger = oTrigger;
-
-
-        /*
-            Listen for the "mousedown" event in Opera b/c it does not 
-            support the "contextmenu" event
-        */ 
-  
-        Event.on(oTrigger, EVENT_TYPES.CONTEXT_MENU, 
-            this._onTriggerContextMenu, this, true);
-
-
-        /*
-            Assign a "click" event handler to the trigger element(s) for
-            Opera to prevent default browser behaviors.
-        */
-
-        if(YAHOO.env.ua.opera) {
-        
-            Event.on(oTrigger, EVENT_TYPES.CLICK, this._onTriggerClick, 
-                this, true);
-
-        }
-
-    }
-    else {
-   
-        this._removeEventHandlers();
-    
-    }
-    
-}
-
-}); // END YAHOO.lang.extend
-
-}());
-
-
-
-/**
-* Creates an item for a context menu.
-* 
-* @param {String} p_oObject String specifying the text of the context menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the 
-* <code>&#60;li&#62;</code> element of the context menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object 
-* specifying the <code>&#60;optgroup&#62;</code> element of the context 
-* menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying 
-* the <code>&#60;option&#62;</code> element of the context menu item.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the context menu item. See configuration class 
-* documentation for more details.
-* @class ContextMenuItem
-* @constructor
-* @extends YAHOO.widget.MenuItem
-* @deprecated As of version 2.4.0 items for YAHOO.widget.ContextMenu instances
-* are of type YAHOO.widget.MenuItem.
-*/
-YAHOO.widget.ContextMenuItem = YAHOO.widget.MenuItem;
-(function () {
-
-
-/**
-* Horizontal collection of items, each of which can contain a submenu.
-* 
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the menu bar.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source for the 
-* menu bar.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying 
-* the <code>&#60;div&#62;</code> element of the menu bar.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object 
-* specifying the <code>&#60;select&#62;</code> element to be used as the data 
-* source for the menu bar.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu bar. See configuration class documentation for
-* more details.
-* @class MenuBar
-* @constructor
-* @extends YAHOO.widget.Menu
-* @namespace YAHOO.widget
-*/
-YAHOO.widget.MenuBar = function(p_oElement, p_oConfig) {
-
-    YAHOO.widget.MenuBar.superclass.constructor.call(this, 
-        p_oElement, p_oConfig);
-
-};
-
-
-/**
-* @method checkPosition
-* @description Checks to make sure that the value of the "position" property 
-* is one of the supported strings. Returns true if the position is supported.
-* @private
-* @param {Object} p_sPosition String specifying the position of the menu.
-* @return {Boolean}
-*/
-function checkPosition(p_sPosition) {
-
-    if (typeof p_sPosition == "string") {
-
-        return ("dynamic,static".indexOf((p_sPosition.toLowerCase())) != -1);
-
-    }
-
-}
-
-
-var Event = YAHOO.util.Event,
-    MenuBar = YAHOO.widget.MenuBar,
-
-    /**
-    * Constant representing the MenuBar's configuration properties
-    * @property DEFAULT_CONFIG
-    * @private
-    * @final
-    * @type Object
-    */
-    DEFAULT_CONFIG = {
-    
-        "POSITION": { 
-            key: "position", 
-            value: "static", 
-            validator: checkPosition, 
-            supercedes: ["visible"] 
-        }, 
-    
-        "SUBMENU_ALIGNMENT": { 
-            key: "submenualignment", 
-            value: ["tl","bl"],
-            suppressEvent: true 
-        },
-    
-        "AUTO_SUBMENU_DISPLAY": { 
-            key: "autosubmenudisplay", 
-            value: false, 
-            validator: YAHOO.lang.isBoolean,
-            suppressEvent: true
-        }
-    
-    };
-
-
-
-YAHOO.lang.extend(MenuBar, YAHOO.widget.Menu, {
-
-/**
-* @method init
-* @description The MenuBar class's initialization method. This method is 
-* automatically called by the constructor, and sets up all DOM references for 
-* pre-existing markup, and creates required markup if it is not already present.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the menu bar.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source for the 
-* menu bar.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying 
-* the <code>&#60;div&#62;</code> element of the menu bar.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object 
-* specifying the <code>&#60;select&#62;</code> element to be used as the data 
-* source for the menu bar.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu bar. See configuration class documentation for
-* more details.
-*/
-init: function(p_oElement, p_oConfig) {
-
-    if(!this.ITEM_TYPE) {
-
-        this.ITEM_TYPE = YAHOO.widget.MenuBarItem;
-
-    }
-
-
-    // Call the init of the superclass (YAHOO.widget.Menu)
-
-    MenuBar.superclass.init.call(this, p_oElement);
-
-
-    this.beforeInitEvent.fire(MenuBar);
-
-
-    if(p_oConfig) {
-
-        this.cfg.applyConfig(p_oConfig, true);
-
-    }
-
-    this.initEvent.fire(MenuBar);
-
-},
-
-
-
-// Constants
-
-
-/**
-* @property CSS_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the menu 
-* bar's <code>&#60;div&#62;</code> element.
-* @default "yuimenubar"
-* @final
-* @type String
-*/
-CSS_CLASS_NAME: "yuimenubar",
-
-
-
-// Protected event handlers
-
-
-/**
-* @method _onKeyDown
-* @description "keydown" Custom Event handler for the menu bar.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuBar} p_oMenuBar Object representing the menu bar 
-* that fired the event.
-*/
-_onKeyDown: function(p_sType, p_aArgs, p_oMenuBar) {
-
-    var oEvent = p_aArgs[0],
-        oItem = p_aArgs[1],
-        oSubmenu,
-        oItemCfg,
-        oNextItem;
-
-
-    if(oItem && !oItem.cfg.getProperty("disabled")) {
-
-        oItemCfg = oItem.cfg;
-
-        switch(oEvent.keyCode) {
-    
-            case 37:    // Left arrow
-            case 39:    // Right arrow
-    
-                if(oItem == this.activeItem && 
-                    !oItemCfg.getProperty("selected")) {
-    
-                    oItemCfg.setProperty("selected", true);
-    
-                }
-                else {
-    
-                    oNextItem = (oEvent.keyCode == 37) ? 
-                        oItem.getPreviousEnabledSibling() : 
-                        oItem.getNextEnabledSibling();
-            
-                    if(oNextItem) {
-    
-                        this.clearActiveItem();
-    
-                        oNextItem.cfg.setProperty("selected", true);
-    
-    
-                        if(this.cfg.getProperty("autosubmenudisplay")) {
-                        
-                            oSubmenu = oNextItem.cfg.getProperty("submenu");
-                            
-                            if(oSubmenu) {
-                        
-                                oSubmenu.show();
-                            
-                            }
-                
-                        }           
-    
-                        oNextItem.focus();
-    
-                    }
-    
-                }
-    
-                Event.preventDefault(oEvent);
-    
-            break;
-    
-            case 40:    // Down arrow
-    
-                if(this.activeItem != oItem) {
-    
-                    this.clearActiveItem();
-    
-                    oItemCfg.setProperty("selected", true);
-                    oItem.focus();
-                
-                }
-    
-                oSubmenu = oItemCfg.getProperty("submenu");
-    
-                if(oSubmenu) {
-    
-                    if(oSubmenu.cfg.getProperty("visible")) {
-    
-                        oSubmenu.setInitialSelection();
-                        oSubmenu.setInitialFocus();
-                    
-                    }
-                    else {
-    
-                        oSubmenu.show();
-                    
-                    }
-    
-                }
-    
-                Event.preventDefault(oEvent);
-    
-            break;
-    
-        }
-
-    }
-
-
-    if(oEvent.keyCode == 27 && this.activeItem) { // Esc key
-
-        oSubmenu = this.activeItem.cfg.getProperty("submenu");
-
-        if(oSubmenu && oSubmenu.cfg.getProperty("visible")) {
-        
-            oSubmenu.hide();
-            this.activeItem.focus();
-        
-        }
-        else {
-
-            this.activeItem.cfg.setProperty("selected", false);
-            this.activeItem.blur();
-    
-        }
-
-        Event.preventDefault(oEvent);
-    
-    }
-
-},
-
-
-/**
-* @method _onClick
-* @description "click" event handler for the menu bar.
-* @protected
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuBar} p_oMenuBar Object representing the menu bar 
-* that fired the event.
-*/
-_onClick: function(p_sType, p_aArgs, p_oMenuBar) {
-
-    MenuBar.superclass._onClick.call(this, p_sType, p_aArgs, p_oMenuBar);
-
-    var oItem = p_aArgs[1],
-        oEvent,
-        oTarget,
-        oActiveItem,
-        oConfig,
-        oSubmenu;
-    
-
-    if(oItem && !oItem.cfg.getProperty("disabled")) {
-
-        oEvent = p_aArgs[0];
-        oTarget = Event.getTarget(oEvent);
-        oActiveItem = this.activeItem;
-        oConfig = this.cfg;
-
-
-        // Hide any other submenus that might be visible
-    
-        if(oActiveItem && oActiveItem != oItem) {
-    
-            this.clearActiveItem();
-    
-        }
-
-    
-        oItem.cfg.setProperty("selected", true);
-    
-
-        // Show the submenu for the item
-    
-        oSubmenu = oItem.cfg.getProperty("submenu");
-
-
-        if(oSubmenu) {
-        
-            if(oSubmenu.cfg.getProperty("visible")) {
-            
-                oSubmenu.hide();
-            
-            }
-            else {
-            
-                oSubmenu.show();                    
-            
-            }
-        
-        }
-    
-    }
-
-},
-
-
-
-// Public methods
-
-
-/**
-* @method toString
-* @description Returns a string representing the menu bar.
-* @return {String}
-*/
-toString: function() {
-
-    var sReturnVal = "MenuBar",
-        sId = this.id;
-
-    if(sId) {
-
-        sReturnVal += (" " + sId);
-    
-    }
-
-    return sReturnVal;
-
-},
-
-
-/**
-* @description Initializes the class's configurable properties which can be
-* changed using the menu bar's Config object ("cfg").
-* @method initDefaultConfig
-*/
-initDefaultConfig: function() {
-
-    MenuBar.superclass.initDefaultConfig.call(this);
-
-    var oConfig = this.cfg;
-
-       // Add configuration properties
-
-
-    /*
-        Set the default value for the "position" configuration property
-        to "static" by re-adding the property.
-    */
-
-
-    /**
-    * @config position
-    * @description String indicating how a menu bar should be positioned on the 
-    * screen.  Possible values are "static" and "dynamic."  Static menu bars 
-    * are visible by default and reside in the normal flow of the document 
-    * (CSS position: static).  Dynamic menu bars are hidden by default, reside
-    * out of the normal flow of the document (CSS position: absolute), and can 
-    * overlay other elements on the screen.
-    * @default static
-    * @type String
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.POSITION.key, 
-        {
-            handler: this.configPosition, 
-            value: DEFAULT_CONFIG.POSITION.value, 
-            validator: DEFAULT_CONFIG.POSITION.validator,
-            supercedes: DEFAULT_CONFIG.POSITION.supercedes
-        }
-    );
-
-
-    /*
-        Set the default value for the "submenualignment" configuration property
-        to ["tl","bl"] by re-adding the property.
-    */
-
-    /**
-    * @config submenualignment
-    * @description Array defining how submenus should be aligned to their 
-    * parent menu bar item. The format is: [itemCorner, submenuCorner].
-    * @default ["tl","bl"]
-    * @type Array
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.SUBMENU_ALIGNMENT.key, 
-        {
-            value: DEFAULT_CONFIG.SUBMENU_ALIGNMENT.value,
-            suppressEvent: DEFAULT_CONFIG.SUBMENU_ALIGNMENT.suppressEvent
-        }
-    );
-
-
-    /*
-        Change the default value for the "autosubmenudisplay" configuration 
-        property to "false" by re-adding the property.
-    */
-
-    /**
-    * @config autosubmenudisplay
-    * @description Boolean indicating if submenus are automatically made 
-    * visible when the user mouses over the menu bar's items.
-    * @default false
-    * @type Boolean
-    */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.key, 
-          {
-              value: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.value, 
-              validator: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.validator,
-              suppressEvent: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.suppressEvent
-       } 
-    );
-
-}
-}); // END YAHOO.lang.extend
-
-}());
-
-
-
-/**
-* Creates an item for a menu bar.
-* 
-* @param {String} p_oObject String specifying the text of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the 
-* <code>&#60;li&#62;</code> element of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object 
-* specifying the <code>&#60;optgroup&#62;</code> element of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying 
-* the <code>&#60;option&#62;</code> element of the menu bar item.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu bar item. See configuration class documentation 
-* for more details.
-* @class MenuBarItem
-* @constructor
-* @extends YAHOO.widget.MenuItem
-*/
-YAHOO.widget.MenuBarItem = function(p_oObject, p_oConfig) {
-
-    YAHOO.widget.MenuBarItem.superclass.constructor.call(this, 
-        p_oObject, p_oConfig);
-
-};
-
-YAHOO.lang.extend(YAHOO.widget.MenuBarItem, YAHOO.widget.MenuItem, {
-
-
-
-/**
-* @method init
-* @description The MenuBarItem class's initialization method. This method is 
-* automatically called by the constructor, and sets up all DOM references for 
-* pre-existing markup, and creates required markup if it is not already present.
-* @param {String} p_oObject String specifying the text of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the 
-* <code>&#60;li&#62;</code> element of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object 
-* specifying the <code>&#60;optgroup&#62;</code> element of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying 
-* the <code>&#60;option&#62;</code> element of the menu bar item.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu bar item. See configuration class documentation 
-* for more details.
-*/
-init: function(p_oObject, p_oConfig) {
-
-    if(!this.SUBMENU_TYPE) {
-
-        this.SUBMENU_TYPE = YAHOO.widget.Menu;
-
-    }
-
-
-    /* 
-        Call the init of the superclass (YAHOO.widget.MenuItem)
-        Note: We don't pass the user config in here yet 
-        because we only want it executed once, at the lowest 
-        subclass level.
-    */ 
-
-    YAHOO.widget.MenuBarItem.superclass.init.call(this, p_oObject);  
-
-
-    var oConfig = this.cfg;
-
-    if(p_oConfig) {
-
-        oConfig.applyConfig(p_oConfig, true);
-
-    }
-
-    oConfig.fireQueue();
-
-},
-
-
-
-// Constants
-
-
-/**
-* @property CSS_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the 
-* <code>&#60;li&#62;</code> element of the menu bar item.
-* @default "yuimenubaritem"
-* @final
-* @type String
-*/
-CSS_CLASS_NAME: "yuimenubaritem",
-
-
-/**
-* @property CSS_LABEL_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the 
-* menu bar item's <code>&#60;a&#62;</code> element.
-* @default "yuimenubaritemlabel"
-* @final
-* @type String
-*/
-CSS_LABEL_CLASS_NAME: "yuimenubaritemlabel",
-
-
-
-// Public methods
-
-
-/**
-* @method toString
-* @description Returns a string representing the menu bar item.
-* @return {String}
-*/
-toString: function() {
-
-    var sReturnVal = "MenuBarItem";
-
-    if(this.cfg && this.cfg.getProperty("text")) {
-
-        sReturnVal += (": " + this.cfg.getProperty("text"));
-
-    }
-
-    return sReturnVal;
-
-}
-    
-}); // END YAHOO.lang.extend
-YAHOO.register("menu", YAHOO.widget.Menu, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/menu/menu-min.js b/lib/yui/menu/menu-min.js
deleted file mode 100755 (executable)
index d91d760..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-(function(){var B=YAHOO.util.Dom,A=YAHOO.util.Event;YAHOO.widget.MenuManager=function(){var N=false,F={},Q={},J={},E={"click":"clickEvent","mousedown":"mouseDownEvent","mouseup":"mouseUpEvent","mouseover":"mouseOverEvent","mouseout":"mouseOutEvent","keydown":"keyDownEvent","keyup":"keyUpEvent","keypress":"keyPressEvent"},K=null;function D(S){var R;if(S&&S.tagName){switch(S.tagName.toUpperCase()){case"DIV":R=S.parentNode;if((B.hasClass(S,"hd")||B.hasClass(S,"bd")||B.hasClass(S,"ft"))&&R&&R.tagName&&R.tagName.toUpperCase()=="DIV"){return R;}else{return S;}break;case"LI":return S;default:R=S.parentNode;if(R){return D(R);}break;}}}function G(V){var R=A.getTarget(V),S=D(R),X,T,U,Z,Y;if(S){T=S.tagName.toUpperCase();if(T=="LI"){U=S.id;if(U&&J[U]){Z=J[U];Y=Z.parent;}}else{if(T=="DIV"){if(S.id){Y=F[S.id];}}}}if(Y){X=E[V.type];if(Z&&!Z.cfg.getProperty("disabled")){Z[X].fire(V);if(V.type=="keyup"||V.type=="mousedown"){if(K!=Z){if(K){K.blurEvent.fire();}Z.focusEvent.fire();}}}Y[X].fire(V,Z);}else{if(V.type=="mousedown"){if(K){K.blurEvent.fire();K=null;}for(var W in Q){if(YAHOO.lang.hasOwnProperty(Q,W)){Y=Q[W];if(Y.cfg.getProperty("clicktohide")&&!(Y instanceof YAHOO.widget.MenuBar)&&Y.cfg.getProperty("position")=="dynamic"){Y.hide();}else{Y.clearActiveItem(true);}}}}else{if(V.type=="keyup"){if(K){K.blurEvent.fire();K=null;}}}}}function P(S,R,T){if(F[T.id]){this.removeMenu(T);}}function M(S,R){var T=R[0];if(T){K=T;}}function H(S,R){K=null;}function C(T,S){var R=S[0],U=this.id;if(R){Q[U]=this;}else{if(Q[U]){delete Q[U];}}}function L(S,R){O(this);}function O(S){var R=S.id;if(R&&J[R]){if(K==S){K=null;}delete J[R];S.destroyEvent.unsubscribe(L);}}function I(S,R){var U=R[0],T;if(U instanceof YAHOO.widget.MenuItem){T=U.id;if(!J[T]){J[T]=U;U.destroyEvent.subscribe(L);}}}return{addMenu:function(S){var R;if(S instanceof YAHOO.widget.Menu&&S.id&&!F[S.id]){F[S.id]=S;if(!N){R=document;A.on(R,"mouseover",G,this,true);A.on(R,"mouseout",G,this,true);A.on(R,"mousedown",G,this,true);A.on(R,"mouseup",G,this,true);A.on(R,"click",G,this,true);A.on(R,"keydown",G,this,true);A.on(R,"keyup",G,this,true);A.on(R,"keypress",G,this,true);N=true;}S.cfg.subscribeToConfigEvent("visible",C);S.destroyEvent.subscribe(P,S,this);S.itemAddedEvent.subscribe(I);S.focusEvent.subscribe(M);S.blurEvent.subscribe(H);}},removeMenu:function(U){var S,R,T;if(U){S=U.id;if(F[S]==U){R=U.getItems();if(R&&R.length>0){T=R.length-1;do{O(R[T]);}while(T--);}delete F[S];if(Q[S]==U){delete Q[S];}if(U.cfg){U.cfg.unsubscribeFromConfigEvent("visible",C);}U.destroyEvent.unsubscribe(P,U);U.itemAddedEvent.unsubscribe(I);U.focusEvent.unsubscribe(M);U.blurEvent.unsubscribe(H);}}},hideVisible:function(){var R;for(var S in Q){if(YAHOO.lang.hasOwnProperty(Q,S)){R=Q[S];if(!(R instanceof YAHOO.widget.MenuBar)&&R.cfg.getProperty("position")=="dynamic"){R.hide();}}}},getVisible:function(){return Q;},getMenus:function(){return F;},getMenu:function(S){var R=F[S];if(R){return R;}},getMenuItem:function(R){var S=J[R];if(S){return S;}},getMenuItemGroup:function(U){var S=B.get(U),R,W,V,T;if(S&&S.tagName&&S.tagName.toUpperCase()=="UL"){W=S.firstChild;if(W){R=[];do{T=W.id;if(T){V=this.getMenuItem(T);if(V){R[R.length]=V;}}}while((W=W.nextSibling));if(R.length>0){return R;}}}},getFocusedMenuItem:function(){return K;},getFocusedMenu:function(){if(K){return(K.parent.getRoot());}},toString:function(){return"MenuManager";}};}();})();(function(){YAHOO.widget.Menu=function(O,N){if(N){this.parent=N.parent;this.lazyLoad=N.lazyLoad||N.lazyload;this.itemData=N.itemData||N.itemdata;}YAHOO.widget.Menu.superclass.constructor.call(this,O,N);};function I(N){if(typeof N=="string"){return("dynamic,static".indexOf((N.toLowerCase()))!=-1);}}var C=YAHOO.util.Dom,M=YAHOO.util.Event,D=YAHOO.widget.Module,B=YAHOO.widget.Overlay,F=YAHOO.widget.Menu,K=YAHOO.widget.MenuManager,L=YAHOO.util.CustomEvent,E=YAHOO.lang,H=YAHOO.env.ua,G,A={"MOUSE_OVER":"mouseover","MOUSE_OUT":"mouseout","MOUSE_DOWN":"mousedown","MOUSE_UP":"mouseup","CLICK":"click","KEY_PRESS":"keypress","KEY_DOWN":"keydown","KEY_UP":"keyup","FOCUS":"focus","BLUR":"blur","ITEM_ADDED":"itemAdded","ITEM_REMOVED":"itemRemoved"},J={"VISIBLE":{key:"visible",value:false,validator:E.isBoolean},"CONSTRAIN_TO_VIEWPORT":{key:"constraintoviewport",value:true,validator:E.isBoolean,supercedes:["iframe","x","y","xy"]},"POSITION":{key:"position",value:"dynamic",validator:I,supercedes:["visible","iframe"]},"SUBMENU_ALIGNMENT":{key:"submenualignment",value:["tl","tr"],suppressEvent:true},"AUTO_SUBMENU_DISPLAY":{key:"autosubmenudisplay",value:true,validator:E.isBoolean,suppressEvent:true},"SHOW_DELAY":{key:"showdelay",value:250,validator:E.isNumber,suppressEvent:true},"HIDE_DELAY":{key:"hidedelay",value:0,validator:E.isNumber,suppressEvent:true},"SUBMENU_HIDE_DELAY":{key:"submenuhidedelay",value:250,validator:E.isNumber,suppressEvent:true},"CLICK_TO_HIDE":{key:"clicktohide",value:true,validator:E.isBoolean,suppressEvent:true},"CONTAINER":{key:"container",suppressEvent:true},"SCROLL_INCREMENT":{key:"scrollincrement",value:1,validator:E.isNumber,supercedes:["maxheight"],suppressEvent:true},"MIN_SCROLL_HEIGHT":{key:"minscrollheight",value:90,validator:E.isNumber,supercedes:["maxheight"],suppressEvent:true},"MAX_HEIGHT":{key:"maxheight",value:0,validator:E.isNumber,supercedes:["iframe"],suppressEvent:true},"CLASS_NAME":{key:"classname",value:null,validator:E.isString,suppressEvent:true},"DISABLED":{key:"disabled",value:false,validator:E.isBoolean,suppressEvent:true}};YAHOO.lang.extend(F,B,{CSS_CLASS_NAME:"yuimenu",ITEM_TYPE:null,GROUP_TITLE_TAG_NAME:"h6",OFF_SCREEN_POSITION:[-10000,-10000],_nHideDelayId:null,_nShowDelayId:null,_nSubmenuHideDelayId:null,_nBodyScrollId:null,_bHideDelayEventHandlersAssigned:false,_bHandledMouseOverEvent:false,_bHandledMouseOutEvent:false,_aGroupTitleElements:null,_aItemGroups:null,_aListElements:null,_nCurrentMouseX:0,_bStopMouseEventHandlers:false,_sClassName:null,lazyLoad:false,itemData:null,activeItem:null,parent:null,srcElement:null,mouseOverEvent:null,mouseOutEvent:null,mouseDownEvent:null,mouseUpEvent:null,clickEvent:null,keyPressEvent:null,keyDownEvent:null,keyUpEvent:null,itemAddedEvent:null,itemRemovedEvent:null,init:function(P,O){this._aItemGroups=[];
-this._aListElements=[];this._aGroupTitleElements=[];if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuItem;}var N;if(typeof P=="string"){N=document.getElementById(P);}else{if(P.tagName){N=P;}}if(N&&N.tagName){switch(N.tagName.toUpperCase()){case"DIV":this.srcElement=N;if(!N.id){N.setAttribute("id",C.generateId());}F.superclass.init.call(this,N);this.beforeInitEvent.fire(F);break;case"SELECT":this.srcElement=N;F.superclass.init.call(this,C.generateId());this.beforeInitEvent.fire(F);break;}}else{F.superclass.init.call(this,P);this.beforeInitEvent.fire(F);}if(this.element){C.addClass(this.element,this.CSS_CLASS_NAME);this.initEvent.subscribe(this._onInit);this.beforeRenderEvent.subscribe(this._onBeforeRender);this.renderEvent.subscribe(this._onRender);this.renderEvent.subscribe(this.onRender);this.beforeShowEvent.subscribe(this._onBeforeShow);this.hideEvent.subscribe(this.positionOffScreen);this.showEvent.subscribe(this._onShow);this.beforeHideEvent.subscribe(this._onBeforeHide);this.mouseOverEvent.subscribe(this._onMouseOver);this.mouseOutEvent.subscribe(this._onMouseOut);this.clickEvent.subscribe(this._onClick);this.keyDownEvent.subscribe(this._onKeyDown);this.keyPressEvent.subscribe(this._onKeyPress);if(H.gecko||H.webkit){this.cfg.subscribeToConfigEvent("y",this._onYChange);}if(O){this.cfg.applyConfig(O,true);}K.addMenu(this);this.initEvent.fire(F);}},_initSubTree:function(){var O=this.srcElement,N,Q,T,U,S,R,P;if(O){N=(O.tagName&&O.tagName.toUpperCase());if(N=="DIV"){U=this.body.firstChild;if(U){Q=0;T=this.GROUP_TITLE_TAG_NAME.toUpperCase();do{if(U&&U.tagName){switch(U.tagName.toUpperCase()){case T:this._aGroupTitleElements[Q]=U;break;case"UL":this._aListElements[Q]=U;this._aItemGroups[Q]=[];Q++;break;}}}while((U=U.nextSibling));if(this._aListElements[0]){C.addClass(this._aListElements[0],"first-of-type");}}}U=null;if(N){switch(N){case"DIV":S=this._aListElements;R=S.length;if(R>0){P=R-1;do{U=S[P].firstChild;if(U){do{if(U&&U.tagName&&U.tagName.toUpperCase()=="LI"){this.addItem(new this.ITEM_TYPE(U,{parent:this}),P);}}while((U=U.nextSibling));}}while(P--);}break;case"SELECT":U=O.firstChild;do{if(U&&U.tagName){switch(U.tagName.toUpperCase()){case"OPTGROUP":case"OPTION":this.addItem(new this.ITEM_TYPE(U,{parent:this}));break;}}}while((U=U.nextSibling));break;}}}},_getFirstEnabledItem:function(){var N=this.getItems(),Q=N.length,P;for(var O=0;O<Q;O++){P=N[O];if(P&&!P.cfg.getProperty("disabled")&&P.element.style.display!="none"){return P;}}},_addItemToGroup:function(S,T,W){var U,X,Q,V,R,O,P;function N(Y,Z){return(Y[Z]||N(Y,(Z+1)));}if(T instanceof this.ITEM_TYPE){U=T;U.parent=this;}else{if(typeof T=="string"){U=new this.ITEM_TYPE(T,{parent:this});}else{if(typeof T=="object"){T.parent=this;U=new this.ITEM_TYPE(T.text,T);}}}if(U){if(U.cfg.getProperty("selected")){this.activeItem=U;}X=typeof S=="number"?S:0;Q=this._getItemGroup(X);if(!Q){Q=this._createItemGroup(X);}if(typeof W=="number"){R=(W>=Q.length);if(Q[W]){Q.splice(W,0,U);}else{Q[W]=U;}V=Q[W];if(V){if(R&&(!V.element.parentNode||V.element.parentNode.nodeType==11)){this._aListElements[X].appendChild(V.element);}else{O=N(Q,(W+1));if(O&&(!V.element.parentNode||V.element.parentNode.nodeType==11)){this._aListElements[X].insertBefore(V.element,O.element);}}V.parent=this;this._subscribeToItemEvents(V);this._configureSubmenu(V);this._updateItemProperties(X);this.itemAddedEvent.fire(V);this.changeContentEvent.fire();return V;}}else{P=Q.length;Q[P]=U;V=Q[P];if(V){if(!C.isAncestor(this._aListElements[X],V.element)){this._aListElements[X].appendChild(V.element);}V.element.setAttribute("groupindex",X);V.element.setAttribute("index",P);V.parent=this;V.index=P;V.groupIndex=X;this._subscribeToItemEvents(V);this._configureSubmenu(V);if(P===0){C.addClass(V.element,"first-of-type");}this.itemAddedEvent.fire(V);this.changeContentEvent.fire();return V;}}}},_removeItemFromGroupByIndex:function(Q,O){var P=typeof Q=="number"?Q:0,R=this._getItemGroup(P),T,S,N;if(R){T=R.splice(O,1);S=T[0];if(S){this._updateItemProperties(P);if(R.length===0){N=this._aListElements[P];if(this.body&&N){this.body.removeChild(N);}this._aItemGroups.splice(P,1);this._aListElements.splice(P,1);N=this._aListElements[0];if(N){C.addClass(N,"first-of-type");}}this.itemRemovedEvent.fire(S);this.changeContentEvent.fire();return S;}}},_removeItemFromGroupByValue:function(P,N){var R=this._getItemGroup(P),S,Q,O;if(R){S=R.length;Q=-1;if(S>0){O=S-1;do{if(R[O]==N){Q=O;break;}}while(O--);if(Q>-1){return(this._removeItemFromGroupByIndex(P,Q));}}}},_updateItemProperties:function(O){var P=this._getItemGroup(O),S=P.length,R,Q,N;if(S>0){N=S-1;do{R=P[N];if(R){Q=R.element;R.index=N;R.groupIndex=O;Q.setAttribute("groupindex",O);Q.setAttribute("index",N);C.removeClass(Q,"first-of-type");}}while(N--);if(Q){C.addClass(Q,"first-of-type");}}},_createItemGroup:function(O){var N;if(!this._aItemGroups[O]){this._aItemGroups[O]=[];N=document.createElement("ul");this._aListElements[O]=N;return this._aItemGroups[O];}},_getItemGroup:function(O){var N=((typeof O=="number")?O:0);return this._aItemGroups[N];},_configureSubmenu:function(N){var O=N.cfg.getProperty("submenu");if(O){this.cfg.configChangedEvent.subscribe(this._onParentMenuConfigChange,O,true);this.renderEvent.subscribe(this._onParentMenuRender,O,true);O.beforeShowEvent.subscribe(this._onSubmenuBeforeShow);}},_subscribeToItemEvents:function(N){N.focusEvent.subscribe(this._onMenuItemFocus);N.blurEvent.subscribe(this._onMenuItemBlur);N.destroyEvent.subscribe(this._onMenuItemDestroy,N,this);N.cfg.configChangedEvent.subscribe(this._onMenuItemConfigChange,N,this);},_onVisibleChange:function(P,O){var N=O[0];if(N){C.addClass(this.element,"visible");}else{C.removeClass(this.element,"visible");}},_cancelHideDelay:function(){var N=this.getRoot();if(N._nHideDelayId){window.clearTimeout(N._nHideDelayId);}},_execHideDelay:function(){this._cancelHideDelay();var O=this.getRoot(),P=this;function N(){if(O.activeItem){O.clearActiveItem();}if(O==P&&!(P instanceof YAHOO.widget.MenuBar)&&P.cfg.getProperty("position")=="dynamic"){P.hide();
-}}O._nHideDelayId=window.setTimeout(N,O.cfg.getProperty("hidedelay"));},_cancelShowDelay:function(){var N=this.getRoot();if(N._nShowDelayId){window.clearTimeout(N._nShowDelayId);}},_execShowDelay:function(P){var O=this.getRoot();function N(){if(P.parent.cfg.getProperty("selected")){P.show();}}O._nShowDelayId=window.setTimeout(N,O.cfg.getProperty("showdelay"));},_execSubmenuHideDelay:function(Q,O,N){var P=this;Q._nSubmenuHideDelayId=window.setTimeout(function(){if(P._nCurrentMouseX>(O+10)){Q._nSubmenuHideDelayId=window.setTimeout(function(){Q.hide();},N);}else{Q.hide();}},50);},_disableScrollHeader:function(){if(!this._bHeaderDisabled){C.addClass(this.header,"topscrollbar_disabled");this._bHeaderDisabled=true;}},_disableScrollFooter:function(){if(!this._bFooterDisabled){C.addClass(this.footer,"bottomscrollbar_disabled");this._bFooterDisabled=true;}},_enableScrollHeader:function(){if(this._bHeaderDisabled){C.removeClass(this.header,"topscrollbar_disabled");this._bHeaderDisabled=false;}},_enableScrollFooter:function(){if(this._bFooterDisabled){C.removeClass(this.footer,"bottomscrollbar_disabled");this._bFooterDisabled=false;}},_onMouseOver:function(W,R){if(this._bStopMouseEventHandlers){return false;}var X=R[0],V=R[1],N=M.getTarget(X),O,Q,U,P,T,S;if(!this._bHandledMouseOverEvent&&(N==this.element||C.isAncestor(this.element,N))){this._nCurrentMouseX=0;M.on(this.element,"mousemove",this._onMouseMove,this,true);if(!C.isAncestor(V.element,M.getRelatedTarget(X))){this.clearActiveItem();}if(this.parent&&this._nSubmenuHideDelayId){window.clearTimeout(this._nSubmenuHideDelayId);this.parent.cfg.setProperty("selected",true);O=this.parent.parent;O._bHandledMouseOutEvent=true;O._bHandledMouseOverEvent=false;}this._bHandledMouseOverEvent=true;this._bHandledMouseOutEvent=false;}if(V&&!V.handledMouseOverEvent&&!V.cfg.getProperty("disabled")&&(N==V.element||C.isAncestor(V.element,N))){Q=this.cfg.getProperty("showdelay");U=(Q>0);if(U){this._cancelShowDelay();}P=this.activeItem;if(P){P.cfg.setProperty("selected",false);}T=V.cfg;T.setProperty("selected",true);if(this.hasFocus()){V.focus();}if(this.cfg.getProperty("autosubmenudisplay")){S=T.getProperty("submenu");if(S){if(U){this._execShowDelay(S);}else{S.show();}}}V.handledMouseOverEvent=true;V.handledMouseOutEvent=false;}},_onMouseOut:function(V,P){if(this._bStopMouseEventHandlers){return false;}var W=P[0],T=P[1],Q=M.getRelatedTarget(W),U=false,S,R,N,O;if(T&&!T.cfg.getProperty("disabled")){S=T.cfg;R=S.getProperty("submenu");if(R&&(Q==R.element||C.isAncestor(R.element,Q))){U=true;}if(!T.handledMouseOutEvent&&((Q!=T.element&&!C.isAncestor(T.element,Q))||U)){if(!U){T.cfg.setProperty("selected",false);if(R){N=this.cfg.getProperty("submenuhidedelay");O=this.cfg.getProperty("showdelay");if(!(this instanceof YAHOO.widget.MenuBar)&&N>0&&O>=N){this._execSubmenuHideDelay(R,M.getPageX(W),N);}else{R.hide();}}}T.handledMouseOutEvent=true;T.handledMouseOverEvent=false;}}if(!this._bHandledMouseOutEvent&&((Q!=this.element&&!C.isAncestor(this.element,Q))||U)){M.removeListener(this.element,"mousemove",this._onMouseMove);this._nCurrentMouseX=M.getPageX(W);this._bHandledMouseOutEvent=true;this._bHandledMouseOverEvent=false;}},_onMouseMove:function(O,N){if(this._bStopMouseEventHandlers){return false;}this._nCurrentMouseX=M.getPageX(O);},_onClick:function(Y,Q){var W=YAHOO.util.Event,P=YAHOO.util.Dom,Z=Q[0],T=Q[1],R,V=false,O,N,S,U,X;if(T){if(T.cfg.getProperty("disabled")){W.preventDefault(Z);}else{R=T.cfg.getProperty("submenu");S=T.cfg.getProperty("url");if(S){U=S.indexOf("#");X=S.length;if(U!=-1){S=S.substr(U,X);X=S.length;if(X>1){N=S.substr(1,X);V=P.isAncestor(this.element,N);}else{if(X===1){V=true;}}}}if(V&&!T.cfg.getProperty("target")){W.preventDefault(Z);T.focus();}if(!R){O=this.getRoot();if(O instanceof YAHOO.widget.MenuBar||O.cfg.getProperty("position")=="static"){O.clearActiveItem();}else{O.hide();}}}}},_onKeyDown:function(b,V){var Y=V[0],X=V[1],f=this,U,Z,O,S,c,N,e,R,a,Q,W,d,T;function P(){f._bStopMouseEventHandlers=true;window.setTimeout(function(){f._bStopMouseEventHandlers=false;},10);}if(X&&!X.cfg.getProperty("disabled")){Z=X.cfg;O=this.parent;switch(Y.keyCode){case 38:case 40:c=(Y.keyCode==38)?X.getPreviousEnabledSibling():X.getNextEnabledSibling();if(c){this.clearActiveItem();c.cfg.setProperty("selected",true);c.focus();if(this.cfg.getProperty("maxheight")>0){N=this.body;e=N.scrollTop;R=N.offsetHeight;a=this.getItems();Q=a.length-1;W=c.element.offsetTop;if(Y.keyCode==40){if(W>=(R+e)){N.scrollTop=W-R;}else{if(W<=e){N.scrollTop=0;}}if(c==a[Q]){N.scrollTop=c.element.offsetTop;}}else{if(W<=e){N.scrollTop=W-c.element.offsetHeight;}else{if(W>=(e+R)){N.scrollTop=W;}}if(c==a[0]){N.scrollTop=0;}}e=N.scrollTop;d=N.scrollHeight-N.offsetHeight;if(e===0){this._disableScrollHeader();this._enableScrollFooter();}else{if(e==d){this._enableScrollHeader();this._disableScrollFooter();}else{this._enableScrollHeader();this._enableScrollFooter();}}}}M.preventDefault(Y);P();break;case 39:U=Z.getProperty("submenu");if(U){if(!Z.getProperty("selected")){Z.setProperty("selected",true);}U.show();U.setInitialFocus();U.setInitialSelection();}else{S=this.getRoot();if(S instanceof YAHOO.widget.MenuBar){c=S.activeItem.getNextEnabledSibling();if(c){S.clearActiveItem();c.cfg.setProperty("selected",true);U=c.cfg.getProperty("submenu");if(U){U.show();}c.focus();}}}M.preventDefault(Y);P();break;case 37:if(O){T=O.parent;if(T instanceof YAHOO.widget.MenuBar){c=T.activeItem.getPreviousEnabledSibling();if(c){T.clearActiveItem();c.cfg.setProperty("selected",true);U=c.cfg.getProperty("submenu");if(U){U.show();}c.focus();}}else{this.hide();O.focus();}}M.preventDefault(Y);P();break;}}if(Y.keyCode==27){if(this.cfg.getProperty("position")=="dynamic"){this.hide();if(this.parent){this.parent.focus();}}else{if(this.activeItem){U=this.activeItem.cfg.getProperty("submenu");if(U&&U.cfg.getProperty("visible")){U.hide();this.activeItem.focus();}else{this.activeItem.blur();this.activeItem.cfg.setProperty("selected",false);
-}}}M.preventDefault(Y);}},_onKeyPress:function(P,O){var N=O[0];if(N.keyCode==40||N.keyCode==38){M.preventDefault(N);}},_onYChange:function(O,N){var Q=this.parent,S,P,R;if(Q){S=Q.parent.body.scrollTop;if(S>0){R=(this.cfg.getProperty("y")-S);C.setY(this.element,R);P=this.iframe;if(P){C.setY(P,R);}this.cfg.setProperty("y",R,true);}}},_onScrollTargetMouseOver:function(T,W){this._cancelHideDelay();var P=M.getTarget(T),R=this.body,V=this,Q=this.cfg.getProperty("scrollincrement"),N,O;function U(){var X=R.scrollTop;if(X<N){R.scrollTop=(X+Q);V._enableScrollHeader();}else{R.scrollTop=N;window.clearInterval(V._nBodyScrollId);V._disableScrollFooter();}}function S(){var X=R.scrollTop;if(X>0){R.scrollTop=(X-Q);V._enableScrollFooter();}else{R.scrollTop=0;window.clearInterval(V._nBodyScrollId);V._disableScrollHeader();}}if(C.hasClass(P,"hd")){O=S;}else{N=R.scrollHeight-R.offsetHeight;O=U;}this._nBodyScrollId=window.setInterval(O,10);},_onScrollTargetMouseOut:function(O,N){window.clearInterval(this._nBodyScrollId);this._cancelHideDelay();},_onInit:function(O,N){this.cfg.subscribeToConfigEvent("visible",this._onVisibleChange);var P=!this.parent,Q=this.lazyLoad;if(((P&&!Q)||(P&&(this.cfg.getProperty("visible")||this.cfg.getProperty("position")=="static"))||(!P&&!Q))&&this.getItemGroups().length===0){if(this.srcElement){this._initSubTree();}if(this.itemData){this.addItems(this.itemData);}}else{if(Q){this.cfg.fireQueue();}}},_onBeforeRender:function(Q,P){var R=this.element,U=this._aListElements.length,O=true,T=0,N,S;if(U>0){do{N=this._aListElements[T];if(N){if(O){C.addClass(N,"first-of-type");O=false;}if(!C.isAncestor(R,N)){this.appendToBody(N);}S=this._aGroupTitleElements[T];if(S){if(!C.isAncestor(R,S)){N.parentNode.insertBefore(S,N);}C.addClass(N,"hastitle");}}T++;}while(T<U);}},_onRender:function(O,N){if(this.cfg.getProperty("position")=="dynamic"){if(!this.cfg.getProperty("visible")){this.positionOffScreen();}}},_onBeforeShow:function(W,R){var V,O,S,Q,T;if(this.lazyLoad&&this.getItemGroups().length===0){if(this.srcElement){this._initSubTree();}if(this.itemData){if(this.parent&&this.parent.parent&&this.parent.parent.srcElement&&this.parent.parent.srcElement.tagName.toUpperCase()=="SELECT"){V=this.itemData.length;for(O=0;O<V;O++){if(this.itemData[O].tagName){this.addItem((new this.ITEM_TYPE(this.itemData[O])));}}}else{this.addItems(this.itemData);}}T=this.srcElement;if(T){if(T.tagName.toUpperCase()=="SELECT"){if(C.inDocument(T)){this.render(T.parentNode);}else{this.render(this.cfg.getProperty("container"));}}else{this.render();}}else{if(this.parent){this.render(this.parent.element);}else{this.render(this.cfg.getProperty("container"));}}}var P=this.cfg.getProperty("maxheight"),N=this.cfg.getProperty("minscrollheight"),U=this.cfg.getProperty("position")=="dynamic";if(!this.parent&&U){this.cfg.refireEvent("xy");}function X(){this.cfg.setProperty("maxheight",0);this.hideEvent.unsubscribe(X);}if(!(this instanceof YAHOO.widget.MenuBar)&&U){if(P===0){S=C.getViewportHeight();if(this.parent&&this.parent.parent instanceof YAHOO.widget.MenuBar){Q=YAHOO.util.Region.getRegion(this.parent.element);S=(S-Q.bottom);}if(this.element.offsetHeight>=S){P=(S-(B.VIEWPORT_OFFSET*2));if(P<N){P=N;}this.cfg.setProperty("maxheight",P);this.hideEvent.subscribe(X);}}}},_onShow:function(Q,P){var T=this.parent,S,N,O;function R(V){var U;if(V.type=="mousedown"||(V.type=="keydown"&&V.keyCode==27)){U=M.getTarget(V);if(U!=S.element||!C.isAncestor(S.element,U)){S.cfg.setProperty("autosubmenudisplay",false);M.removeListener(document,"mousedown",R);M.removeListener(document,"keydown",R);}}}if(T){S=T.parent;N=S.cfg.getProperty("submenualignment");O=this.cfg.getProperty("submenualignment");if((N[0]!=O[0])&&(N[1]!=O[1])){this.cfg.setProperty("submenualignment",[N[0],N[1]]);}if(!S.cfg.getProperty("autosubmenudisplay")&&(S instanceof YAHOO.widget.MenuBar||S.cfg.getProperty("position")=="static")){S.cfg.setProperty("autosubmenudisplay",true);M.on(document,"mousedown",R);M.on(document,"keydown",R);}}},_onBeforeHide:function(P,O){var N=this.activeItem,R,Q;if(N){R=N.cfg;R.setProperty("selected",false);Q=R.getProperty("submenu");if(Q){Q.hide();}}if(this.getRoot()==this){this.blur();}},_onParentMenuConfigChange:function(O,N,R){var P=N[0][0],Q=N[0][1];switch(P){case"iframe":case"constraintoviewport":case"hidedelay":case"showdelay":case"submenuhidedelay":case"clicktohide":case"effect":case"classname":case"scrollincrement":case"minscrollheight":R.cfg.setProperty(P,Q);break;}},_onParentMenuRender:function(O,N,S){var P=S.parent.parent.cfg,Q={constraintoviewport:P.getProperty("constraintoviewport"),xy:[0,0],clicktohide:P.getProperty("clicktohide"),effect:P.getProperty("effect"),showdelay:P.getProperty("showdelay"),hidedelay:P.getProperty("hidedelay"),submenuhidedelay:P.getProperty("submenuhidedelay"),classname:P.getProperty("classname"),scrollincrement:P.getProperty("scrollincrement"),minscrollheight:P.getProperty("minscrollheight"),iframe:P.getProperty("iframe")},R;S.cfg.applyConfig(Q);if(!this.lazyLoad){R=this.parent.element;if(this.element.parentNode==R){this.render();}else{this.render(R);}}},_onSubmenuBeforeShow:function(P,O){var Q=this.parent,N=Q.parent.cfg.getProperty("submenualignment");if(!this.cfg.getProperty("context")){this.cfg.setProperty("context",[Q.element,N[0],N[1]]);}else{this.align();}},_onMenuItemFocus:function(O,N){this.parent.focusEvent.fire(this);},_onMenuItemBlur:function(O,N){this.parent.blurEvent.fire(this);},_onMenuItemDestroy:function(P,O,N){this._removeItemFromGroupByValue(N.groupIndex,N);},_onMenuItemConfigChange:function(P,O,N){var R=O[0][0],S=O[0][1],Q;switch(R){case"selected":if(S===true){this.activeItem=N;}break;case"submenu":Q=O[0][1];if(Q){this._configureSubmenu(N);}break;}},enforceConstraints:function(Q,P,W){var j=this.parent,f=B.VIEWPORT_OFFSET,b=this.element,S=this.cfg,T=P[0],R=b.offsetHeight,c=b.offsetWidth,i=C.getViewportWidth(),a=C.getViewportHeight(),Z=(j&&j.parent instanceof YAHOO.widget.MenuBar)?0:f,d=S.getProperty("context"),X=d?d[0]:null,Y,h,O,N,g,e,V,U;
-if(c<i){V=T[0];g=C.getDocumentScrollLeft();h=g+Z;N=g+i-c-Z;if(V<f){V=h;}else{if((V+c)>i){if(X&&((V-X.offsetWidth)>c)){if(j&&j.parent instanceof YAHOO.widget.MenuBar){V=(V-(c-X.offsetWidth));}else{V=(V-(X.offsetWidth+c));}}else{V=N;}}}}if(R<a){U=T[1];e=C.getDocumentScrollTop();Y=e+Z;O=e+a-R-Z;if(U<f){U=Y;}else{if(U>O){if(X&&(U>R)){U=((U+X.offsetHeight)-R);}else{U=O;}}}}S.setProperty("x",V,true);S.setProperty("y",U,true);S.setProperty("xy",[V,U],true);},configVisible:function(P,O,Q){var N,R;if(this.cfg.getProperty("position")=="dynamic"){F.superclass.configVisible.call(this,P,O,Q);}else{N=O[0];R=C.getStyle(this.element,"display");C.setStyle(this.element,"visibility","visible");if(N){if(R!="block"){this.beforeShowEvent.fire();C.setStyle(this.element,"display","block");this.showEvent.fire();}}else{if(R=="block"){this.beforeHideEvent.fire();C.setStyle(this.element,"display","none");this.hideEvent.fire();}}}},configPosition:function(P,O,S){var R=this.element,Q=O[0]=="static"?"static":"absolute",T=this.cfg,N;C.setStyle(R,"position",Q);if(Q=="static"){C.setStyle(R,"display","block");T.setProperty("visible",true);}else{C.setStyle(R,"visibility","hidden");}if(Q=="absolute"){N=T.getProperty("zindex");if(!N||N===0){N=this.parent?(this.parent.parent.cfg.getProperty("zindex")+1):1;T.setProperty("zindex",N);}}},configIframe:function(O,N,P){if(this.cfg.getProperty("position")=="dynamic"){F.superclass.configIframe.call(this,O,N,P);}},configHideDelay:function(O,N,R){var T=N[0],S=this.mouseOutEvent,P=this.mouseOverEvent,Q=this.keyDownEvent;if(T>0){if(!this._bHideDelayEventHandlersAssigned){S.subscribe(this._execHideDelay);P.subscribe(this._cancelHideDelay);Q.subscribe(this._cancelHideDelay);this._bHideDelayEventHandlersAssigned=true;}}else{S.unsubscribe(this._execHideDelay);P.unsubscribe(this._cancelHideDelay);Q.unsubscribe(this._cancelHideDelay);this._bHideDelayEventHandlersAssigned=false;}},configContainer:function(O,N,Q){var P=N[0];if(typeof P=="string"){this.cfg.setProperty("container",document.getElementById(P),true);}},_setMaxHeight:function(O,N,P){this.cfg.setProperty("maxheight",P);this.renderEvent.unsubscribe(this._setMaxHeight);},configMaxHeight:function(a,U,X){var T=U[0],Q=this.element,R=this.body,Y=this.header,O=this.footer,W=this._onScrollTargetMouseOver,b=this._onScrollTargetMouseOut,N=this.cfg.getProperty("minscrollheight"),V,S,P;if(T!==0&&T<N){T=N;}if(this.lazyLoad&&!R){this.renderEvent.unsubscribe(this._setMaxHeight);if(T>0){this.renderEvent.subscribe(this._setMaxHeight,T,this);}return ;}C.setStyle(R,"height","");C.removeClass(R,"yui-menu-body-scrolled");var Z=((H.gecko&&this.parent&&this.parent.parent&&this.parent.parent.cfg.getProperty("position")=="dynamic")||H.ie);if(Z){if(!this.cfg.getProperty("width")){S=Q.offsetWidth;Q.style.width=S+"px";P=(S-(Q.offsetWidth-S))+"px";this.cfg.setProperty("width",P);}}if(!Y&&!O){this.setHeader("&#32;");this.setFooter("&#32;");Y=this.header;O=this.footer;C.addClass(Y,"topscrollbar");C.addClass(O,"bottomscrollbar");Q.insertBefore(Y,R);Q.appendChild(O);}V=(T-(Y.offsetHeight+Y.offsetHeight));if(V>0&&(R.offsetHeight>T)){C.addClass(R,"yui-menu-body-scrolled");C.setStyle(R,"height",(V+"px"));M.on(Y,"mouseover",W,this,true);M.on(Y,"mouseout",b,this,true);M.on(O,"mouseover",W,this,true);M.on(O,"mouseout",b,this,true);this._disableScrollHeader();this._enableScrollFooter();}else{if(Y&&O){if(Z){this.cfg.setProperty("width","");}this._enableScrollHeader();this._enableScrollFooter();M.removeListener(Y,"mouseover",W);M.removeListener(Y,"mouseout",b);M.removeListener(O,"mouseover",W);M.removeListener(O,"mouseout",b);Q.removeChild(Y);Q.removeChild(O);this.header=null;this.footer=null;}}this.cfg.refireEvent("iframe");},configClassName:function(P,O,Q){var N=O[0];if(this._sClassName){C.removeClass(this.element,this._sClassName);}C.addClass(this.element,N);this._sClassName=N;},_onItemAdded:function(O,N){var P=N[0];if(P){P.cfg.setProperty("disabled",true);}},configDisabled:function(P,O,S){var R=O[0],N=this.getItems(),T,Q;if(E.isArray(N)){T=N.length;if(T>0){Q=T-1;do{N[Q].cfg.setProperty("disabled",R);}while(Q--);}if(R){this.clearActiveItem(true);C.addClass(this.element,"disabled");this.itemAddedEvent.subscribe(this._onItemAdded);}else{C.removeClass(this.element,"disabled");this.itemAddedEvent.unsubscribe(this._onItemAdded);}}},onRender:function(R,Q){function S(){var W=this.element,V=this._shadow;if(V&&W){V.style.width=(W.offsetWidth+6)+"px";V.style.height=(W.offsetHeight+1)+"px";}}function U(){this.element.appendChild(this._shadow);}function O(){C.addClass(this._shadow,"yui-menu-shadow-visible");}function N(){C.removeClass(this._shadow,"yui-menu-shadow-visible");}function T(){var W=this._shadow,V,X;if(!W){V=this.element;X=this;if(!G){G=document.createElement("div");G.className="yui-menu-shadow yui-menu-shadow-visible";}W=G.cloneNode(false);V.appendChild(W);this._shadow=W;this.beforeShowEvent.subscribe(O);this.beforeHideEvent.subscribe(N);if(H.ie){window.setTimeout(function(){S.call(X);X.syncIframe();},0);this.cfg.subscribeToConfigEvent("width",S);this.cfg.subscribeToConfigEvent("height",S);this.cfg.subscribeToConfigEvent("maxheight",S);this.changeContentEvent.subscribe(S);D.textResizeEvent.subscribe(S,X,true);this.destroyEvent.subscribe(function(){D.textResizeEvent.unsubscribe(S,X);});}this.cfg.subscribeToConfigEvent("maxheight",U);}}function P(){T.call(this);this.beforeShowEvent.unsubscribe(P);}if(this.cfg.getProperty("position")=="dynamic"){if(this.cfg.getProperty("visible")){T.call(this);}else{this.beforeShowEvent.subscribe(P);}}},initEvents:function(){F.superclass.initEvents.call(this);var N=L.LIST;this.mouseOverEvent=this.createEvent(A.MOUSE_OVER);this.mouseOverEvent.signature=N;this.mouseOutEvent=this.createEvent(A.MOUSE_OUT);this.mouseOutEvent.signature=N;this.mouseDownEvent=this.createEvent(A.MOUSE_DOWN);this.mouseDownEvent.signature=N;this.mouseUpEvent=this.createEvent(A.MOUSE_UP);this.mouseUpEvent.signature=N;this.clickEvent=this.createEvent(A.CLICK);this.clickEvent.signature=N;
-this.keyPressEvent=this.createEvent(A.KEY_PRESS);this.keyPressEvent.signature=N;this.keyDownEvent=this.createEvent(A.KEY_DOWN);this.keyDownEvent.signature=N;this.keyUpEvent=this.createEvent(A.KEY_UP);this.keyUpEvent.signature=N;this.focusEvent=this.createEvent(A.FOCUS);this.focusEvent.signature=N;this.blurEvent=this.createEvent(A.BLUR);this.blurEvent.signature=N;this.itemAddedEvent=this.createEvent(A.ITEM_ADDED);this.itemAddedEvent.signature=N;this.itemRemovedEvent=this.createEvent(A.ITEM_REMOVED);this.itemRemovedEvent.signature=N;},positionOffScreen:function(){var O=this.iframe,N=this.OFF_SCREEN_POSITION;C.setXY(this.element,N);if(O){C.setXY(O,N);}},getRoot:function(){var O=this.parent,N;if(O){N=O.parent;return N?N.getRoot():this;}else{return this;}},toString:function(){var O="Menu",N=this.id;if(N){O+=(" "+N);}return O;},setItemGroupTitle:function(S,R){var Q,P,O,N;if(typeof S=="string"&&S.length>0){Q=typeof R=="number"?R:0;P=this._aGroupTitleElements[Q];if(P){P.innerHTML=S;}else{P=document.createElement(this.GROUP_TITLE_TAG_NAME);P.innerHTML=S;this._aGroupTitleElements[Q]=P;}O=this._aGroupTitleElements.length-1;do{if(this._aGroupTitleElements[O]){C.removeClass(this._aGroupTitleElements[O],"first-of-type");N=O;}}while(O--);if(N!==null){C.addClass(this._aGroupTitleElements[N],"first-of-type");}this.changeContentEvent.fire();}},addItem:function(N,O){if(N){return this._addItemToGroup(O,N);}},addItems:function(Q,P){var S,N,R,O;if(E.isArray(Q)){S=Q.length;N=[];for(O=0;O<S;O++){R=Q[O];if(R){if(E.isArray(R)){N[N.length]=this.addItems(R,O);}else{N[N.length]=this._addItemToGroup(P,R);}}}if(N.length){return N;}}},insertItem:function(N,O,P){if(N){return this._addItemToGroup(P,N,O);}},removeItem:function(N,O){var P;if(typeof N!="undefined"){if(N instanceof YAHOO.widget.MenuItem){P=this._removeItemFromGroupByValue(O,N);}else{if(typeof N=="number"){P=this._removeItemFromGroupByIndex(O,N);}}if(P){P.destroy();return P;}}},getItems:function(){var P=this._aItemGroups,O,N=[];if(E.isArray(P)){O=P.length;return((O==1)?P[0]:(Array.prototype.concat.apply(N,P)));}},getItemGroups:function(){return this._aItemGroups;},getItem:function(N,O){var P;if(typeof N=="number"){P=this._getItemGroup(O);if(P){return P[N];}}},getSubmenus:function(){var O=this.getItems(),S=O.length,N,P,R,Q;if(S>0){N=[];for(Q=0;Q<S;Q++){R=O[Q];if(R){P=R.cfg.getProperty("submenu");if(P){N[N.length]=P;}}}}return N;},clearContent:function(){var R=this.getItems(),O=R.length,P=this.element,Q=this.body,V=this.header,N=this.footer,U,T,S;if(O>0){S=O-1;do{U=R[S];if(U){T=U.cfg.getProperty("submenu");if(T){this.cfg.configChangedEvent.unsubscribe(this._onParentMenuConfigChange,T);this.renderEvent.unsubscribe(this._onParentMenuRender,T);}this.removeItem(U);}}while(S--);}if(V){M.purgeElement(V);P.removeChild(V);}if(N){M.purgeElement(N);P.removeChild(N);}if(Q){M.purgeElement(Q);Q.innerHTML="";}this.activeItem=null;this._aItemGroups=[];this._aListElements=[];this._aGroupTitleElements=[];this.cfg.setProperty("width",null);},destroy:function(){this.clearContent();this._aItemGroups=null;this._aListElements=null;this._aGroupTitleElements=null;F.superclass.destroy.call(this);},setInitialFocus:function(){var N=this._getFirstEnabledItem();if(N){N.focus();}},setInitialSelection:function(){var N=this._getFirstEnabledItem();if(N){N.cfg.setProperty("selected",true);}},clearActiveItem:function(P){if(this.cfg.getProperty("showdelay")>0){this._cancelShowDelay();}var N=this.activeItem,Q,O;if(N){Q=N.cfg;if(P){N.blur();}Q.setProperty("selected",false);O=Q.getProperty("submenu");if(O){O.hide();}this.activeItem=null;}},focus:function(){if(!this.hasFocus()){this.setInitialFocus();}},blur:function(){var N;if(this.hasFocus()){N=K.getFocusedMenuItem();if(N){N.blur();}}},hasFocus:function(){return(K.getFocusedMenu()==this.getRoot());},subscribe:function(){function Q(V,U,X){var Y=U[0],W=Y.cfg.getProperty("submenu");if(W){W.subscribe.apply(W,X);}}function T(V,U,X){var W=this.cfg.getProperty("submenu");if(W){W.subscribe.apply(W,X);}}F.superclass.subscribe.apply(this,arguments);F.superclass.subscribe.call(this,"itemAdded",Q,arguments);var N=this.getItems(),S,R,O,P;if(N){S=N.length;if(S>0){P=S-1;do{R=N[P];O=R.cfg.getProperty("submenu");if(O){O.subscribe.apply(O,arguments);}else{R.cfg.subscribeToConfigEvent("submenu",T,arguments);}}while(P--);}}},initDefaultConfig:function(){F.superclass.initDefaultConfig.call(this);var N=this.cfg;N.addProperty(J.VISIBLE.key,{handler:this.configVisible,value:J.VISIBLE.value,validator:J.VISIBLE.validator});N.addProperty(J.CONSTRAIN_TO_VIEWPORT.key,{handler:this.configConstrainToViewport,value:J.CONSTRAIN_TO_VIEWPORT.value,validator:J.CONSTRAIN_TO_VIEWPORT.validator,supercedes:J.CONSTRAIN_TO_VIEWPORT.supercedes});N.addProperty(J.POSITION.key,{handler:this.configPosition,value:J.POSITION.value,validator:J.POSITION.validator,supercedes:J.POSITION.supercedes});N.addProperty(J.SUBMENU_ALIGNMENT.key,{value:J.SUBMENU_ALIGNMENT.value,suppressEvent:J.SUBMENU_ALIGNMENT.suppressEvent});N.addProperty(J.AUTO_SUBMENU_DISPLAY.key,{value:J.AUTO_SUBMENU_DISPLAY.value,validator:J.AUTO_SUBMENU_DISPLAY.validator,suppressEvent:J.AUTO_SUBMENU_DISPLAY.suppressEvent});N.addProperty(J.SHOW_DELAY.key,{value:J.SHOW_DELAY.value,validator:J.SHOW_DELAY.validator,suppressEvent:J.SHOW_DELAY.suppressEvent});N.addProperty(J.HIDE_DELAY.key,{handler:this.configHideDelay,value:J.HIDE_DELAY.value,validator:J.HIDE_DELAY.validator,suppressEvent:J.HIDE_DELAY.suppressEvent});N.addProperty(J.SUBMENU_HIDE_DELAY.key,{value:J.SUBMENU_HIDE_DELAY.value,validator:J.SUBMENU_HIDE_DELAY.validator,suppressEvent:J.SUBMENU_HIDE_DELAY.suppressEvent});N.addProperty(J.CLICK_TO_HIDE.key,{value:J.CLICK_TO_HIDE.value,validator:J.CLICK_TO_HIDE.validator,suppressEvent:J.CLICK_TO_HIDE.suppressEvent});N.addProperty(J.CONTAINER.key,{handler:this.configContainer,value:document.body,suppressEvent:J.CONTAINER.suppressEvent});N.addProperty(J.SCROLL_INCREMENT.key,{value:J.SCROLL_INCREMENT.value,validator:J.SCROLL_INCREMENT.validator,supercedes:J.SCROLL_INCREMENT.supercedes,suppressEvent:J.SCROLL_INCREMENT.suppressEvent});
-N.addProperty(J.MIN_SCROLL_HEIGHT.key,{value:J.MIN_SCROLL_HEIGHT.value,validator:J.MIN_SCROLL_HEIGHT.validator,supercedes:J.MIN_SCROLL_HEIGHT.supercedes,suppressEvent:J.MIN_SCROLL_HEIGHT.suppressEvent});N.addProperty(J.MAX_HEIGHT.key,{handler:this.configMaxHeight,value:J.MAX_HEIGHT.value,validator:J.MAX_HEIGHT.validator,suppressEvent:J.MAX_HEIGHT.suppressEvent,supercedes:J.MAX_HEIGHT.supercedes});N.addProperty(J.CLASS_NAME.key,{handler:this.configClassName,value:J.CLASS_NAME.value,validator:J.CLASS_NAME.validator,supercedes:J.CLASS_NAME.supercedes});N.addProperty(J.DISABLED.key,{handler:this.configDisabled,value:J.DISABLED.value,validator:J.DISABLED.validator,suppressEvent:J.DISABLED.suppressEvent});}});})();(function(){YAHOO.widget.MenuItem=function(K,J){if(K){if(J){this.parent=J.parent;this.value=J.value;this.id=J.id;}this.init(K,J);}};var B=YAHOO.util.Dom,C=YAHOO.widget.Module,E=YAHOO.widget.Menu,H=YAHOO.widget.MenuItem,I=YAHOO.util.CustomEvent,F=YAHOO.lang,D,A={"MOUSE_OVER":"mouseover","MOUSE_OUT":"mouseout","MOUSE_DOWN":"mousedown","MOUSE_UP":"mouseup","CLICK":"click","KEY_PRESS":"keypress","KEY_DOWN":"keydown","KEY_UP":"keyup","ITEM_ADDED":"itemAdded","ITEM_REMOVED":"itemRemoved","FOCUS":"focus","BLUR":"blur","DESTROY":"destroy"},G={"TEXT":{key:"text",value:"",validator:F.isString,suppressEvent:true},"HELP_TEXT":{key:"helptext",supercedes:["text"],suppressEvent:true},"URL":{key:"url",value:"#",suppressEvent:true},"TARGET":{key:"target",suppressEvent:true},"EMPHASIS":{key:"emphasis",value:false,validator:F.isBoolean,suppressEvent:true,supercedes:["text"]},"STRONG_EMPHASIS":{key:"strongemphasis",value:false,validator:F.isBoolean,suppressEvent:true,supercedes:["text"]},"CHECKED":{key:"checked",value:false,validator:F.isBoolean,suppressEvent:true,supercedes:["disabled","selected"]},"SUBMENU":{key:"submenu",suppressEvent:true,supercedes:["disabled","selected"]},"DISABLED":{key:"disabled",value:false,validator:F.isBoolean,suppressEvent:true,supercedes:["text","selected"]},"SELECTED":{key:"selected",value:false,validator:F.isBoolean,suppressEvent:true},"ONCLICK":{key:"onclick",suppressEvent:true},"CLASS_NAME":{key:"classname",value:null,validator:F.isString,suppressEvent:true}};H.prototype={CSS_CLASS_NAME:"yuimenuitem",CSS_LABEL_CLASS_NAME:"yuimenuitemlabel",SUBMENU_TYPE:null,_oAnchor:null,_oHelpTextEM:null,_oSubmenu:null,_oOnclickAttributeValue:null,_sClassName:null,constructor:H,index:null,groupIndex:null,parent:null,element:null,srcElement:null,value:null,browser:C.prototype.browser,id:null,destroyEvent:null,mouseOverEvent:null,mouseOutEvent:null,mouseDownEvent:null,mouseUpEvent:null,clickEvent:null,keyPressEvent:null,keyDownEvent:null,keyUpEvent:null,focusEvent:null,blurEvent:null,init:function(J,R){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=E;}this.cfg=new YAHOO.util.Config(this);this.initDefaultConfig();var O=I.LIST,N=this.cfg,P="#",Q,K,M,L;if(F.isString(J)){this._createRootNodeStructure();N.queueProperty("text",J);}else{if(J&&J.tagName){switch(J.tagName.toUpperCase()){case"OPTION":this._createRootNodeStructure();N.queueProperty("text",J.text);N.queueProperty("disabled",J.disabled);this.value=J.value;this.srcElement=J;break;case"OPTGROUP":this._createRootNodeStructure();N.queueProperty("text",J.label);N.queueProperty("disabled",J.disabled);this.srcElement=J;this._initSubTree();break;case"LI":Q=B.getFirstChild(J);if(Q){P=Q.getAttribute("href");K=Q.getAttribute("target");M=Q.innerHTML;}this.srcElement=J;this.element=J;this._oAnchor=Q;N.setProperty("text",M,true);N.setProperty("url",P,true);N.setProperty("target",K,true);this._initSubTree();break;}}}if(this.element){L=(this.srcElement||this.element).id;if(!L){L=this.id||B.generateId();this.element.id=L;}this.id=L;B.addClass(this.element,this.CSS_CLASS_NAME);B.addClass(this._oAnchor,this.CSS_LABEL_CLASS_NAME);this.mouseOverEvent=this.createEvent(A.MOUSE_OVER);this.mouseOverEvent.signature=O;this.mouseOutEvent=this.createEvent(A.MOUSE_OUT);this.mouseOutEvent.signature=O;this.mouseDownEvent=this.createEvent(A.MOUSE_DOWN);this.mouseDownEvent.signature=O;this.mouseUpEvent=this.createEvent(A.MOUSE_UP);this.mouseUpEvent.signature=O;this.clickEvent=this.createEvent(A.CLICK);this.clickEvent.signature=O;this.keyPressEvent=this.createEvent(A.KEY_PRESS);this.keyPressEvent.signature=O;this.keyDownEvent=this.createEvent(A.KEY_DOWN);this.keyDownEvent.signature=O;this.keyUpEvent=this.createEvent(A.KEY_UP);this.keyUpEvent.signature=O;this.focusEvent=this.createEvent(A.FOCUS);this.focusEvent.signature=O;this.blurEvent=this.createEvent(A.BLUR);this.blurEvent.signature=O;this.destroyEvent=this.createEvent(A.DESTROY);this.destroyEvent.signature=O;if(R){N.applyConfig(R);}N.fireQueue();}},_createRootNodeStructure:function(){var J,K;if(!D){D=document.createElement("li");D.innerHTML="<a href=\"#\"></a>";}J=D.cloneNode(true);J.className=this.CSS_CLASS_NAME;K=J.firstChild;K.className=this.CSS_LABEL_CLASS_NAME;this.element=J;this._oAnchor=K;},_initSubTree:function(){var P=this.srcElement,L=this.cfg,N,M,K,J,O;if(P.childNodes.length>0){if(this.parent.lazyLoad&&this.parent.srcElement&&this.parent.srcElement.tagName.toUpperCase()=="SELECT"){L.setProperty("submenu",{id:B.generateId(),itemdata:P.childNodes});}else{N=P.firstChild;M=[];do{if(N&&N.tagName){switch(N.tagName.toUpperCase()){case"DIV":L.setProperty("submenu",N);break;case"OPTION":M[M.length]=N;break;}}}while((N=N.nextSibling));K=M.length;if(K>0){J=new this.SUBMENU_TYPE(B.generateId());L.setProperty("submenu",J);for(O=0;O<K;O++){J.addItem((new J.ITEM_TYPE(M[O])));}}}}},configText:function(S,L,N){var K=L[0],M=this.cfg,Q=this._oAnchor,J=M.getProperty("helptext"),R="",O="",P="";if(K){if(J){R="<em class=\"helptext\">"+J+"</em>";}if(M.getProperty("emphasis")){O="<em>";P="</em>";}if(M.getProperty("strongemphasis")){O="<strong>";P="</strong>";}Q.innerHTML=(O+K+P+R);}},configHelpText:function(L,K,J){this.cfg.refireEvent("text");},configURL:function(L,K,J){var N=K[0];if(!N){N="#";}var M=this._oAnchor;if(YAHOO.env.ua.opera){M.removeAttribute("href");
-}M.setAttribute("href",N);},configTarget:function(M,L,K){var J=L[0],N=this._oAnchor;if(J&&J.length>0){N.setAttribute("target",J);}else{N.removeAttribute("target");}},configEmphasis:function(L,K,J){var N=K[0],M=this.cfg;if(N&&M.getProperty("strongemphasis")){M.setProperty("strongemphasis",false);}M.refireEvent("text");},configStrongEmphasis:function(M,L,K){var J=L[0],N=this.cfg;if(J&&N.getProperty("emphasis")){N.setProperty("emphasis",false);}N.refireEvent("text");},configChecked:function(S,M,O){var R=M[0],K=this.element,Q=this._oAnchor,N=this.cfg,J="-checked",L=this.CSS_CLASS_NAME+J,P=this.CSS_LABEL_CLASS_NAME+J;if(R){B.addClass(K,L);B.addClass(Q,P);}else{B.removeClass(K,L);B.removeClass(Q,P);}N.refireEvent("text");if(N.getProperty("disabled")){N.refireEvent("disabled");}if(N.getProperty("selected")){N.refireEvent("selected");}},configDisabled:function(X,R,a){var Z=R[0],L=this.cfg,P=L.getProperty("submenu"),O=L.getProperty("checked"),S=this.element,V=this._oAnchor,U="-disabled",W="-checked"+U,Y="-hassubmenu"+U,M=this.CSS_CLASS_NAME+U,N=this.CSS_LABEL_CLASS_NAME+U,T=this.CSS_CLASS_NAME+W,Q=this.CSS_LABEL_CLASS_NAME+W,K=this.CSS_CLASS_NAME+Y,J=this.CSS_LABEL_CLASS_NAME+Y;if(Z){if(L.getProperty("selected")){L.setProperty("selected",false);}B.addClass(S,M);B.addClass(V,N);if(P){B.addClass(S,K);B.addClass(V,J);}if(O){B.addClass(S,T);B.addClass(V,Q);}}else{B.removeClass(S,M);B.removeClass(V,N);if(P){B.removeClass(S,K);B.removeClass(V,J);}if(O){B.removeClass(S,T);B.removeClass(V,Q);}}},configSelected:function(X,R,a){var L=this.cfg,Y=R[0],S=this.element,V=this._oAnchor,O=L.getProperty("checked"),P=L.getProperty("submenu"),U="-selected",W="-checked"+U,Z="-hassubmenu"+U,M=this.CSS_CLASS_NAME+U,N=this.CSS_LABEL_CLASS_NAME+U,T=this.CSS_CLASS_NAME+W,Q=this.CSS_LABEL_CLASS_NAME+W,K=this.CSS_CLASS_NAME+Z,J=this.CSS_LABEL_CLASS_NAME+Z;if(YAHOO.env.ua.opera){V.blur();}if(Y&&!L.getProperty("disabled")){B.addClass(S,M);B.addClass(V,N);if(P){B.addClass(S,K);B.addClass(V,J);}if(O){B.addClass(S,T);B.addClass(V,Q);}}else{B.removeClass(S,M);B.removeClass(V,N);if(P){B.removeClass(S,K);B.removeClass(V,J);}if(O){B.removeClass(S,T);B.removeClass(V,Q);}}if(this.hasFocus()&&YAHOO.env.ua.opera){V.focus();}},_onSubmenuBeforeHide:function(M,L){var N=this.parent,J;function K(){N._oAnchor.blur();J.beforeHideEvent.unsubscribe(K);}if(N.hasFocus()){J=N.parent;J.beforeHideEvent.subscribe(K);}},configSubmenu:function(V,O,R){var Q=O[0],P=this.cfg,K=this.element,T=this._oAnchor,N=this.parent&&this.parent.lazyLoad,J="-hassubmenu",L=this.CSS_CLASS_NAME+J,S=this.CSS_LABEL_CLASS_NAME+J,U,W,M;if(Q){if(Q instanceof E){U=Q;U.parent=this;U.lazyLoad=N;}else{if(typeof Q=="object"&&Q.id&&!Q.nodeType){W=Q.id;M=Q;M.lazyload=N;M.parent=this;U=new this.SUBMENU_TYPE(W,M);P.setProperty("submenu",U,true);}else{U=new this.SUBMENU_TYPE(Q,{lazyload:N,parent:this});P.setProperty("submenu",U,true);}}if(U){B.addClass(K,L);B.addClass(T,S);this._oSubmenu=U;if(YAHOO.env.ua.opera){U.beforeHideEvent.subscribe(this._onSubmenuBeforeHide);}}}else{B.removeClass(K,L);B.removeClass(T,S);if(this._oSubmenu){this._oSubmenu.destroy();}}if(P.getProperty("disabled")){P.refireEvent("disabled");}if(P.getProperty("selected")){P.refireEvent("selected");}},configOnClick:function(L,K,J){var M=K[0];if(this._oOnclickAttributeValue&&(this._oOnclickAttributeValue!=M)){this.clickEvent.unsubscribe(this._oOnclickAttributeValue.fn,this._oOnclickAttributeValue.obj);this._oOnclickAttributeValue=null;}if(!this._oOnclickAttributeValue&&typeof M=="object"&&typeof M.fn=="function"){this.clickEvent.subscribe(M.fn,((!YAHOO.lang.isUndefined(M.obj))?M.obj:this),M.scope);this._oOnclickAttributeValue=M;}},configClassName:function(M,L,K){var J=L[0];if(this._sClassName){B.removeClass(this.element,this._sClassName);}B.addClass(this.element,J);this._sClassName=J;},initDefaultConfig:function(){var J=this.cfg;J.addProperty(G.TEXT.key,{handler:this.configText,value:G.TEXT.value,validator:G.TEXT.validator,suppressEvent:G.TEXT.suppressEvent});J.addProperty(G.HELP_TEXT.key,{handler:this.configHelpText,supercedes:G.HELP_TEXT.supercedes,suppressEvent:G.HELP_TEXT.suppressEvent});J.addProperty(G.URL.key,{handler:this.configURL,value:G.URL.value,suppressEvent:G.URL.suppressEvent});J.addProperty(G.TARGET.key,{handler:this.configTarget,suppressEvent:G.TARGET.suppressEvent});J.addProperty(G.EMPHASIS.key,{handler:this.configEmphasis,value:G.EMPHASIS.value,validator:G.EMPHASIS.validator,suppressEvent:G.EMPHASIS.suppressEvent,supercedes:G.EMPHASIS.supercedes});J.addProperty(G.STRONG_EMPHASIS.key,{handler:this.configStrongEmphasis,value:G.STRONG_EMPHASIS.value,validator:G.STRONG_EMPHASIS.validator,suppressEvent:G.STRONG_EMPHASIS.suppressEvent,supercedes:G.STRONG_EMPHASIS.supercedes});J.addProperty(G.CHECKED.key,{handler:this.configChecked,value:G.CHECKED.value,validator:G.CHECKED.validator,suppressEvent:G.CHECKED.suppressEvent,supercedes:G.CHECKED.supercedes});J.addProperty(G.DISABLED.key,{handler:this.configDisabled,value:G.DISABLED.value,validator:G.DISABLED.validator,suppressEvent:G.DISABLED.suppressEvent});J.addProperty(G.SELECTED.key,{handler:this.configSelected,value:G.SELECTED.value,validator:G.SELECTED.validator,suppressEvent:G.SELECTED.suppressEvent});J.addProperty(G.SUBMENU.key,{handler:this.configSubmenu,supercedes:G.SUBMENU.supercedes,suppressEvent:G.SUBMENU.suppressEvent});J.addProperty(G.ONCLICK.key,{handler:this.configOnClick,suppressEvent:G.ONCLICK.suppressEvent});J.addProperty(G.CLASS_NAME.key,{handler:this.configClassName,value:G.CLASS_NAME.value,validator:G.CLASS_NAME.validator,suppressEvent:G.CLASS_NAME.suppressEvent});},getNextEnabledSibling:function(){var L,O,J,N,M;function K(P,Q){return P[Q]||K(P,(Q+1));}if(this.parent instanceof E){L=this.groupIndex;O=this.parent.getItemGroups();if(this.index<(O[L].length-1)){J=K(O[L],(this.index+1));}else{if(L<(O.length-1)){N=L+1;}else{N=0;}M=K(O,N);J=K(M,0);}return(J.cfg.getProperty("disabled")||J.element.style.display=="none")?J.getNextEnabledSibling():J;}},getPreviousEnabledSibling:function(){var N,P,K,J,M;
-function O(Q,R){return Q[R]||O(Q,(R-1));}function L(Q,R){return Q[R]?R:L(Q,(R+1));}if(this.parent instanceof E){N=this.groupIndex;P=this.parent.getItemGroups();if(this.index>L(P[N],0)){K=O(P[N],(this.index-1));}else{if(N>L(P,0)){J=N-1;}else{J=P.length-1;}M=O(P,J);K=O(M,(M.length-1));}return(K.cfg.getProperty("disabled")||K.element.style.display=="none")?K.getPreviousEnabledSibling():K;}},focus:function(){var N=this.parent,M=this._oAnchor,J=N.activeItem,L=this;function K(){try{if(YAHOO.env.ua.ie&&!document.hasFocus()){return ;}if(J){J.blurEvent.fire();}M.focus();L.focusEvent.fire();}catch(O){}}if(!this.cfg.getProperty("disabled")&&N&&N.cfg.getProperty("visible")&&this.element.style.display!="none"){window.setTimeout(K,0);}},blur:function(){var K=this.parent;if(!this.cfg.getProperty("disabled")&&K&&K.cfg.getProperty("visible")){var J=this;window.setTimeout(function(){try{J._oAnchor.blur();J.blurEvent.fire();}catch(L){}},0);}},hasFocus:function(){return(YAHOO.widget.MenuManager.getFocusedMenuItem()==this);},destroy:function(){var L=this.element,K,J;if(L){K=this.cfg.getProperty("submenu");if(K){K.destroy();}this.mouseOverEvent.unsubscribeAll();this.mouseOutEvent.unsubscribeAll();this.mouseDownEvent.unsubscribeAll();this.mouseUpEvent.unsubscribeAll();this.clickEvent.unsubscribeAll();this.keyPressEvent.unsubscribeAll();this.keyDownEvent.unsubscribeAll();this.keyUpEvent.unsubscribeAll();this.focusEvent.unsubscribeAll();this.blurEvent.unsubscribeAll();this.cfg.configChangedEvent.unsubscribeAll();J=L.parentNode;if(J){J.removeChild(L);this.destroyEvent.fire();}this.destroyEvent.unsubscribeAll();}},toString:function(){var K="MenuItem",J=this.id;if(J){K+=(" "+J);}return K;}};F.augmentProto(H,YAHOO.util.EventProvider);})();(function(){YAHOO.widget.ContextMenu=function(G,F){YAHOO.widget.ContextMenu.superclass.constructor.call(this,G,F);};var B=YAHOO.util.Event,E=YAHOO.widget.ContextMenu,D={"TRIGGER_CONTEXT_MENU":"triggerContextMenu","CONTEXT_MENU":(YAHOO.env.ua.opera?"mousedown":"contextmenu"),"CLICK":"click"},C={"TRIGGER":{key:"trigger",suppressEvent:true}};function A(G,F,H){this.cfg.setProperty("xy",H);this.beforeShowEvent.unsubscribe(A,H);}YAHOO.lang.extend(E,YAHOO.widget.Menu,{_oTrigger:null,_bCancelled:false,contextEventTarget:null,triggerContextMenuEvent:null,init:function(G,F){E.superclass.init.call(this,G);this.beforeInitEvent.fire(E);if(F){this.cfg.applyConfig(F,true);}this.initEvent.fire(E);},initEvents:function(){E.superclass.initEvents.call(this);this.triggerContextMenuEvent=this.createEvent(D.TRIGGER_CONTEXT_MENU);this.triggerContextMenuEvent.signature=YAHOO.util.CustomEvent.LIST;},cancel:function(){this._bCancelled=true;},_removeEventHandlers:function(){var F=this._oTrigger;if(F){B.removeListener(F,D.CONTEXT_MENU,this._onTriggerContextMenu);if(YAHOO.env.ua.opera){B.removeListener(F,D.CLICK,this._onTriggerClick);}}},_onTriggerClick:function(G,F){if(G.ctrlKey){B.stopEvent(G);}},_onTriggerContextMenu:function(H,F){if(H.type=="mousedown"&&!H.ctrlKey){return ;}var G;B.stopEvent(H);this.contextEventTarget=B.getTarget(H);this.triggerContextMenuEvent.fire(H);YAHOO.widget.MenuManager.hideVisible();if(!this._bCancelled){G=B.getXY(H);if(!YAHOO.util.Dom.inDocument(this.element)){this.beforeShowEvent.subscribe(A,G);}else{this.cfg.setProperty("xy",G);}this.show();}this._bCancelled=false;},toString:function(){var G="ContextMenu",F=this.id;if(F){G+=(" "+F);}return G;},initDefaultConfig:function(){E.superclass.initDefaultConfig.call(this);this.cfg.addProperty(C.TRIGGER.key,{handler:this.configTrigger,suppressEvent:C.TRIGGER.suppressEvent});},destroy:function(){this._removeEventHandlers();E.superclass.destroy.call(this);},configTrigger:function(G,F,I){var H=F[0];if(H){if(this._oTrigger){this._removeEventHandlers();}this._oTrigger=H;B.on(H,D.CONTEXT_MENU,this._onTriggerContextMenu,this,true);if(YAHOO.env.ua.opera){B.on(H,D.CLICK,this._onTriggerClick,this,true);}}else{this._removeEventHandlers();}}});}());YAHOO.widget.ContextMenuItem=YAHOO.widget.MenuItem;(function(){YAHOO.widget.MenuBar=function(F,E){YAHOO.widget.MenuBar.superclass.constructor.call(this,F,E);};function D(E){if(typeof E=="string"){return("dynamic,static".indexOf((E.toLowerCase()))!=-1);}}var B=YAHOO.util.Event,A=YAHOO.widget.MenuBar,C={"POSITION":{key:"position",value:"static",validator:D,supercedes:["visible"]},"SUBMENU_ALIGNMENT":{key:"submenualignment",value:["tl","bl"],suppressEvent:true},"AUTO_SUBMENU_DISPLAY":{key:"autosubmenudisplay",value:false,validator:YAHOO.lang.isBoolean,suppressEvent:true}};YAHOO.lang.extend(A,YAHOO.widget.Menu,{init:function(F,E){if(!this.ITEM_TYPE){this.ITEM_TYPE=YAHOO.widget.MenuBarItem;}A.superclass.init.call(this,F);this.beforeInitEvent.fire(A);if(E){this.cfg.applyConfig(E,true);}this.initEvent.fire(A);},CSS_CLASS_NAME:"yuimenubar",_onKeyDown:function(G,F,K){var E=F[0],L=F[1],I,J,H;if(L&&!L.cfg.getProperty("disabled")){J=L.cfg;switch(E.keyCode){case 37:case 39:if(L==this.activeItem&&!J.getProperty("selected")){J.setProperty("selected",true);}else{H=(E.keyCode==37)?L.getPreviousEnabledSibling():L.getNextEnabledSibling();if(H){this.clearActiveItem();H.cfg.setProperty("selected",true);if(this.cfg.getProperty("autosubmenudisplay")){I=H.cfg.getProperty("submenu");if(I){I.show();}}H.focus();}}B.preventDefault(E);break;case 40:if(this.activeItem!=L){this.clearActiveItem();J.setProperty("selected",true);L.focus();}I=J.getProperty("submenu");if(I){if(I.cfg.getProperty("visible")){I.setInitialSelection();I.setInitialFocus();}else{I.show();}}B.preventDefault(E);break;}}if(E.keyCode==27&&this.activeItem){I=this.activeItem.cfg.getProperty("submenu");if(I&&I.cfg.getProperty("visible")){I.hide();this.activeItem.focus();}else{this.activeItem.cfg.setProperty("selected",false);this.activeItem.blur();}B.preventDefault(E);}},_onClick:function(L,G,J){A.superclass._onClick.call(this,L,G,J);var K=G[1],M,E,F,H,I;if(K&&!K.cfg.getProperty("disabled")){M=G[0];E=B.getTarget(M);F=this.activeItem;H=this.cfg;if(F&&F!=K){this.clearActiveItem();
-}K.cfg.setProperty("selected",true);I=K.cfg.getProperty("submenu");if(I){if(I.cfg.getProperty("visible")){I.hide();}else{I.show();}}}},toString:function(){var F="MenuBar",E=this.id;if(E){F+=(" "+E);}return F;},initDefaultConfig:function(){A.superclass.initDefaultConfig.call(this);var E=this.cfg;E.addProperty(C.POSITION.key,{handler:this.configPosition,value:C.POSITION.value,validator:C.POSITION.validator,supercedes:C.POSITION.supercedes});E.addProperty(C.SUBMENU_ALIGNMENT.key,{value:C.SUBMENU_ALIGNMENT.value,suppressEvent:C.SUBMENU_ALIGNMENT.suppressEvent});E.addProperty(C.AUTO_SUBMENU_DISPLAY.key,{value:C.AUTO_SUBMENU_DISPLAY.value,validator:C.AUTO_SUBMENU_DISPLAY.validator,suppressEvent:C.AUTO_SUBMENU_DISPLAY.suppressEvent});}});}());YAHOO.widget.MenuBarItem=function(B,A){YAHOO.widget.MenuBarItem.superclass.constructor.call(this,B,A);};YAHOO.lang.extend(YAHOO.widget.MenuBarItem,YAHOO.widget.MenuItem,{init:function(B,A){if(!this.SUBMENU_TYPE){this.SUBMENU_TYPE=YAHOO.widget.Menu;}YAHOO.widget.MenuBarItem.superclass.init.call(this,B);var C=this.cfg;if(A){C.applyConfig(A,true);}C.fireQueue();},CSS_CLASS_NAME:"yuimenubaritem",CSS_LABEL_CLASS_NAME:"yuimenubaritemlabel",toString:function(){var A="MenuBarItem";if(this.cfg&&this.cfg.getProperty("text")){A+=(": "+this.cfg.getProperty("text"));}return A;}});YAHOO.register("menu",YAHOO.widget.Menu,{version:"2.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/menu/menu.js b/lib/yui/menu/menu.js
deleted file mode 100755 (executable)
index 2b6dfda..0000000
+++ /dev/null
@@ -1,9041 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-
-
-/**
-* @module menu
-* @description <p>The Menu family of components features a collection of 
-* controls that make it easy to add menus to your website or web application.  
-* With the Menu Controls you can create website fly-out menus, customized 
-* context menus, or application-style menu bars with just a small amount of 
-* scripting.</p><p>The Menu family of controls features:</p>
-* <ul>
-*    <li>Keyboard and mouse navigation.</li>
-*    <li>A rich event model that provides access to all of a menu's 
-*    interesting moments.</li>
-*    <li>Support for 
-*    <a href="http://en.wikipedia.org/wiki/Progressive_Enhancement">Progressive
-*    Enhancement</a>; Menus can be created from simple, 
-*    semantic markup on the page or purely through JavaScript.</li>
-* </ul>
-* @title Menu
-* @namespace YAHOO.widget
-* @requires Event, Dom, Container
-*/
-(function () {
-
-    var Dom = YAHOO.util.Dom,
-        Event = YAHOO.util.Event;
-
-
-    /**
-    * Singleton that manages a collection of all menus and menu items.  Listens 
-    * for DOM events at the document level and dispatches the events to the 
-    * corresponding menu or menu item.
-    *
-    * @namespace YAHOO.widget
-    * @class MenuManager
-    * @static
-    */
-    YAHOO.widget.MenuManager = function () {
-    
-        // Private member variables
-    
-    
-        // Flag indicating if the DOM event handlers have been attached
-    
-        var m_bInitializedEventHandlers = false,
-    
-    
-        // Collection of menus
-
-        m_oMenus = {},
-
-
-        // Collection of visible menus
-    
-        m_oVisibleMenus = {},
-    
-    
-        //  Collection of menu items 
-
-        m_oItems = {},
-
-
-        // Map of DOM event types to their equivalent CustomEvent types
-        
-        m_oEventTypes = {
-            "click": "clickEvent",
-            "mousedown": "mouseDownEvent",
-            "mouseup": "mouseUpEvent",
-            "mouseover": "mouseOverEvent",
-            "mouseout": "mouseOutEvent",
-            "keydown": "keyDownEvent",
-            "keyup": "keyUpEvent",
-            "keypress": "keyPressEvent"
-        },
-    
-    
-        m_oFocusedMenuItem = null;
-    
-    
-    
-    
-    
-        // Private methods
-    
-    
-        /**
-        * @method getMenuRootElement
-        * @description Finds the root DIV node of a menu or the root LI node of 
-        * a menu item.
-        * @private
-        * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-        * level-one-html.html#ID-58190037">HTMLElement</a>} p_oElement Object 
-        * specifying an HTML element.
-        */
-        function getMenuRootElement(p_oElement) {
-        
-            var oParentNode;
-    
-            if (p_oElement && p_oElement.tagName) {
-            
-                switch (p_oElement.tagName.toUpperCase()) {
-                        
-                case "DIV":
-    
-                    oParentNode = p_oElement.parentNode;
-    
-                    // Check if the DIV is the inner "body" node of a menu
-
-                    if (
-                        (
-                            Dom.hasClass(p_oElement, "hd") ||
-                            Dom.hasClass(p_oElement, "bd") ||
-                            Dom.hasClass(p_oElement, "ft")
-                        ) && 
-                        oParentNode && 
-                        oParentNode.tagName && 
-                        oParentNode.tagName.toUpperCase() == "DIV") 
-                    {
-                    
-                        return oParentNode;
-                    
-                    }
-                    else {
-                    
-                        return p_oElement;
-                    
-                    }
-                
-                    break;
-
-                case "LI":
-    
-                    return p_oElement;
-
-                default:
-    
-                    oParentNode = p_oElement.parentNode;
-    
-                    if (oParentNode) {
-                    
-                        return getMenuRootElement(oParentNode);
-                    
-                    }
-                
-                    break;
-                
-                }
-    
-            }
-            
-        }
-    
-    
-    
-        // Private event handlers
-    
-    
-        /**
-        * @method onDOMEvent
-        * @description Generic, global event handler for all of a menu's 
-        * DOM-based events.  This listens for events against the document 
-        * object.  If the target of a given event is a member of a menu or 
-        * menu item's DOM, the instance's corresponding Custom Event is fired.
-        * @private
-        * @param {Event} p_oEvent Object representing the DOM event object  
-        * passed back by the event utility (YAHOO.util.Event).
-        */
-        function onDOMEvent(p_oEvent) {
-    
-            // Get the target node of the DOM event
-        
-            var oTarget = Event.getTarget(p_oEvent),
-                
-            // See if the target of the event was a menu, or a menu item
-    
-            oElement = getMenuRootElement(oTarget),
-            sCustomEventType,
-            sTagName,
-            sId,
-            oMenuItem,
-            oMenu; 
-    
-    
-            if (oElement) {
-    
-                sTagName = oElement.tagName.toUpperCase();
-        
-                if (sTagName == "LI") {
-            
-                    sId = oElement.id;
-            
-                    if (sId && m_oItems[sId]) {
-            
-                        oMenuItem = m_oItems[sId];
-                        oMenu = oMenuItem.parent;
-            
-                    }
-                
-                }
-                else if (sTagName == "DIV") {
-                
-                    if (oElement.id) {
-                    
-                        oMenu = m_oMenus[oElement.id];
-                    
-                    }
-                
-                }
-    
-            }
-    
-    
-            if (oMenu) {
-    
-                sCustomEventType = m_oEventTypes[p_oEvent.type];
-    
-    
-                // Fire the Custom Event that corresponds the current DOM event    
-        
-                if (oMenuItem && !oMenuItem.cfg.getProperty("disabled")) {
-    
-                    oMenuItem[sCustomEventType].fire(p_oEvent);                   
-    
-    
-                    if (
-                            p_oEvent.type == "keyup" || 
-                            p_oEvent.type == "mousedown") 
-                    {
-    
-                        if (m_oFocusedMenuItem != oMenuItem) {
-                        
-                            if (m_oFocusedMenuItem) {
-    
-                                m_oFocusedMenuItem.blurEvent.fire();
-                            
-                            }
-    
-                            oMenuItem.focusEvent.fire();
-                        
-                        }
-                    
-                    }
-    
-                }
-        
-                oMenu[sCustomEventType].fire(p_oEvent, oMenuItem);
-            
-            }
-            else if (p_oEvent.type == "mousedown") {
-    
-                if (m_oFocusedMenuItem) {
-    
-                    m_oFocusedMenuItem.blurEvent.fire();
-    
-                    m_oFocusedMenuItem = null;
-    
-                }
-    
-    
-                /*
-                    If the target of the event wasn't a menu, hide all 
-                    dynamically positioned menus
-                */
-                
-                for (var i in m_oVisibleMenus) {
-        
-                    if (YAHOO.lang.hasOwnProperty(m_oVisibleMenus, i)) {
-        
-                        oMenu = m_oVisibleMenus[i];
-        
-                        if (oMenu.cfg.getProperty("clicktohide") && 
-                            !(oMenu instanceof YAHOO.widget.MenuBar) && 
-                            oMenu.cfg.getProperty("position") == "dynamic") {
-        
-                            oMenu.hide();
-        
-                        }
-                        else {
-    
-                            oMenu.clearActiveItem(true);
-        
-                        }
-        
-                    }
-        
-                } 
-    
-            }
-            else if (p_oEvent.type == "keyup") { 
-    
-                if (m_oFocusedMenuItem) {
-    
-                    m_oFocusedMenuItem.blurEvent.fire();
-    
-                    m_oFocusedMenuItem = null;
-    
-                }
-    
-            }
-    
-        }
-    
-    
-        /**
-        * @method onMenuDestroy
-        * @description "destroy" event handler for a menu.
-        * @private
-        * @param {String} p_sType String representing the name of the event 
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        * @param {YAHOO.widget.Menu} p_oMenu The menu that fired the event.
-        */
-        function onMenuDestroy(p_sType, p_aArgs, p_oMenu) {
-    
-            if (m_oMenus[p_oMenu.id]) {
-    
-                this.removeMenu(p_oMenu);
-    
-            }
-    
-        }
-    
-    
-        /**
-        * @method onMenuFocus
-        * @description "focus" event handler for a MenuItem instance.
-        * @private
-        * @param {String} p_sType String representing the name of the event 
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        */
-        function onMenuFocus(p_sType, p_aArgs) {
-    
-            var oItem = p_aArgs[0];
-    
-            if (oItem) {
-    
-                m_oFocusedMenuItem = oItem;
-            
-            }
-    
-        }
-    
-    
-        /**
-        * @method onMenuBlur
-        * @description "blur" event handler for a MenuItem instance.
-        * @private
-        * @param {String} p_sType String representing the name of the event  
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        */
-        function onMenuBlur(p_sType, p_aArgs) {
-    
-            m_oFocusedMenuItem = null;
-    
-        }
-    
-    
-    
-        /**
-        * @method onMenuVisibleConfigChange
-        * @description Event handler for when the "visible" configuration  
-        * property of a Menu instance changes.
-        * @private
-        * @param {String} p_sType String representing the name of the event  
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        */
-        function onMenuVisibleConfigChange(p_sType, p_aArgs) {
-    
-            var bVisible = p_aArgs[0],
-                sId = this.id;
-            
-            if (bVisible) {
-    
-                m_oVisibleMenus[sId] = this;
-                
-            
-            }
-            else if (m_oVisibleMenus[sId]) {
-            
-                delete m_oVisibleMenus[sId];
-                
-            
-            }
-        
-        }
-    
-    
-        /**
-        * @method onItemDestroy
-        * @description "destroy" event handler for a MenuItem instance.
-        * @private
-        * @param {String} p_sType String representing the name of the event  
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        */
-        function onItemDestroy(p_sType, p_aArgs) {
-    
-            removeItem(this);
-    
-        }
-
-    
-        function removeItem(p_oMenuItem) {
-
-            var sId = p_oMenuItem.id;
-    
-            if (sId && m_oItems[sId]) {
-    
-                if (m_oFocusedMenuItem == p_oMenuItem) {
-    
-                    m_oFocusedMenuItem = null;
-    
-                }
-    
-                delete m_oItems[sId];
-                
-                p_oMenuItem.destroyEvent.unsubscribe(onItemDestroy);
-    
-    
-            }
-
-        }
-    
-    
-        /**
-        * @method onItemAdded
-        * @description "itemadded" event handler for a Menu instance.
-        * @private
-        * @param {String} p_sType String representing the name of the event  
-        * that was fired.
-        * @param {Array} p_aArgs Array of arguments sent when the event 
-        * was fired.
-        */
-        function onItemAdded(p_sType, p_aArgs) {
-    
-            var oItem = p_aArgs[0],
-                sId;
-    
-            if (oItem instanceof YAHOO.widget.MenuItem) { 
-    
-                sId = oItem.id;
-        
-                if (!m_oItems[sId]) {
-            
-                    m_oItems[sId] = oItem;
-        
-                    oItem.destroyEvent.subscribe(onItemDestroy);
-        
-        
-                }
-    
-            }
-        
-        }
-    
-    
-        return {
-    
-            // Privileged methods
-    
-    
-            /**
-            * @method addMenu
-            * @description Adds a menu to the collection of known menus.
-            * @param {YAHOO.widget.Menu} p_oMenu Object specifying the Menu  
-            * instance to be added.
-            */
-            addMenu: function (p_oMenu) {
-    
-                var oDoc;
-    
-                if (p_oMenu instanceof YAHOO.widget.Menu && p_oMenu.id && 
-                    !m_oMenus[p_oMenu.id]) {
-        
-                    m_oMenus[p_oMenu.id] = p_oMenu;
-                
-            
-                    if (!m_bInitializedEventHandlers) {
-            
-                        oDoc = document;
-                
-                        Event.on(oDoc, "mouseover", onDOMEvent, this, true);
-                        Event.on(oDoc, "mouseout", onDOMEvent, this, true);
-                        Event.on(oDoc, "mousedown", onDOMEvent, this, true);
-                        Event.on(oDoc, "mouseup", onDOMEvent, this, true);
-                        Event.on(oDoc, "click", onDOMEvent, this, true);
-                        Event.on(oDoc, "keydown", onDOMEvent, this, true);
-                        Event.on(oDoc, "keyup", onDOMEvent, this, true);
-                        Event.on(oDoc, "keypress", onDOMEvent, this, true);
-    
-    
-                        m_bInitializedEventHandlers = true;
-                        
-            
-                    }
-            
-                    p_oMenu.cfg.subscribeToConfigEvent("visible", 
-                        onMenuVisibleConfigChange);
-
-                    p_oMenu.destroyEvent.subscribe(onMenuDestroy, p_oMenu, 
-                                            this);
-            
-                    p_oMenu.itemAddedEvent.subscribe(onItemAdded);
-                    p_oMenu.focusEvent.subscribe(onMenuFocus);
-                    p_oMenu.blurEvent.subscribe(onMenuBlur);
-        
-        
-                }
-        
-            },
-    
-        
-            /**
-            * @method removeMenu
-            * @description Removes a menu from the collection of known menus.
-            * @param {YAHOO.widget.Menu} p_oMenu Object specifying the Menu  
-            * instance to be removed.
-            */
-            removeMenu: function (p_oMenu) {
-    
-                var sId,
-                    aItems,
-                    i;
-        
-                if (p_oMenu) {
-    
-                    sId = p_oMenu.id;
-        
-                    if (m_oMenus[sId] == p_oMenu) {
-
-                        // Unregister each menu item
-
-                        aItems = p_oMenu.getItems();
-
-                        if (aItems && aItems.length > 0) {
-
-                            i = aItems.length - 1;
-
-                            do {
-
-                                removeItem(aItems[i]);
-
-                            }
-                            while (i--);
-
-                        }
-
-
-                        // Unregister the menu
-
-                        delete m_oMenus[sId];
-            
-        
-
-                        /*
-                             Unregister the menu from the collection of 
-                             visible menus
-                        */
-
-                        if (m_oVisibleMenus[sId] == p_oMenu) {
-            
-                            delete m_oVisibleMenus[sId];
-                            
-       
-                        }
-
-
-                        // Unsubscribe event listeners
-
-                        if (p_oMenu.cfg) {
-
-                            p_oMenu.cfg.unsubscribeFromConfigEvent("visible", 
-                                onMenuVisibleConfigChange);
-                            
-                        }
-
-                        p_oMenu.destroyEvent.unsubscribe(onMenuDestroy, 
-                            p_oMenu);
-                
-                        p_oMenu.itemAddedEvent.unsubscribe(onItemAdded);
-                        p_oMenu.focusEvent.unsubscribe(onMenuFocus);
-                        p_oMenu.blurEvent.unsubscribe(onMenuBlur);
-
-                    }
-                
-                }
-    
-            },
-        
-        
-            /**
-            * @method hideVisible
-            * @description Hides all visible, dynamically positioned menus 
-            * (excluding instances of YAHOO.widget.MenuBar).
-            */
-            hideVisible: function () {
-        
-                var oMenu;
-        
-                for (var i in m_oVisibleMenus) {
-        
-                    if (YAHOO.lang.hasOwnProperty(m_oVisibleMenus, i)) {
-        
-                        oMenu = m_oVisibleMenus[i];
-        
-                        if (!(oMenu instanceof YAHOO.widget.MenuBar) && 
-                            oMenu.cfg.getProperty("position") == "dynamic") {
-        
-                            oMenu.hide();
-        
-                        }
-        
-                    }
-        
-                }        
-    
-            },
-
-
-            /**
-            * @method getVisible
-            * @description Returns a collection of all visible menus registered
-            * with the menu manger.
-            * @return {Array}
-            */
-            getVisible: function () {
-            
-                return m_oVisibleMenus;
-            
-            },
-
-    
-            /**
-            * @method getMenus
-            * @description Returns a collection of all menus registered with the 
-            * menu manger.
-            * @return {Array}
-            */
-            getMenus: function () {
-    
-                return m_oMenus;
-            
-            },
-    
-    
-            /**
-            * @method getMenu
-            * @description Returns a menu with the specified id.
-            * @param {String} p_sId String specifying the id of the 
-            * <code>&#60;div&#62;</code> element representing the menu to
-            * be retrieved.
-            * @return {YAHOO.widget.Menu}
-            */
-            getMenu: function (p_sId) {
-    
-                var oMenu = m_oMenus[p_sId];
-        
-                if (oMenu) {
-                
-                    return oMenu;
-                
-                }
-            
-            },
-    
-    
-            /**
-            * @method getMenuItem
-            * @description Returns a menu item with the specified id.
-            * @param {String} p_sId String specifying the id of the 
-            * <code>&#60;li&#62;</code> element representing the menu item to
-            * be retrieved.
-            * @return {YAHOO.widget.MenuItem}
-            */
-            getMenuItem: function (p_sId) {
-    
-                var oItem = m_oItems[p_sId];
-        
-                if (oItem) {
-                
-                    return oItem;
-                
-                }
-            
-            },
-
-
-            /**
-            * @method getMenuItemGroup
-            * @description Returns an array of menu item instances whose 
-            * corresponding <code>&#60;li&#62;</code> elements are child 
-            * nodes of the <code>&#60;ul&#62;</code> element with the 
-            * specified id.
-            * @param {String} p_sId String specifying the id of the 
-            * <code>&#60;ul&#62;</code> element representing the group of 
-            * menu items to be retrieved.
-            * @return {Array}
-            */
-            getMenuItemGroup: function (p_sId) {
-
-                var oUL = Dom.get(p_sId),
-                    aItems,
-                    oNode,
-                    oItem,
-                    sId;
-    
-
-                if (oUL && oUL.tagName && 
-                    oUL.tagName.toUpperCase() == "UL") {
-
-                    oNode = oUL.firstChild;
-
-                    if (oNode) {
-
-                        aItems = [];
-                        
-                        do {
-
-                            sId = oNode.id;
-
-                            if (sId) {
-                            
-                                oItem = this.getMenuItem(sId);
-                                
-                                if (oItem) {
-                                
-                                    aItems[aItems.length] = oItem;
-                                
-                                }
-                            
-                            }
-                        
-                        }
-                        while ((oNode = oNode.nextSibling));
-
-
-                        if (aItems.length > 0) {
-
-                            return aItems;
-                        
-                        }
-
-                    }
-                
-                }
-            
-            },
-
-    
-            /**
-            * @method getFocusedMenuItem
-            * @description Returns a reference to the menu item that currently 
-            * has focus.
-            * @return {YAHOO.widget.MenuItem}
-            */
-            getFocusedMenuItem: function () {
-    
-                return m_oFocusedMenuItem;
-    
-            },
-    
-    
-            /**
-            * @method getFocusedMenu
-            * @description Returns a reference to the menu that currently 
-            * has focus.
-            * @return {YAHOO.widget.Menu}
-            */
-            getFocusedMenu: function () {
-    
-                if (m_oFocusedMenuItem) {
-    
-                    return (m_oFocusedMenuItem.parent.getRoot());
-                
-                }
-    
-            },
-    
-        
-            /**
-            * @method toString
-            * @description Returns a string representing the menu manager.
-            * @return {String}
-            */
-            toString: function () {
-            
-                return "MenuManager";
-            
-            }
-    
-        };
-    
-    }();
-
-})();
-
-
-
-(function () {
-
-
-/**
-* The Menu class creates a container that holds a vertical list representing 
-* a set of options or commands.  Menu is the base class for all 
-* menu containers. 
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the menu.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source 
-* for the menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object 
-* specifying the <code>&#60;div&#62;</code> element of the menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-* level-one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement 
-* Object specifying the <code>&#60;select&#62;</code> element to be used as 
-* the data source for the menu.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu. See configuration class documentation for 
-* more details.
-* @namespace YAHOO.widget
-* @class Menu
-* @constructor
-* @extends YAHOO.widget.Overlay
-*/
-YAHOO.widget.Menu = function (p_oElement, p_oConfig) {
-
-    if (p_oConfig) {
-
-        this.parent = p_oConfig.parent;
-        this.lazyLoad = p_oConfig.lazyLoad || p_oConfig.lazyload;
-        this.itemData = p_oConfig.itemData || p_oConfig.itemdata;
-
-    }
-
-
-    YAHOO.widget.Menu.superclass.constructor.call(this, p_oElement, p_oConfig);
-
-};
-
-
-
-/**
-* @method checkPosition
-* @description Checks to make sure that the value of the "position" property 
-* is one of the supported strings. Returns true if the position is supported.
-* @private
-* @param {Object} p_sPosition String specifying the position of the menu.
-* @return {Boolean}
-*/
-function checkPosition(p_sPosition) {
-
-    if (typeof p_sPosition == "string") {
-
-        return ("dynamic,static".indexOf((p_sPosition.toLowerCase())) != -1);
-
-    }
-
-}
-
-
-var Dom = YAHOO.util.Dom,
-    Event = YAHOO.util.Event,
-    Module = YAHOO.widget.Module,
-    Overlay = YAHOO.widget.Overlay,
-    Menu = YAHOO.widget.Menu,
-    MenuManager = YAHOO.widget.MenuManager,
-    CustomEvent = YAHOO.util.CustomEvent,
-    Lang = YAHOO.lang,
-    UA = YAHOO.env.ua,
-    
-    m_oShadowTemplate,
-
-    /**
-    * Constant representing the name of the Menu's events
-    * @property EVENT_TYPES
-    * @private
-    * @final
-    * @type Object
-    */
-    EVENT_TYPES = {
-    
-        "MOUSE_OVER": "mouseover",
-        "MOUSE_OUT": "mouseout",
-        "MOUSE_DOWN": "mousedown",
-        "MOUSE_UP": "mouseup",
-        "CLICK": "click",
-        "KEY_PRESS": "keypress",
-        "KEY_DOWN": "keydown",
-        "KEY_UP": "keyup",
-        "FOCUS": "focus",
-        "BLUR": "blur",
-        "ITEM_ADDED": "itemAdded",
-        "ITEM_REMOVED": "itemRemoved"
-    
-    },
-
-
-    /**
-    * Constant representing the Menu's configuration properties
-    * @property DEFAULT_CONFIG
-    * @private
-    * @final
-    * @type Object
-    */
-    DEFAULT_CONFIG = {
-
-        "VISIBLE": { 
-            key: "visible", 
-            value: false, 
-            validator: Lang.isBoolean
-        }, 
-    
-        "CONSTRAIN_TO_VIEWPORT": {
-            key: "constraintoviewport", 
-            value: true, 
-            validator: Lang.isBoolean, 
-            supercedes: ["iframe","x","y","xy"]
-        }, 
-    
-        "POSITION": { 
-            key: "position", 
-            value: "dynamic", 
-            validator: checkPosition, 
-            supercedes: ["visible", "iframe"]
-        }, 
-    
-        "SUBMENU_ALIGNMENT": { 
-            key: "submenualignment", 
-            value: ["tl","tr"],
-            suppressEvent: true
-        },
-    
-        "AUTO_SUBMENU_DISPLAY": { 
-            key: "autosubmenudisplay", 
-            value: true, 
-            validator: Lang.isBoolean,
-            suppressEvent: true
-        }, 
-    
-        "SHOW_DELAY": { 
-            key: "showdelay", 
-            value: 250, 
-            validator: Lang.isNumber, 
-            suppressEvent: true
-        }, 
-    
-        "HIDE_DELAY": { 
-            key: "hidedelay", 
-            value: 0, 
-            validator: Lang.isNumber, 
-            suppressEvent: true
-        }, 
-    
-        "SUBMENU_HIDE_DELAY": { 
-            key: "submenuhidedelay", 
-            value: 250, 
-            validator: Lang.isNumber,
-            suppressEvent: true
-        }, 
-    
-        "CLICK_TO_HIDE": { 
-            key: "clicktohide", 
-            value: true, 
-            validator: Lang.isBoolean,
-            suppressEvent: true
-        },
-    
-        "CONTAINER": { 
-            key: "container",
-            suppressEvent: true
-        }, 
-
-        "SCROLL_INCREMENT": { 
-            key: "scrollincrement", 
-            value: 1, 
-            validator: Lang.isNumber,
-            supercedes: ["maxheight"],
-            suppressEvent: true
-        },
-
-        "MIN_SCROLL_HEIGHT": { 
-            key: "minscrollheight", 
-            value: 90, 
-            validator: Lang.isNumber,
-            supercedes: ["maxheight"],
-            suppressEvent: true
-        },    
-    
-        "MAX_HEIGHT": { 
-            key: "maxheight", 
-            value: 0, 
-            validator: Lang.isNumber,
-            supercedes: ["iframe"],
-            suppressEvent: true
-        }, 
-    
-        "CLASS_NAME": { 
-            key: "classname", 
-            value: null, 
-            validator: Lang.isString,
-            suppressEvent: true
-        }, 
-    
-        "DISABLED": { 
-            key: "disabled", 
-            value: false, 
-            validator: Lang.isBoolean,
-            suppressEvent: true
-        }
-    
-    };
-
-
-
-YAHOO.lang.extend(Menu, Overlay, {
-
-
-// Constants
-
-
-/**
-* @property CSS_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the 
-* menu's <code>&#60;div&#62;</code> element.
-* @default "yuimenu"
-* @final
-* @type String
-*/
-CSS_CLASS_NAME: "yuimenu",
-
-
-/**
-* @property ITEM_TYPE
-* @description Object representing the type of menu item to instantiate and 
-* add when parsing the child nodes (either <code>&#60;li&#62;</code> element, 
-* <code>&#60;optgroup&#62;</code> element or <code>&#60;option&#62;</code>) 
-* of the menu's source HTML element.
-* @default YAHOO.widget.MenuItem
-* @final
-* @type YAHOO.widget.MenuItem
-*/
-ITEM_TYPE: null,
-
-
-/**
-* @property GROUP_TITLE_TAG_NAME
-* @description String representing the tagname of the HTML element used to 
-* title the menu's item groups.
-* @default H6
-* @final
-* @type String
-*/
-GROUP_TITLE_TAG_NAME: "h6",
-
-
-/**
-* @property OFF_SCREEN_POSITION
-* @description Array representing the default x and y position that a menu 
-* should have when it is positioned outside the viewport by the 
-* "poistionOffScreen" method.
-* @default [-10000, -10000]
-* @final
-* @type Array
-*/
-OFF_SCREEN_POSITION: [-10000, -10000],
-
-
-// Private properties
-
-
-/** 
-* @property _nHideDelayId
-* @description Number representing the time-out setting used to cancel the 
-* hiding of a menu.
-* @default null
-* @private
-* @type Number
-*/
-_nHideDelayId: null,
-
-
-/** 
-* @property _nShowDelayId
-* @description Number representing the time-out setting used to cancel the 
-* showing of a menu.
-* @default null
-* @private
-* @type Number
-*/
-_nShowDelayId: null,
-
-
-/** 
-* @property _nSubmenuHideDelayId
-* @description Number representing the time-out setting used to cancel the 
-* hiding of a submenu.
-* @default null
-* @private
-* @type Number
-*/
-_nSubmenuHideDelayId: null,
-
-
-/** 
-* @property _nBodyScrollId
-* @description Number representing the time-out setting used to cancel the 
-* scrolling of the menu's body element.
-* @default null
-* @private
-* @type Number
-*/
-_nBodyScrollId: null,
-
-
-/** 
-* @property _bHideDelayEventHandlersAssigned
-* @description Boolean indicating if the "mouseover" and "mouseout" event 
-* handlers used for hiding the menu via a call to "window.setTimeout" have 
-* already been assigned.
-* @default false
-* @private
-* @type Boolean
-*/
-_bHideDelayEventHandlersAssigned: false,
-
-
-/**
-* @property _bHandledMouseOverEvent
-* @description Boolean indicating the current state of the menu's 
-* "mouseover" event.
-* @default false
-* @private
-* @type Boolean
-*/
-_bHandledMouseOverEvent: false,
-
-
-/**
-* @property _bHandledMouseOutEvent
-* @description Boolean indicating the current state of the menu's
-* "mouseout" event.
-* @default false
-* @private
-* @type Boolean
-*/
-_bHandledMouseOutEvent: false,
-
-
-/**
-* @property _aGroupTitleElements
-* @description Array of HTML element used to title groups of menu items.
-* @default []
-* @private
-* @type Array
-*/
-_aGroupTitleElements: null,
-
-
-/**
-* @property _aItemGroups
-* @description Multi-dimensional Array representing the menu items as they
-* are grouped in the menu.
-* @default []
-* @private
-* @type Array
-*/
-_aItemGroups: null,
-
-
-/**
-* @property _aListElements
-* @description Array of <code>&#60;ul&#62;</code> elements, each of which is 
-* the parent node for each item's <code>&#60;li&#62;</code> element.
-* @default []
-* @private
-* @type Array
-*/
-_aListElements: null,
-
-
-/**
-* @property _nCurrentMouseX
-* @description The current x coordinate of the mouse inside the area of 
-* the menu.
-* @default 0
-* @private
-* @type Number
-*/
-_nCurrentMouseX: 0,
-
-
-/**
-* @property _bStopMouseEventHandlers
-* @description Stops "mouseover," "mouseout," and "mousemove" event handlers 
-* from executing.
-* @default false
-* @private
-* @type Boolean
-*/
-_bStopMouseEventHandlers: false,
-
-
-/**
-* @property _sClassName
-* @description The current value of the "classname" configuration attribute.
-* @default null
-* @private
-* @type String
-*/
-_sClassName: null,
-
-
-
-// Public properties
-
-
-/**
-* @property lazyLoad
-* @description Boolean indicating if the menu's "lazy load" feature is 
-* enabled.  If set to "true," initialization and rendering of the menu's 
-* items will be deferred until the first time it is made visible.  This 
-* property should be set via the constructor using the configuration 
-* object literal.
-* @default false
-* @type Boolean
-*/
-lazyLoad: false,
-
-
-/**
-* @property itemData
-* @description Array of items to be added to the menu.  The array can contain 
-* strings representing the text for each item to be created, object literals 
-* representing the menu item configuration properties, or MenuItem instances.  
-* This property should be set via the constructor using the configuration 
-* object literal.
-* @default null
-* @type Array
-*/
-itemData: null,
-
-
-/**
-* @property activeItem
-* @description Object reference to the item in the menu that has is selected.
-* @default null
-* @type YAHOO.widget.MenuItem
-*/
-activeItem: null,
-
-
-/**
-* @property parent
-* @description Object reference to the menu's parent menu or menu item.  
-* This property can be set via the constructor using the configuration 
-* object literal.
-* @default null
-* @type YAHOO.widget.MenuItem
-*/
-parent: null,
-
-
-/**
-* @property srcElement
-* @description Object reference to the HTML element (either 
-* <code>&#60;select&#62;</code> or <code>&#60;div&#62;</code>) used to 
-* create the menu.
-* @default null
-* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-* level-one-html.html#ID-94282980">HTMLSelectElement</a>|<a 
-* href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.
-* html#ID-22445964">HTMLDivElement</a>
-*/
-srcElement: null,
-
-
-
-// Events
-
-
-/**
-* @event mouseOverEvent
-* @description Fires when the mouse has entered the menu.  Passes back 
-* the DOM Event object as an argument.
-*/
-mouseOverEvent: null,
-
-
-/**
-* @event mouseOutEvent
-* @description Fires when the mouse has left the menu.  Passes back the DOM 
-* Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-mouseOutEvent: null,
-
-
-/**
-* @event mouseDownEvent
-* @description Fires when the user mouses down on the menu.  Passes back the 
-* DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-mouseDownEvent: null,
-
-
-/**
-* @event mouseUpEvent
-* @description Fires when the user releases a mouse button while the mouse is 
-* over the menu.  Passes back the DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-mouseUpEvent: null,
-
-
-/**
-* @event clickEvent
-* @description Fires when the user clicks the on the menu.  Passes back the 
-* DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-clickEvent: null,
-
-
-/**
-* @event keyPressEvent
-* @description Fires when the user presses an alphanumeric key when one of the
-* menu's items has focus.  Passes back the DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-keyPressEvent: null,
-
-
-/**
-* @event keyDownEvent
-* @description Fires when the user presses a key when one of the menu's items 
-* has focus.  Passes back the DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-keyDownEvent: null,
-
-
-/**
-* @event keyUpEvent
-* @description Fires when the user releases a key when one of the menu's items 
-* has focus.  Passes back the DOM Event object as an argument.
-* @type YAHOO.util.CustomEvent
-*/
-keyUpEvent: null,
-
-
-/**
-* @event itemAddedEvent
-* @description Fires when an item is added to the menu.
-* @type YAHOO.util.CustomEvent
-*/
-itemAddedEvent: null,
-
-
-/**
-* @event itemRemovedEvent
-* @description Fires when an item is removed to the menu.
-* @type YAHOO.util.CustomEvent
-*/
-itemRemovedEvent: null,
-
-
-/**
-* @method init
-* @description The Menu class's initialization method. This method is 
-* automatically called by the constructor, and sets up all DOM references 
-* for pre-existing markup, and creates required markup if it is not 
-* already present.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the menu.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source 
-* for the menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-* level-one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object 
-* specifying the <code>&#60;div&#62;</code> element of the menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-* level-one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement 
-* Object specifying the <code>&#60;select&#62;</code> element to be used as 
-* the data source for the menu.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu. See configuration class documentation for 
-* more details.
-*/
-init: function (p_oElement, p_oConfig) {
-
-    this._aItemGroups = [];
-    this._aListElements = [];
-    this._aGroupTitleElements = [];
-
-    if (!this.ITEM_TYPE) {
-
-        this.ITEM_TYPE = YAHOO.widget.MenuItem;
-
-    }
-
-
-    var oElement;
-
-    if (typeof p_oElement == "string") {
-
-        oElement = document.getElementById(p_oElement);
-
-    }
-    else if (p_oElement.tagName) {
-
-        oElement = p_oElement;
-
-    }
-
-
-    if (oElement && oElement.tagName) {
-
-        switch(oElement.tagName.toUpperCase()) {
-    
-            case "DIV":
-
-                this.srcElement = oElement;
-
-                if (!oElement.id) {
-
-                    oElement.setAttribute("id", Dom.generateId());
-
-                }
-
-
-                /* 
-                    Note: we don't pass the user config in here yet 
-                    because we only want it executed once, at the lowest 
-                    subclass level.
-                */ 
-            
-                Menu.superclass.init.call(this, oElement);
-
-                this.beforeInitEvent.fire(Menu);
-
-
-    
-            break;
-    
-            case "SELECT":
-    
-                this.srcElement = oElement;
-
-    
-                /*
-                    The source element is not something that we can use 
-                    outright, so we need to create a new Overlay
-
-                    Note: we don't pass the user config in here yet 
-                    because we only want it executed once, at the lowest 
-                    subclass level.
-                */ 
-
-                Menu.superclass.init.call(this, Dom.generateId());
-
-                this.beforeInitEvent.fire(Menu);
-
-
-
-            break;
-
-        }
-
-    }
-    else {
-
-        /* 
-            Note: we don't pass the user config in here yet 
-            because we only want it executed once, at the lowest 
-            subclass level.
-        */ 
-    
-        Menu.superclass.init.call(this, p_oElement);
-
-        this.beforeInitEvent.fire(Menu);
-
-
-
-    }
-
-
-    if (this.element) {
-
-        Dom.addClass(this.element, this.CSS_CLASS_NAME);
-
-
-        // Subscribe to Custom Events
-
-        this.initEvent.subscribe(this._onInit);
-        this.beforeRenderEvent.subscribe(this._onBeforeRender);
-        this.renderEvent.subscribe(this._onRender);
-        this.renderEvent.subscribe(this.onRender);
-        this.beforeShowEvent.subscribe(this._onBeforeShow);
-        this.hideEvent.subscribe(this.positionOffScreen);
-        this.showEvent.subscribe(this._onShow);
-        this.beforeHideEvent.subscribe(this._onBeforeHide);
-        this.mouseOverEvent.subscribe(this._onMouseOver);
-        this.mouseOutEvent.subscribe(this._onMouseOut);
-        this.clickEvent.subscribe(this._onClick);
-        this.keyDownEvent.subscribe(this._onKeyDown);
-        this.keyPressEvent.subscribe(this._onKeyPress);
-        
-
-        if (UA.gecko || UA.webkit) {
-
-            this.cfg.subscribeToConfigEvent("y", this._onYChange);
-
-        }
-
-
-        if (p_oConfig) {
-    
-            this.cfg.applyConfig(p_oConfig, true);
-    
-        }
-
-
-        // Register the Menu instance with the MenuManager
-
-        MenuManager.addMenu(this);
-        
-
-        this.initEvent.fire(Menu);
-
-    }
-
-},
-
-
-
-// Private methods
-
-
-/**
-* @method _initSubTree
-* @description Iterates the childNodes of the source element to find nodes 
-* used to instantiate menu and menu items.
-* @private
-*/
-_initSubTree: function () {
-
-    var oSrcElement = this.srcElement,
-        sSrcElementTagName,
-        nGroup,
-        sGroupTitleTagName,
-        oNode,
-        aListElements,
-        nListElements,
-        i;
-
-
-    if (oSrcElement) {
-    
-        sSrcElementTagName = 
-            (oSrcElement.tagName && oSrcElement.tagName.toUpperCase());
-
-
-        if (sSrcElementTagName == "DIV") {
-    
-            //  Populate the collection of item groups and item group titles
-    
-            oNode = this.body.firstChild;
-    
-
-            if (oNode) {
-    
-                nGroup = 0;
-                sGroupTitleTagName = this.GROUP_TITLE_TAG_NAME.toUpperCase();
-        
-                do {
-        
-
-                    if (oNode && oNode.tagName) {
-        
-                        switch (oNode.tagName.toUpperCase()) {
-        
-                            case sGroupTitleTagName:
-                            
-                                this._aGroupTitleElements[nGroup] = oNode;
-        
-                            break;
-        
-                            case "UL":
-        
-                                this._aListElements[nGroup] = oNode;
-                                this._aItemGroups[nGroup] = [];
-                                nGroup++;
-        
-                            break;
-        
-                        }
-                    
-                    }
-        
-                }
-                while ((oNode = oNode.nextSibling));
-        
-        
-                /*
-                    Apply the "first-of-type" class to the first UL to mimic 
-                    the "first-of-type" CSS3 psuedo class.
-                */
-        
-                if (this._aListElements[0]) {
-        
-                    Dom.addClass(this._aListElements[0], "first-of-type");
-        
-                }
-            
-            }
-    
-        }
-    
-    
-        oNode = null;
-    
-    
-
-        if (sSrcElementTagName) {
-    
-            switch (sSrcElementTagName) {
-        
-                case "DIV":
-
-                    aListElements = this._aListElements;
-                    nListElements = aListElements.length;
-        
-                    if (nListElements > 0) {
-        
-        
-                        i = nListElements - 1;
-        
-                        do {
-        
-                            oNode = aListElements[i].firstChild;
-            
-                            if (oNode) {
-
-            
-                                do {
-                
-                                    if (oNode && oNode.tagName && 
-                                        oNode.tagName.toUpperCase() == "LI") {
-                
-        
-                                        this.addItem(new this.ITEM_TYPE(oNode, 
-                                                    { parent: this }), i);
-            
-                                    }
-                        
-                                }
-                                while ((oNode = oNode.nextSibling));
-                            
-                            }
-                    
-                        }
-                        while (i--);
-        
-                    }
-        
-                break;
-        
-                case "SELECT":
-        
-        
-                    oNode = oSrcElement.firstChild;
-        
-                    do {
-        
-                        if (oNode && oNode.tagName) {
-                        
-                            switch (oNode.tagName.toUpperCase()) {
-            
-                                case "OPTGROUP":
-                                case "OPTION":
-            
-            
-                                    this.addItem(
-                                            new this.ITEM_TYPE(
-                                                    oNode, 
-                                                    { parent: this }
-                                                )
-                                            );
-            
-                                break;
-            
-                            }
-    
-                        }
-        
-                    }
-                    while ((oNode = oNode.nextSibling));
-        
-                break;
-        
-            }
-    
-        }    
-    
-    }
-
-},
-
-
-/**
-* @method _getFirstEnabledItem
-* @description Returns the first enabled item in the menu.
-* @return {YAHOO.widget.MenuItem}
-* @private
-*/
-_getFirstEnabledItem: function () {
-
-    var aItems = this.getItems(),
-        nItems = aItems.length,
-        oItem;
-    
-    for(var i=0; i<nItems; i++) {
-
-        oItem = aItems[i];
-
-        if (oItem && !oItem.cfg.getProperty("disabled") && 
-            oItem.element.style.display != "none") {
-
-            return oItem;
-
-        }
-    
-    }
-    
-},
-
-
-/**
-* @method _addItemToGroup
-* @description Adds a menu item to a group.
-* @private
-* @param {Number} p_nGroupIndex Number indicating the group to which the 
-* item belongs.
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance to be added to the menu.
-* @param {String} p_oItem String specifying the text of the item to be added 
-* to the menu.
-* @param {Object} p_oItem Object literal containing a set of menu item 
-* configuration properties.
-* @param {Number} p_nItemIndex Optional. Number indicating the index at 
-* which the menu item should be added.
-* @return {YAHOO.widget.MenuItem}
-*/
-_addItemToGroup: function (p_nGroupIndex, p_oItem, p_nItemIndex) {
-
-    var oItem,
-        nGroupIndex,
-        aGroup,
-        oGroupItem,
-        bAppend,
-        oNextItemSibling,
-        nItemIndex;
-
-    function getNextItemSibling(p_aArray, p_nStartIndex) {
-
-        return (p_aArray[p_nStartIndex] || getNextItemSibling(p_aArray, 
-                (p_nStartIndex+1)));
-
-    }
-
-    if (p_oItem instanceof this.ITEM_TYPE) {
-
-        oItem = p_oItem;
-        oItem.parent = this;
-
-    }
-    else if (typeof p_oItem == "string") {
-
-        oItem = new this.ITEM_TYPE(p_oItem, { parent: this });
-    
-    }
-    else if (typeof p_oItem == "object") {
-
-        p_oItem.parent = this;
-
-        oItem = new this.ITEM_TYPE(p_oItem.text, p_oItem);
-
-    }
-
-
-    if (oItem) {
-
-        if (oItem.cfg.getProperty("selected")) {
-
-            this.activeItem = oItem;
-        
-        }
-
-
-        nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0;
-        aGroup = this._getItemGroup(nGroupIndex);
-
-
-
-        if (!aGroup) {
-
-            aGroup = this._createItemGroup(nGroupIndex);
-
-        }
-
-
-        if (typeof p_nItemIndex == "number") {
-
-            bAppend = (p_nItemIndex >= aGroup.length);            
-
-
-            if (aGroup[p_nItemIndex]) {
-    
-                aGroup.splice(p_nItemIndex, 0, oItem);
-    
-            }
-            else {
-    
-                aGroup[p_nItemIndex] = oItem;
-    
-            }
-
-
-            oGroupItem = aGroup[p_nItemIndex];
-
-            if (oGroupItem) {
-
-                if (bAppend && (!oGroupItem.element.parentNode || 
-                        oGroupItem.element.parentNode.nodeType == 11)) {
-        
-                    this._aListElements[nGroupIndex].appendChild(
-                        oGroupItem.element);
-    
-                }
-                else {
-    
-                    oNextItemSibling = getNextItemSibling(aGroup, 
-                        (p_nItemIndex+1));
-    
-                    if (oNextItemSibling && (!oGroupItem.element.parentNode || 
-                            oGroupItem.element.parentNode.nodeType == 11)) {
-            
-                        this._aListElements[nGroupIndex].insertBefore(
-                                oGroupItem.element, 
-                                oNextItemSibling.element);
-        
-                    }
-    
-                }
-    
-
-                oGroupItem.parent = this;
-        
-                this._subscribeToItemEvents(oGroupItem);
-    
-                this._configureSubmenu(oGroupItem);
-                
-                this._updateItemProperties(nGroupIndex);
-        
-
-                this.itemAddedEvent.fire(oGroupItem);
-                this.changeContentEvent.fire();
-
-                return oGroupItem;
-    
-            }
-
-        }
-        else {
-    
-            nItemIndex = aGroup.length;
-    
-            aGroup[nItemIndex] = oItem;
-
-            oGroupItem = aGroup[nItemIndex];
-    
-
-            if (oGroupItem) {
-    
-                if (!Dom.isAncestor(this._aListElements[nGroupIndex], 
-                        oGroupItem.element)) {
-    
-                    this._aListElements[nGroupIndex].appendChild(
-                        oGroupItem.element);
-    
-                }
-    
-                oGroupItem.element.setAttribute("groupindex", nGroupIndex);
-                oGroupItem.element.setAttribute("index", nItemIndex);
-        
-                oGroupItem.parent = this;
-    
-                oGroupItem.index = nItemIndex;
-                oGroupItem.groupIndex = nGroupIndex;
-        
-                this._subscribeToItemEvents(oGroupItem);
-    
-                this._configureSubmenu(oGroupItem);
-    
-                if (nItemIndex === 0) {
-        
-                    Dom.addClass(oGroupItem.element, "first-of-type");
-        
-                }
-
-        
-
-                this.itemAddedEvent.fire(oGroupItem);
-                this.changeContentEvent.fire();
-
-                return oGroupItem;
-    
-            }
-    
-        }
-
-    }
-    
-},
-
-
-/**
-* @method _removeItemFromGroupByIndex
-* @description Removes a menu item from a group by index.  Returns the menu 
-* item that was removed.
-* @private
-* @param {Number} p_nGroupIndex Number indicating the group to which the menu 
-* item belongs.
-* @param {Number} p_nItemIndex Number indicating the index of the menu item 
-* to be removed.
-* @return {YAHOO.widget.MenuItem}
-*/
-_removeItemFromGroupByIndex: function (p_nGroupIndex, p_nItemIndex) {
-
-    var nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0,
-        aGroup = this._getItemGroup(nGroupIndex),
-        aArray,
-        oItem,
-        oUL;
-
-    if (aGroup) {
-
-        aArray = aGroup.splice(p_nItemIndex, 1);
-        oItem = aArray[0];
-    
-        if (oItem) {
-    
-            // Update the index and className properties of each member        
-            
-            this._updateItemProperties(nGroupIndex);
-    
-            if (aGroup.length === 0) {
-    
-                // Remove the UL
-    
-                oUL = this._aListElements[nGroupIndex];
-    
-                if (this.body && oUL) {
-    
-                    this.body.removeChild(oUL);
-    
-                }
-    
-                // Remove the group from the array of items
-    
-                this._aItemGroups.splice(nGroupIndex, 1);
-    
-    
-                // Remove the UL from the array of ULs
-    
-                this._aListElements.splice(nGroupIndex, 1);
-    
-    
-                /*
-                     Assign the "first-of-type" class to the new first UL 
-                     in the collection
-                */
-    
-                oUL = this._aListElements[0];
-    
-                if (oUL) {
-    
-                    Dom.addClass(oUL, "first-of-type");
-    
-                }            
-    
-            }
-    
-
-            this.itemRemovedEvent.fire(oItem);
-            this.changeContentEvent.fire();
-
-
-            // Return a reference to the item that was removed
-        
-            return oItem;
-    
-        }
-
-    }
-    
-},
-
-
-/**
-* @method _removeItemFromGroupByValue
-* @description Removes a menu item from a group by reference.  Returns the 
-* menu item that was removed.
-* @private
-* @param {Number} p_nGroupIndex Number indicating the group to which the
-* menu item belongs.
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance to be removed.
-* @return {YAHOO.widget.MenuItem}
-*/    
-_removeItemFromGroupByValue: function (p_nGroupIndex, p_oItem) {
-
-    var aGroup = this._getItemGroup(p_nGroupIndex),
-        nItems,
-        nItemIndex,
-        i;
-
-    if (aGroup) {
-
-        nItems = aGroup.length;
-        nItemIndex = -1;
-    
-        if (nItems > 0) {
-    
-            i = nItems-1;
-        
-            do {
-        
-                if (aGroup[i] == p_oItem) {
-        
-                    nItemIndex = i;
-                    break;    
-        
-                }
-        
-            }
-            while(i--);
-        
-            if (nItemIndex > -1) {
-        
-                return (this._removeItemFromGroupByIndex(p_nGroupIndex, 
-                            nItemIndex));
-        
-            }
-    
-        }
-    
-    }
-
-},
-
-
-/**
-* @method _updateItemProperties
-* @description Updates the "index," "groupindex," and "className" properties 
-* of the menu items in the specified group. 
-* @private
-* @param {Number} p_nGroupIndex Number indicating the group of items to update.
-*/
-_updateItemProperties: function (p_nGroupIndex) {
-
-    var aGroup = this._getItemGroup(p_nGroupIndex),
-        nItems = aGroup.length,
-        oItem,
-        oLI,
-        i;
-
-
-    if (nItems > 0) {
-
-        i = nItems - 1;
-
-        // Update the index and className properties of each member
-    
-        do {
-
-            oItem = aGroup[i];
-
-            if (oItem) {
-    
-                oLI = oItem.element;
-
-                oItem.index = i;
-                oItem.groupIndex = p_nGroupIndex;
-
-                oLI.setAttribute("groupindex", p_nGroupIndex);
-                oLI.setAttribute("index", i);
-
-                Dom.removeClass(oLI, "first-of-type");
-
-            }
-    
-        }
-        while(i--);
-
-
-        if (oLI) {
-
-            Dom.addClass(oLI, "first-of-type");
-
-        }
-
-    }
-
-},
-
-
-/**
-* @method _createItemGroup
-* @description Creates a new menu item group (array) and its associated 
-* <code>&#60;ul&#62;</code> element. Returns an aray of menu item groups.
-* @private
-* @param {Number} p_nIndex Number indicating the group to create.
-* @return {Array}
-*/
-_createItemGroup: function (p_nIndex) {
-
-    var oUL;
-
-    if (!this._aItemGroups[p_nIndex]) {
-
-        this._aItemGroups[p_nIndex] = [];
-
-        oUL = document.createElement("ul");
-
-        this._aListElements[p_nIndex] = oUL;
-
-        return this._aItemGroups[p_nIndex];
-
-    }
-
-},
-
-
-/**
-* @method _getItemGroup
-* @description Returns the menu item group at the specified index.
-* @private
-* @param {Number} p_nIndex Number indicating the index of the menu item group 
-* to be retrieved.
-* @return {Array}
-*/
-_getItemGroup: function (p_nIndex) {
-
-    var nIndex = ((typeof p_nIndex == "number") ? p_nIndex : 0);
-
-    return this._aItemGroups[nIndex];
-
-},
-
-
-/**
-* @method _configureSubmenu
-* @description Subscribes the menu item's submenu to its parent menu's events.
-* @private
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance with the submenu to be configured.
-*/
-_configureSubmenu: function (p_oItem) {
-
-    var oSubmenu = p_oItem.cfg.getProperty("submenu");
-
-    if (oSubmenu) {
-            
-        /*
-            Listen for configuration changes to the parent menu 
-            so they they can be applied to the submenu.
-        */
-
-        this.cfg.configChangedEvent.subscribe(this._onParentMenuConfigChange, 
-                oSubmenu, true);
-
-        this.renderEvent.subscribe(this._onParentMenuRender, oSubmenu, true);
-
-        oSubmenu.beforeShowEvent.subscribe(this._onSubmenuBeforeShow);
-
-    }
-
-},
-
-
-
-
-/**
-* @method _subscribeToItemEvents
-* @description Subscribes a menu to a menu item's event.
-* @private
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance whose events should be subscribed to.
-*/
-_subscribeToItemEvents: function (p_oItem) {
-
-    p_oItem.focusEvent.subscribe(this._onMenuItemFocus);
-
-    p_oItem.blurEvent.subscribe(this._onMenuItemBlur);
-
-    p_oItem.destroyEvent.subscribe(this._onMenuItemDestroy, p_oItem, this);
-
-    p_oItem.cfg.configChangedEvent.subscribe(this._onMenuItemConfigChange,
-        p_oItem, this);
-
-},
-
-
-/**
-* @method _onVisibleChange
-* @description Change event handler for the the menu's "visible" configuration
-* property.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onVisibleChange: function (p_sType, p_aArgs) {
-
-    var bVisible = p_aArgs[0];
-    
-    if (bVisible) {
-
-        Dom.addClass(this.element, "visible");
-
-    }
-    else {
-
-        Dom.removeClass(this.element, "visible");
-
-    }
-
-},
-
-
-/**
-* @method _cancelHideDelay
-* @description Cancels the call to "hideMenu."
-* @private
-*/
-_cancelHideDelay: function () {
-
-    var oRoot = this.getRoot();
-
-    if (oRoot._nHideDelayId) {
-
-        window.clearTimeout(oRoot._nHideDelayId);
-
-    }
-
-},
-
-
-/**
-* @method _execHideDelay
-* @description Hides the menu after the number of milliseconds specified by 
-* the "hidedelay" configuration property.
-* @private
-*/
-_execHideDelay: function () {
-
-    this._cancelHideDelay();
-
-    var oRoot = this.getRoot(),
-        me = this;
-
-    function hideMenu() {
-    
-        if (oRoot.activeItem) {
-
-            oRoot.clearActiveItem();
-
-        }
-
-        if (oRoot == me && !(me instanceof YAHOO.widget.MenuBar) && 
-            me.cfg.getProperty("position") == "dynamic") {
-
-            me.hide();
-        
-        }
-    
-    }
-
-
-    oRoot._nHideDelayId = 
-        window.setTimeout(hideMenu, oRoot.cfg.getProperty("hidedelay"));
-
-},
-
-
-/**
-* @method _cancelShowDelay
-* @description Cancels the call to the "showMenu."
-* @private
-*/
-_cancelShowDelay: function () {
-
-    var oRoot = this.getRoot();
-
-    if (oRoot._nShowDelayId) {
-
-        window.clearTimeout(oRoot._nShowDelayId);
-
-    }
-
-},
-
-
-/**
-* @method _execShowDelay
-* @description Shows the menu after the number of milliseconds specified by 
-* the "showdelay" configuration property have ellapsed.
-* @private
-* @param {YAHOO.widget.Menu} p_oMenu Object specifying the menu that should 
-* be made visible.
-*/
-_execShowDelay: function (p_oMenu) {
-
-    var oRoot = this.getRoot();
-
-    function showMenu() {
-
-        if (p_oMenu.parent.cfg.getProperty("selected")) {
-
-            p_oMenu.show();
-
-        }
-
-    }
-
-
-    oRoot._nShowDelayId = 
-        window.setTimeout(showMenu, oRoot.cfg.getProperty("showdelay"));
-
-},
-
-
-/**
-* @method _execSubmenuHideDelay
-* @description Hides a submenu after the number of milliseconds specified by 
-* the "submenuhidedelay" configuration property have ellapsed.
-* @private
-* @param {YAHOO.widget.Menu} p_oSubmenu Object specifying the submenu that  
-* should be hidden.
-* @param {Number} p_nMouseX The x coordinate of the mouse when it left 
-* the specified submenu's parent menu item.
-* @param {Number} p_nHideDelay The number of milliseconds that should ellapse
-* before the submenu is hidden.
-*/
-_execSubmenuHideDelay: function (p_oSubmenu, p_nMouseX, p_nHideDelay) {
-
-    var me = this;
-
-    p_oSubmenu._nSubmenuHideDelayId = window.setTimeout(function () {
-
-        if (me._nCurrentMouseX > (p_nMouseX + 10)) {
-
-            p_oSubmenu._nSubmenuHideDelayId = window.setTimeout(function () {
-        
-                p_oSubmenu.hide();
-
-            }, p_nHideDelay);
-
-        }
-        else {
-
-            p_oSubmenu.hide();
-        
-        }
-
-    }, 50);
-
-},
-
-
-
-// Protected methods
-
-
-/**
-* @method _disableScrollHeader
-* @description Disables the header used for scrolling the body of the menu.
-* @protected
-*/
-_disableScrollHeader: function () {
-
-    if (!this._bHeaderDisabled) {
-
-        Dom.addClass(this.header, "topscrollbar_disabled");
-        this._bHeaderDisabled = true;
-
-    }
-
-},
-
-
-/**
-* @method _disableScrollFooter
-* @description Disables the footer used for scrolling the body of the menu.
-* @protected
-*/
-_disableScrollFooter: function () {
-
-    if (!this._bFooterDisabled) {
-
-        Dom.addClass(this.footer, "bottomscrollbar_disabled");
-        this._bFooterDisabled = true;
-
-    }
-
-},
-
-
-/**
-* @method _enableScrollHeader
-* @description Enables the header used for scrolling the body of the menu.
-* @protected
-*/
-_enableScrollHeader: function () {
-
-    if (this._bHeaderDisabled) {
-
-        Dom.removeClass(this.header, "topscrollbar_disabled");
-        this._bHeaderDisabled = false;
-
-    }
-
-},
-
-
-/**
-* @method _enableScrollFooter
-* @description Enables the footer used for scrolling the body of the menu.
-* @protected
-*/
-_enableScrollFooter: function () {
-
-    if (this._bFooterDisabled) {
-
-        Dom.removeClass(this.footer, "bottomscrollbar_disabled");
-        this._bFooterDisabled = false;
-
-    }
-
-},
-
-
-/**
-* @method _onMouseOver
-* @description "mouseover" event handler for the menu.
-* @protected
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onMouseOver: function (p_sType, p_aArgs) {
-
-    if (this._bStopMouseEventHandlers) {
-    
-        return false;
-    
-    }
-
-
-    var oEvent = p_aArgs[0],
-        oItem = p_aArgs[1],
-        oTarget = Event.getTarget(oEvent),
-        oParentMenu,
-        nShowDelay,
-        bShowDelay,
-        oActiveItem,
-        oItemCfg,
-        oSubmenu;
-
-
-    if (!this._bHandledMouseOverEvent && (oTarget == this.element || 
-        Dom.isAncestor(this.element, oTarget))) {
-
-        // Menu mouseover logic
-
-        this._nCurrentMouseX = 0;
-
-        Event.on(this.element, "mousemove", this._onMouseMove, this, true);
-
-
-               if (!Dom.isAncestor(oItem.element, Event.getRelatedTarget(oEvent))) {
-
-               this.clearActiveItem();
-        
-        }
-
-
-        if (this.parent && this._nSubmenuHideDelayId) {
-
-            window.clearTimeout(this._nSubmenuHideDelayId);
-
-            this.parent.cfg.setProperty("selected", true);
-
-            oParentMenu = this.parent.parent;
-
-            oParentMenu._bHandledMouseOutEvent = true;
-            oParentMenu._bHandledMouseOverEvent = false;
-
-        }
-
-
-        this._bHandledMouseOverEvent = true;
-        this._bHandledMouseOutEvent = false;
-    
-    }
-
-
-    if (oItem && !oItem.handledMouseOverEvent && 
-        !oItem.cfg.getProperty("disabled") && 
-        (oTarget == oItem.element || Dom.isAncestor(oItem.element, oTarget))) {
-
-        // Menu Item mouseover logic
-
-        nShowDelay = this.cfg.getProperty("showdelay");
-        bShowDelay = (nShowDelay > 0);
-
-
-        if (bShowDelay) {
-        
-            this._cancelShowDelay();
-        
-        }
-
-
-        oActiveItem = this.activeItem;
-    
-        if (oActiveItem) {
-    
-            oActiveItem.cfg.setProperty("selected", false);
-    
-        }
-
-
-        oItemCfg = oItem.cfg;
-    
-        // Select and focus the current menu item
-    
-        oItemCfg.setProperty("selected", true);
-
-
-        if (this.hasFocus()) {
-        
-            oItem.focus();
-        
-        }
-
-
-        if (this.cfg.getProperty("autosubmenudisplay")) {
-
-            // Show the submenu this menu item
-
-            oSubmenu = oItemCfg.getProperty("submenu");
-        
-            if (oSubmenu) {
-        
-                if (bShowDelay) {
-
-                    this._execShowDelay(oSubmenu);
-        
-                }
-                else {
-
-                    oSubmenu.show();
-
-                }
-
-            }
-
-        }                        
-
-        oItem.handledMouseOverEvent = true;
-        oItem.handledMouseOutEvent = false;
-
-    }
-
-},
-
-
-/**
-* @method _onMouseOut
-* @description "mouseout" event handler for the menu.
-* @protected
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onMouseOut: function (p_sType, p_aArgs) {
-
-    if (this._bStopMouseEventHandlers) {
-    
-        return false;
-    
-    }
-
-
-    var oEvent = p_aArgs[0],
-        oItem = p_aArgs[1],
-        oRelatedTarget = Event.getRelatedTarget(oEvent),
-        bMovingToSubmenu = false,
-        oItemCfg,
-        oSubmenu,
-        nSubmenuHideDelay,
-        nShowDelay;
-
-
-    if (oItem && !oItem.cfg.getProperty("disabled")) {
-
-        oItemCfg = oItem.cfg;
-        oSubmenu = oItemCfg.getProperty("submenu");
-
-
-        if (oSubmenu && (oRelatedTarget == oSubmenu.element ||
-                Dom.isAncestor(oSubmenu.element, oRelatedTarget))) {
-
-            bMovingToSubmenu = true;
-
-        }
-
-
-        if (!oItem.handledMouseOutEvent && ((oRelatedTarget != oItem.element &&  
-            !Dom.isAncestor(oItem.element, oRelatedTarget)) || 
-            bMovingToSubmenu)) {
-
-            // Menu Item mouseout logic
-
-            if (!bMovingToSubmenu) {
-
-                oItem.cfg.setProperty("selected", false);
-
-
-                if (oSubmenu) {
-
-                    nSubmenuHideDelay = 
-                        this.cfg.getProperty("submenuhidedelay");
-
-                    nShowDelay = this.cfg.getProperty("showdelay");
-
-                    if (!(this instanceof YAHOO.widget.MenuBar) && 
-                        nSubmenuHideDelay > 0 && 
-                        nShowDelay >= nSubmenuHideDelay) {
-
-                        this._execSubmenuHideDelay(oSubmenu, 
-                                Event.getPageX(oEvent),
-                                nSubmenuHideDelay);
-
-                    }
-                    else {
-
-                        oSubmenu.hide();
-
-                    }
-
-                }
-
-            }
-
-
-            oItem.handledMouseOutEvent = true;
-            oItem.handledMouseOverEvent = false;
-    
-        }
-
-    }
-
-
-    if (!this._bHandledMouseOutEvent && ((oRelatedTarget != this.element &&  
-        !Dom.isAncestor(this.element, oRelatedTarget)) || bMovingToSubmenu)) {
-
-        // Menu mouseout logic
-
-        Event.removeListener(this.element, "mousemove", this._onMouseMove);
-
-        this._nCurrentMouseX = Event.getPageX(oEvent);
-
-        this._bHandledMouseOutEvent = true;
-        this._bHandledMouseOverEvent = false;
-
-    }
-
-},
-
-
-/**
-* @method _onMouseMove
-* @description "click" event handler for the menu.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed 
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-_onMouseMove: function (p_oEvent, p_oMenu) {
-
-    if (this._bStopMouseEventHandlers) {
-    
-        return false;
-    
-    }
-
-    this._nCurrentMouseX = Event.getPageX(p_oEvent);
-
-},
-
-
-/**
-* @method _onClick
-* @description "click" event handler for the menu.
-* @protected
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onClick: function (p_sType, p_aArgs) {
-
-       var Event = YAHOO.util.Event,
-               Dom = YAHOO.util.Dom,
-               oEvent = p_aArgs[0],
-               oItem = p_aArgs[1],
-               oSubmenu,
-               bInMenuAnchor = false,
-               oRoot,
-               sId,
-               sURL,
-               nHashPos,
-               nLen;
-
-
-       if (oItem) {
-       
-               if (oItem.cfg.getProperty("disabled")) {
-               
-                       Event.preventDefault(oEvent);
-
-               }
-               else {
-
-                       oSubmenu = oItem.cfg.getProperty("submenu");
-       
-                       
-                       /*
-                                Check if the URL of the anchor is pointing to an element that is 
-                                a child of the menu.
-                       */
-                       
-                       sURL = oItem.cfg.getProperty("url");
-
-               
-                       if (sURL) {
-       
-                               nHashPos = sURL.indexOf("#");
-       
-                               nLen = sURL.length;
-       
-       
-                               if (nHashPos != -1) {
-       
-                                       sURL = sURL.substr(nHashPos, nLen);
-               
-                                       nLen = sURL.length;
-       
-       
-                                       if (nLen > 1) {
-       
-                                               sId = sURL.substr(1, nLen);
-       
-                                               bInMenuAnchor = Dom.isAncestor(this.element, sId);
-                                               
-                                       }
-                                       else if (nLen === 1) {
-       
-                                               bInMenuAnchor = true;
-                                       
-                                       }
-       
-                               }
-                       
-                       }
-
-
-       
-                       if (bInMenuAnchor && !oItem.cfg.getProperty("target")) {
-       
-                               Event.preventDefault(oEvent);
-       
-                               oItem.focus();
-                       
-                       }
-       
-       
-                       if (!oSubmenu) {
-       
-                               oRoot = this.getRoot();
-                               
-                               if (oRoot instanceof YAHOO.widget.MenuBar || 
-                                       oRoot.cfg.getProperty("position") == "static") {
-       
-                                       oRoot.clearActiveItem();
-       
-                               }
-                               else {
-       
-                                       oRoot.hide();
-                               
-                               }
-       
-                       }
-                       
-               }
-       
-       }
-
-},
-
-
-/**
-* @method _onKeyDown
-* @description "keydown" event handler for the menu.
-* @protected
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onKeyDown: function (p_sType, p_aArgs) {
-
-    var oEvent = p_aArgs[0],
-        oItem = p_aArgs[1],
-        me = this,
-        oSubmenu,
-        oItemCfg,
-        oParentItem,
-        oRoot,
-        oNextItem,
-        oBody,
-        nBodyScrollTop,
-        nBodyOffsetHeight,
-        aItems,
-        nItems,
-        nNextItemOffsetTop,
-        nScrollTarget,
-        oParentMenu;
-
-
-    /*
-        This function is called to prevent a bug in Firefox.  In Firefox,
-        moving a DOM element into a stationary mouse pointer will cause the 
-        browser to fire mouse events.  This can result in the menu mouse
-        event handlers being called uncessarily, especially when menus are 
-        moved into a stationary mouse pointer as a result of a 
-        key event handler.
-    */
-    function stopMouseEventHandlers() {
-
-        me._bStopMouseEventHandlers = true;
-        
-        window.setTimeout(function () {
-        
-            me._bStopMouseEventHandlers = false;
-        
-        }, 10);
-
-    }
-
-
-    if (oItem && !oItem.cfg.getProperty("disabled")) {
-
-        oItemCfg = oItem.cfg;
-        oParentItem = this.parent;
-
-        switch(oEvent.keyCode) {
-    
-            case 38:    // Up arrow
-            case 40:    // Down arrow
-    
-                oNextItem = (oEvent.keyCode == 38) ? 
-                    oItem.getPreviousEnabledSibling() : 
-                    oItem.getNextEnabledSibling();
-        
-                if (oNextItem) {
-
-                    this.clearActiveItem();
-
-                    oNextItem.cfg.setProperty("selected", true);
-                    oNextItem.focus();
-
-
-                    if (this.cfg.getProperty("maxheight") > 0) {
-
-                        oBody = this.body;
-                        nBodyScrollTop = oBody.scrollTop;
-                        nBodyOffsetHeight = oBody.offsetHeight;
-                        aItems = this.getItems();
-                        nItems = aItems.length - 1;
-                        nNextItemOffsetTop = oNextItem.element.offsetTop;
-
-
-                        if (oEvent.keyCode == 40 ) {    // Down
-                       
-                            if (nNextItemOffsetTop >= (nBodyOffsetHeight + nBodyScrollTop)) {
-
-                                oBody.scrollTop = nNextItemOffsetTop - nBodyOffsetHeight;
-
-                            }
-                            else if (nNextItemOffsetTop <= nBodyScrollTop) {
-                            
-                                oBody.scrollTop = 0;
-                            
-                            }
-
-
-                            if (oNextItem == aItems[nItems]) {
-
-                                oBody.scrollTop = oNextItem.element.offsetTop;
-
-                            }
-
-                        }
-                        else {  // Up
-
-                            if (nNextItemOffsetTop <= nBodyScrollTop) {
-
-                                oBody.scrollTop = nNextItemOffsetTop - oNextItem.element.offsetHeight;
-                            
-                            }
-                            else if (nNextItemOffsetTop >= (nBodyScrollTop + nBodyOffsetHeight)) {
-                            
-                                oBody.scrollTop = nNextItemOffsetTop;
-                            
-                            }
-
-
-                            if (oNextItem == aItems[0]) {
-                            
-                                oBody.scrollTop = 0;
-                            
-                            }
-
-                        }
-
-
-                        nBodyScrollTop = oBody.scrollTop;
-                        nScrollTarget = oBody.scrollHeight - oBody.offsetHeight;
-
-                        if (nBodyScrollTop === 0) {
-
-                            this._disableScrollHeader();
-                            this._enableScrollFooter();
-
-                        }
-                        else if (nBodyScrollTop == nScrollTarget) {
-
-                             this._enableScrollHeader();
-                             this._disableScrollFooter();
-
-                        }
-                        else {
-
-                            this._enableScrollHeader();
-                            this._enableScrollFooter();
-
-                        }
-
-                    }
-
-                }
-
-    
-                Event.preventDefault(oEvent);
-
-                stopMouseEventHandlers();
-    
-            break;
-            
-    
-            case 39:    // Right arrow
-    
-                oSubmenu = oItemCfg.getProperty("submenu");
-    
-                if (oSubmenu) {
-    
-                    if (!oItemCfg.getProperty("selected")) {
-        
-                        oItemCfg.setProperty("selected", true);
-        
-                    }
-    
-                    oSubmenu.show();
-                    oSubmenu.setInitialFocus();
-                    oSubmenu.setInitialSelection();
-    
-                }
-                else {
-    
-                    oRoot = this.getRoot();
-                    
-                    if (oRoot instanceof YAHOO.widget.MenuBar) {
-    
-                        oNextItem = oRoot.activeItem.getNextEnabledSibling();
-    
-                        if (oNextItem) {
-                        
-                            oRoot.clearActiveItem();
-    
-                            oNextItem.cfg.setProperty("selected", true);
-    
-                            oSubmenu = oNextItem.cfg.getProperty("submenu");
-    
-                            if (oSubmenu) {
-    
-                                oSubmenu.show();
-                            
-                            }
-    
-                            oNextItem.focus();
-                        
-                        }
-                    
-                    }
-                
-                }
-    
-    
-                Event.preventDefault(oEvent);
-
-                stopMouseEventHandlers();
-
-            break;
-    
-    
-            case 37:    // Left arrow
-    
-                if (oParentItem) {
-    
-                    oParentMenu = oParentItem.parent;
-    
-                    if (oParentMenu instanceof YAHOO.widget.MenuBar) {
-    
-                        oNextItem = 
-                            oParentMenu.activeItem.getPreviousEnabledSibling();
-    
-                        if (oNextItem) {
-                        
-                            oParentMenu.clearActiveItem();
-    
-                            oNextItem.cfg.setProperty("selected", true);
-    
-                            oSubmenu = oNextItem.cfg.getProperty("submenu");
-    
-                            if (oSubmenu) {
-                            
-                                oSubmenu.show();
-                            
-                            }
-    
-                            oNextItem.focus();
-                        
-                        } 
-                    
-                    }
-                    else {
-    
-                        this.hide();
-    
-                        oParentItem.focus();
-                    
-                    }
-    
-                }
-    
-                Event.preventDefault(oEvent);
-
-                stopMouseEventHandlers();
-
-            break;        
-    
-        }
-
-
-    }
-
-
-    if (oEvent.keyCode == 27) { // Esc key
-
-        if (this.cfg.getProperty("position") == "dynamic") {
-        
-            this.hide();
-
-            if (this.parent) {
-
-                this.parent.focus();
-            
-            }
-
-        }
-        else if (this.activeItem) {
-
-            oSubmenu = this.activeItem.cfg.getProperty("submenu");
-
-            if (oSubmenu && oSubmenu.cfg.getProperty("visible")) {
-            
-                oSubmenu.hide();
-                this.activeItem.focus();
-            
-            }
-            else {
-
-                this.activeItem.blur();
-                this.activeItem.cfg.setProperty("selected", false);
-        
-            }
-        
-        }
-
-
-        Event.preventDefault(oEvent);
-    
-    }
-    
-},
-
-
-/**
-* @method _onKeyPress
-* @description "keypress" event handler for a Menu instance.
-* @protected
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event 
-* was fired.
-*/
-_onKeyPress: function (p_sType, p_aArgs) {
-    
-    var oEvent = p_aArgs[0];
-
-
-    if (oEvent.keyCode == 40 || oEvent.keyCode == 38) {
-
-        Event.preventDefault(oEvent);
-
-    }
-
-},
-
-
-/**
-* @method _onYChange
-* @description "y" event handler for a Menu instance.
-* @protected
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event 
-* was fired.
-*/
-_onYChange: function (p_sType, p_aArgs) {
-
-    var oParent = this.parent,
-        nScrollTop,
-        oIFrame,
-        nY;
-
-
-    if (oParent) {
-
-        nScrollTop = oParent.parent.body.scrollTop;
-
-
-        if (nScrollTop > 0) {
-    
-            nY = (this.cfg.getProperty("y") - nScrollTop);
-            
-            Dom.setY(this.element, nY);
-
-            oIFrame = this.iframe;            
-    
-
-            if (oIFrame) {
-    
-                Dom.setY(oIFrame, nY);
-    
-            }
-            
-            this.cfg.setProperty("y", nY, true);
-        
-        }
-    
-    }
-
-},
-
-
-/**
-* @method _onScrollTargetMouseOver
-* @description "mouseover" event handler for the menu's "header" and "footer" 
-* elements.  Used to scroll the body of the menu up and down when the 
-* menu's "maxheight" configuration property is set to a value greater than 0.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed 
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-_onScrollTargetMouseOver: function (p_oEvent, p_oMenu) {
-
-    this._cancelHideDelay();
-
-    var oTarget = Event.getTarget(p_oEvent),
-        oBody = this.body,
-        me = this,
-        nScrollIncrement = this.cfg.getProperty("scrollincrement"),
-        nScrollTarget,
-        fnScrollFunction;
-
-
-    function scrollBodyDown() {
-
-        var nScrollTop = oBody.scrollTop;
-
-
-        if (nScrollTop < nScrollTarget) {
-
-            oBody.scrollTop = (nScrollTop + nScrollIncrement);
-
-            me._enableScrollHeader();
-
-        }
-        else {
-
-            oBody.scrollTop = nScrollTarget;
-            
-            window.clearInterval(me._nBodyScrollId);
-
-            me._disableScrollFooter();
-
-        }
-
-    }
-
-
-    function scrollBodyUp() {
-
-        var nScrollTop = oBody.scrollTop;
-
-
-        if (nScrollTop > 0) {
-
-            oBody.scrollTop = (nScrollTop - nScrollIncrement);
-
-            me._enableScrollFooter();
-
-        }
-        else {
-
-            oBody.scrollTop = 0;
-            
-            window.clearInterval(me._nBodyScrollId);
-
-            me._disableScrollHeader();
-
-        }
-
-    }
-
-    
-    if (Dom.hasClass(oTarget, "hd")) {
-
-        fnScrollFunction = scrollBodyUp;
-    
-    }
-    else {
-
-        nScrollTarget = oBody.scrollHeight - oBody.offsetHeight;
-
-        fnScrollFunction = scrollBodyDown;
-    
-    }
-
-
-    this._nBodyScrollId = window.setInterval(fnScrollFunction, 10);
-
-},
-
-
-/**
-* @method _onScrollTargetMouseOut
-* @description "mouseout" event handler for the menu's "header" and "footer" 
-* elements.  Used to stop scrolling the body of the menu up and down when the 
-* menu's "maxheight" configuration property is set to a value greater than 0.
-* @protected
-* @param {Event} p_oEvent Object representing the DOM event object passed 
-* back by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-_onScrollTargetMouseOut: function (p_oEvent, p_oMenu) {
-
-    window.clearInterval(this._nBodyScrollId);
-
-    this._cancelHideDelay();
-
-},
-
-
-
-// Private methods
-
-
-/**
-* @method _onInit
-* @description "init" event handler for the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onInit: function (p_sType, p_aArgs) {
-
-    this.cfg.subscribeToConfigEvent("visible", this._onVisibleChange);
-
-    var bRootMenu = !this.parent,
-        bLazyLoad = this.lazyLoad;
-
-
-    /*
-        Automatically initialize a menu's subtree if:
-
-        1) This is the root menu and lazyload is off
-        
-        2) This is the root menu, lazyload is on, but the menu is 
-           already visible
-
-        3) This menu is a submenu and lazyload is off
-    */
-
-
-
-    if (((bRootMenu && !bLazyLoad) || 
-        (bRootMenu && (this.cfg.getProperty("visible") || 
-        this.cfg.getProperty("position") == "static")) || 
-        (!bRootMenu && !bLazyLoad)) && this.getItemGroups().length === 0) {
-
-        if (this.srcElement) {
-
-            this._initSubTree();
-        
-        }
-
-
-        if (this.itemData) {
-
-            this.addItems(this.itemData);
-
-        }
-    
-    }
-    else if (bLazyLoad) {
-
-        this.cfg.fireQueue();
-    
-    }
-
-},
-
-
-/**
-* @method _onBeforeRender
-* @description "beforerender" event handler for the menu.  Appends all of the 
-* <code>&#60;ul&#62;</code>, <code>&#60;li&#62;</code> and their accompanying 
-* title elements to the body element of the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onBeforeRender: function (p_sType, p_aArgs) {
-
-    var oEl = this.element,
-        nListElements = this._aListElements.length,
-        bFirstList = true,
-        i = 0,
-        oUL,
-        oGroupTitle;
-
-    if (nListElements > 0) {
-
-        do {
-
-            oUL = this._aListElements[i];
-
-            if (oUL) {
-
-                if (bFirstList) {
-        
-                    Dom.addClass(oUL, "first-of-type");
-                    bFirstList = false;
-        
-                }
-
-
-                if (!Dom.isAncestor(oEl, oUL)) {
-
-                    this.appendToBody(oUL);
-
-                }
-
-
-                oGroupTitle = this._aGroupTitleElements[i];
-
-                if (oGroupTitle) {
-
-                    if (!Dom.isAncestor(oEl, oGroupTitle)) {
-
-                        oUL.parentNode.insertBefore(oGroupTitle, oUL);
-
-                    }
-
-
-                    Dom.addClass(oUL, "hastitle");
-
-                }
-
-            }
-
-            i++;
-
-        }
-        while(i < nListElements);
-
-    }
-
-},
-
-
-/**
-* @method _onRender
-* @description "render" event handler for the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onRender: function (p_sType, p_aArgs) {
-
-    if (this.cfg.getProperty("position") == "dynamic") { 
-
-        if (!this.cfg.getProperty("visible")) {
-
-            this.positionOffScreen();
-
-        }
-    
-    }
-
-},
-
-
-
-
-
-/**
-* @method _onBeforeShow
-* @description "beforeshow" event handler for the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onBeforeShow: function (p_sType, p_aArgs) {
-
-    var nOptions,
-        n,
-        nViewportHeight,
-        oRegion,
-        oSrcElement;
-
-
-    if (this.lazyLoad && this.getItemGroups().length === 0) {
-
-        if (this.srcElement) {
-        
-            this._initSubTree();
-
-        }
-
-
-        if (this.itemData) {
-
-            if (this.parent && this.parent.parent && 
-                this.parent.parent.srcElement && 
-                this.parent.parent.srcElement.tagName.toUpperCase() == 
-                "SELECT") {
-
-                nOptions = this.itemData.length;
-    
-                for(n=0; n<nOptions; n++) {
-
-                    if (this.itemData[n].tagName) {
-
-                        this.addItem((new this.ITEM_TYPE(this.itemData[n])));
-    
-                    }
-    
-                }
-            
-            }
-            else {
-
-                this.addItems(this.itemData);
-            
-            }
-        
-        }
-
-
-        oSrcElement = this.srcElement;
-
-        if (oSrcElement) {
-
-            if (oSrcElement.tagName.toUpperCase() == "SELECT") {
-
-                if (Dom.inDocument(oSrcElement)) {
-
-                    this.render(oSrcElement.parentNode);
-                
-                }
-                else {
-                
-                    this.render(this.cfg.getProperty("container"));
-                
-                }
-
-            }
-            else {
-
-                this.render();
-
-            }
-
-        }
-        else {
-
-            if (this.parent) {
-
-                this.render(this.parent.element);            
-
-            }
-            else {
-
-                this.render(this.cfg.getProperty("container"));
-
-            }                
-
-        }
-
-    }
-
-
-    var nMaxHeight = this.cfg.getProperty("maxheight"),
-        nMinScrollHeight = this.cfg.getProperty("minscrollheight"),
-        bDynamicPos = this.cfg.getProperty("position") == "dynamic";
-
-
-    if (!this.parent && bDynamicPos) {
-
-        this.cfg.refireEvent("xy");
-   
-    }
-
-
-    function clearMaxHeight() {
-    
-        this.cfg.setProperty("maxheight", 0);
-    
-        this.hideEvent.unsubscribe(clearMaxHeight);
-    
-    }
-
-
-    if (!(this instanceof YAHOO.widget.MenuBar) && bDynamicPos) {
-
-
-        if (nMaxHeight === 0) {
-
-            nViewportHeight = Dom.getViewportHeight();
-    
-    
-            if (this.parent && 
-                this.parent.parent instanceof YAHOO.widget.MenuBar) {
-               
-                oRegion = YAHOO.util.Region.getRegion(this.parent.element);
-                
-                nViewportHeight = (nViewportHeight - oRegion.bottom);
-    
-            }
-    
-    
-            if (this.element.offsetHeight >= nViewportHeight) {
-    
-                nMaxHeight = (nViewportHeight - (Overlay.VIEWPORT_OFFSET * 2));
-
-                if (nMaxHeight < nMinScrollHeight) {
-
-                    nMaxHeight = nMinScrollHeight;
-                
-                }
-
-                this.cfg.setProperty("maxheight", nMaxHeight);
-
-                this.hideEvent.subscribe(clearMaxHeight);
-
-            }
-        
-        }
-
-    }
-
-},
-
-
-/**
-* @method _onShow
-* @description "show" event handler for the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onShow: function (p_sType, p_aArgs) {
-
-    var oParent = this.parent,
-        oParentMenu,
-        aParentAlignment,
-        aAlignment;
-
-
-    function disableAutoSubmenuDisplay(p_oEvent) {
-
-        var oTarget;
-
-        if (p_oEvent.type == "mousedown" || (p_oEvent.type == "keydown" && 
-            p_oEvent.keyCode == 27)) {
-
-            /*  
-                Set the "autosubmenudisplay" to "false" if the user
-                clicks outside the menu bar.
-            */
-
-            oTarget = Event.getTarget(p_oEvent);
-
-            if (oTarget != oParentMenu.element || 
-                !Dom.isAncestor(oParentMenu.element, oTarget)) {
-
-                oParentMenu.cfg.setProperty("autosubmenudisplay", false);
-
-                Event.removeListener(document, "mousedown", 
-                        disableAutoSubmenuDisplay);
-
-                Event.removeListener(document, "keydown", 
-                        disableAutoSubmenuDisplay);
-
-            }
-        
-        }
-
-    }
-
-
-    if (oParent) {
-
-        oParentMenu = oParent.parent;
-        aParentAlignment = oParentMenu.cfg.getProperty("submenualignment");
-        aAlignment = this.cfg.getProperty("submenualignment");
-
-
-        if ((aParentAlignment[0] != aAlignment[0]) &&
-            (aParentAlignment[1] != aAlignment[1])) {
-
-            this.cfg.setProperty("submenualignment", 
-                [aParentAlignment[0], aParentAlignment[1]]);
-        
-        }
-
-
-        if (!oParentMenu.cfg.getProperty("autosubmenudisplay") && 
-            (oParentMenu instanceof YAHOO.widget.MenuBar || 
-            oParentMenu.cfg.getProperty("position") == "static")) {
-
-            oParentMenu.cfg.setProperty("autosubmenudisplay", true);
-
-            Event.on(document, "mousedown", disableAutoSubmenuDisplay);                             
-            Event.on(document, "keydown", disableAutoSubmenuDisplay);
-
-        }
-
-    }
-
-},
-
-
-/**
-* @method _onBeforeHide
-* @description "beforehide" event handler for the menu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onBeforeHide: function (p_sType, p_aArgs) {
-
-    var oActiveItem = this.activeItem,
-        oConfig,
-        oSubmenu;
-
-    if (oActiveItem) {
-
-        oConfig = oActiveItem.cfg;
-
-        oConfig.setProperty("selected", false);
-
-        oSubmenu = oConfig.getProperty("submenu");
-
-        if (oSubmenu) {
-
-            oSubmenu.hide();
-
-        }
-
-    }
-
-    if (this.getRoot() == this) {
-
-        this.blur();
-    
-    }
-
-},
-
-
-/**
-* @method _onParentMenuConfigChange
-* @description "configchange" event handler for a submenu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that 
-* subscribed to the event.
-*/
-_onParentMenuConfigChange: function (p_sType, p_aArgs, p_oSubmenu) {
-    
-    var sPropertyName = p_aArgs[0][0],
-        oPropertyValue = p_aArgs[0][1];
-
-    switch(sPropertyName) {
-
-        case "iframe":
-        case "constraintoviewport":
-        case "hidedelay":
-        case "showdelay":
-        case "submenuhidedelay":
-        case "clicktohide":
-        case "effect":
-        case "classname":
-        case "scrollincrement":
-        case "minscrollheight":
-
-            p_oSubmenu.cfg.setProperty(sPropertyName, oPropertyValue);
-                
-        break;        
-        
-    }
-    
-},
-
-
-/**
-* @method _onParentMenuRender
-* @description "render" event handler for a submenu.  Renders a  
-* submenu in response to the firing of its parent's "render" event.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oSubmenu Object representing the submenu that 
-* subscribed to the event.
-*/
-_onParentMenuRender: function (p_sType, p_aArgs, p_oSubmenu) {
-
-    var oParentCfg = p_oSubmenu.parent.parent.cfg,
-
-        oConfig = {
-
-            constraintoviewport: oParentCfg.getProperty("constraintoviewport"),
-
-            xy: [0,0],
-
-            clicktohide: oParentCfg.getProperty("clicktohide"),
-                
-            effect: oParentCfg.getProperty("effect"),
-
-            showdelay: oParentCfg.getProperty("showdelay"),
-            
-            hidedelay: oParentCfg.getProperty("hidedelay"),
-
-            submenuhidedelay: oParentCfg.getProperty("submenuhidedelay"),
-
-            classname: oParentCfg.getProperty("classname"),
-            
-            scrollincrement: oParentCfg.getProperty("scrollincrement"),
-            
-            minscrollheight: oParentCfg.getProperty("minscrollheight"),
-            
-            iframe: oParentCfg.getProperty("iframe")
-
-        },
-        
-        oLI;
-
-
-    p_oSubmenu.cfg.applyConfig(oConfig);
-
-
-    if (!this.lazyLoad) {
-
-        oLI = this.parent.element;
-
-        if (this.element.parentNode == oLI) {
-    
-            this.render();
-    
-        }
-        else {
-
-            this.render(oLI);
-    
-        }
-
-    }
-    
-},
-
-
-/**
-* @method _onSubmenuBeforeShow
-* @description "beforeshow" event handler for a submenu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onSubmenuBeforeShow: function (p_sType, p_aArgs) {
-
-    var oParent = this.parent,
-        aAlignment = oParent.parent.cfg.getProperty("submenualignment");
-
-
-    if (!this.cfg.getProperty("context")) {
-    
-        this.cfg.setProperty("context", 
-            [oParent.element, aAlignment[0], aAlignment[1]]);
-
-    }
-    else {
-
-        this.align();
-    
-    }
-
-},
-
-
-/**
-* @method _onMenuItemFocus
-* @description "focus" event handler for the menu's items.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onMenuItemFocus: function (p_sType, p_aArgs) {
-
-    this.parent.focusEvent.fire(this);
-
-},
-
-
-/**
-* @method _onMenuItemBlur
-* @description "blur" event handler for the menu's items.
-* @private
-* @param {String} p_sType String representing the name of the event 
-* that was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-_onMenuItemBlur: function (p_sType, p_aArgs) {
-
-    this.parent.blurEvent.fire(this);
-
-},
-
-
-/**
-* @method _onMenuItemDestroy
-* @description "destroy" event handler for the menu's items.
-* @private
-* @param {String} p_sType String representing the name of the event 
-* that was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item 
-* that fired the event.
-*/
-_onMenuItemDestroy: function (p_sType, p_aArgs, p_oItem) {
-
-    this._removeItemFromGroupByValue(p_oItem.groupIndex, p_oItem);
-
-},
-
-
-/**
-* @method _onMenuItemConfigChange
-* @description "configchange" event handler for the menu's items.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item 
-* that fired the event.
-*/
-_onMenuItemConfigChange: function (p_sType, p_aArgs, p_oItem) {
-
-    var sPropertyName = p_aArgs[0][0],
-        oPropertyValue = p_aArgs[0][1],
-        oSubmenu;
-
-
-    switch(sPropertyName) {
-
-        case "selected":
-
-            if (oPropertyValue === true) {
-
-                this.activeItem = p_oItem;
-            
-            }
-
-        break;
-
-        case "submenu":
-
-            oSubmenu = p_aArgs[0][1];
-
-            if (oSubmenu) {
-
-                this._configureSubmenu(p_oItem);
-
-            }
-
-        break;
-
-    }
-
-},
-
-
-
-// Public event handlers for configuration properties
-
-
-/**
-* @method enforceConstraints
-* @description The default event handler executed when the moveEvent is fired,  
-* if the "constraintoviewport" configuration property is set to true.
-* @param {String} type The name of the event that was fired.
-* @param {Array} args Collection of arguments sent when the 
-* event was fired.
-* @param {Array} obj Array containing the current Menu instance 
-* and the item that fired the event.
-*/
-enforceConstraints: function (type, args, obj) {
-
-    var oParentMenuItem = this.parent,
-        nViewportOffset = Overlay.VIEWPORT_OFFSET,
-        oElement = this.element,
-        oConfig = this.cfg,
-        pos = args[0],
-        offsetHeight = oElement.offsetHeight,
-        offsetWidth = oElement.offsetWidth,
-        viewPortWidth = Dom.getViewportWidth(),
-        viewPortHeight = Dom.getViewportHeight(),
-        nPadding = (oParentMenuItem && 
-            oParentMenuItem.parent instanceof YAHOO.widget.MenuBar) ? 
-            0 : nViewportOffset,
-        aContext = oConfig.getProperty("context"),
-        oContextElement = aContext ? aContext[0] : null,
-        topConstraint,
-        leftConstraint,
-        bottomConstraint,
-        rightConstraint,
-        scrollX,
-        scrollY,
-        x,
-        y;
-    
-
-    if (offsetWidth < viewPortWidth) {
-
-        x = pos[0];
-        scrollX = Dom.getDocumentScrollLeft();
-        leftConstraint = scrollX + nPadding;
-        rightConstraint = scrollX + viewPortWidth - offsetWidth - nPadding;
-
-        if (x < nViewportOffset) {
-    
-            x = leftConstraint;
-    
-        } else if ((x + offsetWidth) > viewPortWidth) {
-    
-            if(oContextElement &&
-                ((x - oContextElement.offsetWidth) > offsetWidth)) {
-    
-                if (oParentMenuItem && 
-                    oParentMenuItem.parent instanceof YAHOO.widget.MenuBar) {
-    
-                    x = (x - (offsetWidth - oContextElement.offsetWidth));
-    
-                }
-                else {
-    
-                    x = (x - (oContextElement.offsetWidth + offsetWidth));
-    
-                }
-    
-            }
-            else {
-    
-                x = rightConstraint;
-    
-            }
-    
-        }
-    
-    }
-
-
-    if (offsetHeight < viewPortHeight) {
-
-        y = pos[1];
-        scrollY = Dom.getDocumentScrollTop();
-        topConstraint = scrollY + nPadding;
-        bottomConstraint = scrollY + viewPortHeight - offsetHeight - nPadding;
-
-
-
-        if (y < nViewportOffset) {
-    
-            y = topConstraint;
-    
-        } else if (y > bottomConstraint) {
-    
-            if (oContextElement && (y > offsetHeight)) {
-    
-                y = ((y + oContextElement.offsetHeight) - offsetHeight);
-    
-            }
-            else {
-    
-                y = bottomConstraint;
-                
-
-    
-            }
-    
-        }
-
-    }
-
-
-    oConfig.setProperty("x", x, true);
-    oConfig.setProperty("y", y, true);
-    oConfig.setProperty("xy", [x,y], true);
-
-},
-
-
-/**
-* @method configVisible
-* @description Event handler for when the "visible" configuration property 
-* the menu changes.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-configVisible: function (p_sType, p_aArgs, p_oMenu) {
-
-    var bVisible,
-        sDisplay;
-
-    if (this.cfg.getProperty("position") == "dynamic") {
-
-        Menu.superclass.configVisible.call(this, p_sType, p_aArgs, p_oMenu);
-
-    }
-    else {
-
-        bVisible = p_aArgs[0];
-        sDisplay = Dom.getStyle(this.element, "display");
-
-        Dom.setStyle(this.element, "visibility", "visible");
-
-        if (bVisible) {
-
-            if (sDisplay != "block") {
-                this.beforeShowEvent.fire();
-                Dom.setStyle(this.element, "display", "block");
-                this.showEvent.fire();
-            }
-        
-        }
-        else {
-
-                       if (sDisplay == "block") {
-                               this.beforeHideEvent.fire();
-                               Dom.setStyle(this.element, "display", "none");
-                               this.hideEvent.fire();
-                       }
-        
-        }
-
-    }
-
-},
-
-
-/**
-* @method configPosition
-* @description Event handler for when the "position" configuration property 
-* of the menu changes.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-configPosition: function (p_sType, p_aArgs, p_oMenu) {
-
-    var oElement = this.element,
-        sCSSPosition = p_aArgs[0] == "static" ? "static" : "absolute",
-        oCfg = this.cfg,
-        nZIndex;
-
-
-    Dom.setStyle(oElement, "position", sCSSPosition);
-
-
-    if (sCSSPosition == "static") {
-
-        // Statically positioned menus are visible by default
-        
-        Dom.setStyle(oElement, "display", "block");
-
-        oCfg.setProperty("visible", true);
-
-    }
-    else {
-
-        /*
-            Even though the "visible" property is queued to 
-            "false" by default, we need to set the "visibility" property to 
-            "hidden" since Overlay's "configVisible" implementation checks the 
-            element's "visibility" style property before deciding whether 
-            or not to show an Overlay instance.
-        */
-
-        Dom.setStyle(oElement, "visibility", "hidden");
-    
-    }
-
-
-    if (sCSSPosition == "absolute") {
-
-        nZIndex = oCfg.getProperty("zindex");
-
-        if (!nZIndex || nZIndex === 0) {
-
-            nZIndex = this.parent ? 
-                (this.parent.parent.cfg.getProperty("zindex") + 1) : 1;
-
-            oCfg.setProperty("zindex", nZIndex);
-
-        }
-
-    }
-
-},
-
-
-/**
-* @method configIframe
-* @description Event handler for when the "iframe" configuration property of 
-* the menu changes.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-configIframe: function (p_sType, p_aArgs, p_oMenu) {    
-
-    if (this.cfg.getProperty("position") == "dynamic") {
-
-        Menu.superclass.configIframe.call(this, p_sType, p_aArgs, p_oMenu);
-
-    }
-
-},
-
-
-/**
-* @method configHideDelay
-* @description Event handler for when the "hidedelay" configuration property 
-* of the menu changes.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-configHideDelay: function (p_sType, p_aArgs, p_oMenu) {
-
-    var nHideDelay = p_aArgs[0],
-        oMouseOutEvent = this.mouseOutEvent,
-        oMouseOverEvent = this.mouseOverEvent,
-        oKeyDownEvent = this.keyDownEvent;
-
-    if (nHideDelay > 0) {
-
-        /*
-            Only assign event handlers once. This way the user change 
-            the value for the hidedelay as many times as they want.
-        */
-
-        if (!this._bHideDelayEventHandlersAssigned) {
-
-            oMouseOutEvent.subscribe(this._execHideDelay);
-            oMouseOverEvent.subscribe(this._cancelHideDelay);
-            oKeyDownEvent.subscribe(this._cancelHideDelay);
-
-            this._bHideDelayEventHandlersAssigned = true;
-        
-        }
-
-    }
-    else {
-
-        oMouseOutEvent.unsubscribe(this._execHideDelay);
-        oMouseOverEvent.unsubscribe(this._cancelHideDelay);
-        oKeyDownEvent.unsubscribe(this._cancelHideDelay);
-
-        this._bHideDelayEventHandlersAssigned = false;
-
-    }
-
-},
-
-
-/**
-* @method configContainer
-* @description Event handler for when the "container" configuration property 
-* of the menu changes.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu Object representing the menu that 
-* fired the event.
-*/
-configContainer: function (p_sType, p_aArgs, p_oMenu) {
-
-       var oElement = p_aArgs[0];
-
-       if (typeof oElement == 'string') {
-
-        this.cfg.setProperty("container", document.getElementById(oElement), 
-                true);
-
-       }
-
-},
-
-
-/**
-* @method _setMaxHeight
-* @description "renderEvent" handler used to defer the setting of the 
-* "maxheight" configuration property until the menu is rendered in lazy 
-* load scenarios.
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event 
-* was fired.
-* @param {Number} p_nMaxHeight Number representing the value to set for the 
-* "maxheight" configuration property.
-* @private
-*/
-_setMaxHeight: function (p_sType, p_aArgs, p_nMaxHeight) {
-
-    this.cfg.setProperty("maxheight", p_nMaxHeight);
-    this.renderEvent.unsubscribe(this._setMaxHeight);
-
-},
-
-
-/**
-* @method configMaxHeight
-* @description Event handler for when the "maxheight" configuration property of 
-* a Menu changes.
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event 
-* was fired.
-* @param {YAHOO.widget.Menu} p_oMenu The Menu instance fired
-* the event.
-*/
-configMaxHeight: function (p_sType, p_aArgs, p_oMenu) {
-
-    var nMaxHeight = p_aArgs[0],
-        oElement = this.element,
-        oBody = this.body,
-        oHeader = this.header,
-        oFooter = this.footer,
-        fnMouseOver = this._onScrollTargetMouseOver,
-        fnMouseOut = this._onScrollTargetMouseOut,
-        nMinScrollHeight = this.cfg.getProperty("minscrollheight"),
-        nHeight,
-        nOffsetWidth,
-        sWidth;
-
-
-    if (nMaxHeight !== 0 && nMaxHeight < nMinScrollHeight) {
-    
-        nMaxHeight = nMinScrollHeight;
-    
-    }
-
-
-    if (this.lazyLoad && !oBody) {
-
-        this.renderEvent.unsubscribe(this._setMaxHeight);
-    
-        if (nMaxHeight > 0) {
-
-            this.renderEvent.subscribe(this._setMaxHeight, nMaxHeight, this);
-
-        }
-
-        return;
-    
-    }
-
-
-    Dom.setStyle(oBody, "height", "");
-    Dom.removeClass(oBody, "yui-menu-body-scrolled");
-
-
-    /*
-        There is a bug in gecko-based browsers where an element whose 
-        "position" property is set to "absolute" and "overflow" property is set 
-        to "hidden" will not render at the correct width when its 
-        offsetParent's "position" property is also set to "absolute."  It is 
-        possible to work around this bug by specifying a value for the width 
-        property in addition to overflow.
-
-               In IE it is also necessary to give the Menu a width when the scrollbars are 
-               rendered to prevent the Menu from rendering with a width that is 100% of
-               the browser viewport.
-    */
-
-       var bSetWidth = ((UA.gecko && this.parent && this.parent.parent && 
-        this.parent.parent.cfg.getProperty("position") == "dynamic") || UA.ie);
-
-
-    if (bSetWidth) {
-
-               if (!this.cfg.getProperty("width")) {
-
-                       nOffsetWidth = oElement.offsetWidth;
-       
-                       /*
-                               Measuring the difference of the offsetWidth before and after
-                               setting the "width" style attribute allows us to compute the 
-                               about of padding and borders applied to the element, which in 
-                               turn allows us to set the "width" property correctly.
-                       */
-                       
-                       oElement.style.width = nOffsetWidth + "px";
-       
-                       sWidth = (nOffsetWidth - (oElement.offsetWidth - nOffsetWidth)) + "px";
-       
-                       this.cfg.setProperty("width", sWidth);
-               
-               }
-
-    }
-
-
-    if (!oHeader && !oFooter) {
-
-        this.setHeader("&#32;");
-        this.setFooter("&#32;");
-
-        oHeader = this.header;
-        oFooter = this.footer;
-
-        Dom.addClass(oHeader, "topscrollbar");
-        Dom.addClass(oFooter, "bottomscrollbar");
-        
-        oElement.insertBefore(oHeader, oBody);
-        oElement.appendChild(oFooter);
-    
-    }
-
-
-    nHeight = (nMaxHeight - (oHeader.offsetHeight + oHeader.offsetHeight));
-
-
-    if (nHeight > 0 && (oBody.offsetHeight > nMaxHeight)) {
-
-        Dom.addClass(oBody, "yui-menu-body-scrolled");
-        Dom.setStyle(oBody, "height", (nHeight + "px"));
-
-        Event.on(oHeader, "mouseover", fnMouseOver, this, true);
-        Event.on(oHeader, "mouseout", fnMouseOut, this, true);
-        Event.on(oFooter, "mouseover", fnMouseOver, this, true);
-        Event.on(oFooter, "mouseout", fnMouseOut, this, true);
-
-        this._disableScrollHeader();
-        this._enableScrollFooter();
-
-    }
-    else if (oHeader && oFooter) {
-
-               if (bSetWidth) {
-
-                       this.cfg.setProperty("width", "");
-               
-               }
-
-
-        this._enableScrollHeader();
-        this._enableScrollFooter();
-
-        Event.removeListener(oHeader, "mouseover", fnMouseOver);
-        Event.removeListener(oHeader, "mouseout", fnMouseOut);
-        Event.removeListener(oFooter, "mouseover", fnMouseOver);
-        Event.removeListener(oFooter, "mouseout", fnMouseOut);
-
-        oElement.removeChild(oHeader);
-        oElement.removeChild(oFooter);
-
-        this.header = null;
-        this.footer = null;
-    
-    }
-
-    this.cfg.refireEvent("iframe");
-
-},
-
-
-/**
-* @method configClassName
-* @description Event handler for when the "classname" configuration property of 
-* a menu changes.
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu The Menu instance fired the event.
-*/
-configClassName: function (p_sType, p_aArgs, p_oMenu) {
-
-    var sClassName = p_aArgs[0];
-
-    if (this._sClassName) {
-
-        Dom.removeClass(this.element, this._sClassName);
-
-    }
-
-    Dom.addClass(this.element, sClassName);
-    this._sClassName = sClassName;
-
-},
-
-
-/**
-* @method _onItemAdded
-* @description "itemadded" event handler for a Menu instance.
-* @private
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event 
-* was fired.
-*/
-_onItemAdded: function (p_sType, p_aArgs) {
-
-    var oItem = p_aArgs[0];
-    
-    if (oItem) {
-
-        oItem.cfg.setProperty("disabled", true);
-    
-    }
-
-},
-
-
-/**
-* @method configDisabled
-* @description Event handler for when the "disabled" configuration property of 
-* a menu changes.
-* @param {String} p_sType The name of the event that was fired.
-* @param {Array} p_aArgs Collection of arguments sent when the event was fired.
-* @param {YAHOO.widget.Menu} p_oMenu The Menu instance fired the event.
-*/
-configDisabled: function (p_sType, p_aArgs, p_oMenu) {
-
-    var bDisabled = p_aArgs[0],
-        aItems = this.getItems(),
-        nItems,
-        i;
-
-    if (Lang.isArray(aItems)) {
-
-        nItems = aItems.length;
-    
-        if (nItems > 0) {
-        
-            i = nItems - 1;
-    
-            do {
-    
-                aItems[i].cfg.setProperty("disabled", bDisabled);
-            
-            }
-            while (i--);
-        
-        }
-
-
-        if (bDisabled) {
-
-            this.clearActiveItem(true);
-
-            Dom.addClass(this.element, "disabled");
-
-            this.itemAddedEvent.subscribe(this._onItemAdded);
-
-        }
-        else {
-
-            Dom.removeClass(this.element, "disabled");
-
-            this.itemAddedEvent.unsubscribe(this._onItemAdded);
-
-        }
-        
-    }
-
-},
-
-
-/**
-* @method onRender
-* @description "render" event handler for the menu.
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-*/
-onRender: function (p_sType, p_aArgs) {
-
-    function sizeShadow() {
-
-        var oElement = this.element,
-            oShadow = this._shadow;
-    
-        if (oShadow && oElement) {
-
-            oShadow.style.width = (oElement.offsetWidth + 6) + "px";
-            oShadow.style.height = (oElement.offsetHeight + 1) + "px";
-            
-        }
-    
-    }
-
-
-    function replaceShadow() {
-
-        this.element.appendChild(this._shadow);
-
-    }
-
-
-    function addShadowVisibleClass() {
-    
-        Dom.addClass(this._shadow, "yui-menu-shadow-visible");
-    
-    }
-    
-
-    function removeShadowVisibleClass() {
-
-        Dom.removeClass(this._shadow, "yui-menu-shadow-visible");
-    
-    }
-
-
-    function createShadow() {
-
-        var oShadow = this._shadow,
-            oElement,
-            me;
-
-        if (!oShadow) {
-
-            oElement = this.element;
-            me = this;
-
-            if (!m_oShadowTemplate) {
-
-                m_oShadowTemplate = document.createElement("div");
-                m_oShadowTemplate.className = 
-                    "yui-menu-shadow yui-menu-shadow-visible";
-            
-            }
-
-            oShadow = m_oShadowTemplate.cloneNode(false);
-
-            oElement.appendChild(oShadow);
-            
-            this._shadow = oShadow;
-
-            this.beforeShowEvent.subscribe(addShadowVisibleClass);
-            this.beforeHideEvent.subscribe(removeShadowVisibleClass);
-
-            if (UA.ie) {
-        
-                /*
-                     Need to call sizeShadow & syncIframe via setTimeout for 
-                     IE 7 Quirks Mode and IE 6 Standards Mode and Quirks Mode 
-                     or the shadow and iframe shim will not be sized and 
-                     positioned properly.
-                */
-        
-                window.setTimeout(function () { 
-        
-                    sizeShadow.call(me); 
-                    me.syncIframe();
-        
-                }, 0);
-
-                this.cfg.subscribeToConfigEvent("width", sizeShadow);
-                this.cfg.subscribeToConfigEvent("height", sizeShadow);
-                this.cfg.subscribeToConfigEvent("maxheight", sizeShadow);
-                this.changeContentEvent.subscribe(sizeShadow);
-
-                Module.textResizeEvent.subscribe(sizeShadow, me, true);
-                
-                this.destroyEvent.subscribe(function () {
-                
-                    Module.textResizeEvent.unsubscribe(sizeShadow, me);
-                
-                });
-        
-            }
-
-            this.cfg.subscribeToConfigEvent("maxheight", replaceShadow);
-
-        }
-
-    }
-
-
-    function onBeforeShow() {
-    
-        createShadow.call(this);
-
-        this.beforeShowEvent.unsubscribe(onBeforeShow);
-    
-    }
-
-
-    if (this.cfg.getProperty("position") == "dynamic") {
-
-        if (this.cfg.getProperty("visible")) {
-
-            createShadow.call(this);
-        
-        }
-        else {
-
-            this.beforeShowEvent.subscribe(onBeforeShow);
-        
-        }
-    
-    }
-
-},
-
-
-// Public methods
-
-
-/**
-* @method initEvents
-* @description Initializes the custom events for the menu.
-*/
-initEvents: function () {
-
-       Menu.superclass.initEvents.call(this);
-
-    // Create custom events
-
-    var SIGNATURE = CustomEvent.LIST;
-
-    this.mouseOverEvent = this.createEvent(EVENT_TYPES.MOUSE_OVER);
-    this.mouseOverEvent.signature = SIGNATURE;
-
-    this.mouseOutEvent = this.createEvent(EVENT_TYPES.MOUSE_OUT);
-    this.mouseOutEvent.signature = SIGNATURE;
-    
-    this.mouseDownEvent = this.createEvent(EVENT_TYPES.MOUSE_DOWN);
-    this.mouseDownEvent.signature = SIGNATURE;
-
-    this.mouseUpEvent = this.createEvent(EVENT_TYPES.MOUSE_UP);
-    this.mouseUpEvent.signature = SIGNATURE;
-    
-    this.clickEvent = this.createEvent(EVENT_TYPES.CLICK);
-    this.clickEvent.signature = SIGNATURE;
-    
-    this.keyPressEvent = this.createEvent(EVENT_TYPES.KEY_PRESS);
-    this.keyPressEvent.signature = SIGNATURE;
-    
-    this.keyDownEvent = this.createEvent(EVENT_TYPES.KEY_DOWN);
-    this.keyDownEvent.signature = SIGNATURE;
-    
-    this.keyUpEvent = this.createEvent(EVENT_TYPES.KEY_UP);
-    this.keyUpEvent.signature = SIGNATURE;
-    
-    this.focusEvent = this.createEvent(EVENT_TYPES.FOCUS);
-    this.focusEvent.signature = SIGNATURE;
-    
-    this.blurEvent = this.createEvent(EVENT_TYPES.BLUR);
-    this.blurEvent.signature = SIGNATURE;
-    
-    this.itemAddedEvent = this.createEvent(EVENT_TYPES.ITEM_ADDED);
-    this.itemAddedEvent.signature = SIGNATURE;
-    
-    this.itemRemovedEvent = this.createEvent(EVENT_TYPES.ITEM_REMOVED);
-    this.itemRemovedEvent.signature = SIGNATURE;
-
-},
-
-
-/**
-* @method positionOffScreen
-* @description Positions the menu outside of the boundaries of the browser's 
-* viewport.  Called automatically when a menu is hidden to ensure that 
-* it doesn't force the browser to render uncessary scrollbars.
-*/
-positionOffScreen: function () {
-
-    var oIFrame = this.iframe,
-        aPos = this.OFF_SCREEN_POSITION;
-
-    Dom.setXY(this.element, aPos);
-    
-    if (oIFrame) {
-
-        Dom.setXY(oIFrame, aPos);
-    
-    }
-
-},
-
-
-/**
-* @method getRoot
-* @description Finds the menu's root menu.
-*/
-getRoot: function () {
-
-    var oItem = this.parent,
-        oParentMenu;
-
-    if (oItem) {
-
-        oParentMenu = oItem.parent;
-
-        return oParentMenu ? oParentMenu.getRoot() : this;
-
-    }
-    else {
-    
-        return this;
-    
-    }
-
-},
-
-
-/**
-* @method toString
-* @description Returns a string representing the menu.
-* @return {String}
-*/
-toString: function () {
-
-    var sReturnVal = "Menu",
-        sId = this.id;
-
-    if (sId) {
-
-        sReturnVal += (" " + sId);
-    
-    }
-
-    return sReturnVal;
-
-},
-
-
-/**
-* @method setItemGroupTitle
-* @description Sets the title of a group of menu items.
-* @param {String} p_sGroupTitle String specifying the title of the group.
-* @param {Number} p_nGroupIndex Optional. Number specifying the group to which
-* the title belongs.
-*/
-setItemGroupTitle: function (p_sGroupTitle, p_nGroupIndex) {
-
-    var nGroupIndex,
-        oTitle,
-        i,
-        nFirstIndex;
-        
-    if (typeof p_sGroupTitle == "string" && p_sGroupTitle.length > 0) {
-
-        nGroupIndex = typeof p_nGroupIndex == "number" ? p_nGroupIndex : 0;
-        oTitle = this._aGroupTitleElements[nGroupIndex];
-
-
-        if (oTitle) {
-
-            oTitle.innerHTML = p_sGroupTitle;
-            
-        }
-        else {
-
-            oTitle = document.createElement(this.GROUP_TITLE_TAG_NAME);
-                    
-            oTitle.innerHTML = p_sGroupTitle;
-
-            this._aGroupTitleElements[nGroupIndex] = oTitle;
-
-        }
-
-
-        i = this._aGroupTitleElements.length - 1;
-
-        do {
-
-            if (this._aGroupTitleElements[i]) {
-
-                Dom.removeClass(this._aGroupTitleElements[i], "first-of-type");
-
-                nFirstIndex = i;
-
-            }
-
-        }
-        while(i--);
-
-
-        if (nFirstIndex !== null) {
-
-            Dom.addClass(this._aGroupTitleElements[nFirstIndex], 
-                "first-of-type");
-
-        }
-
-        this.changeContentEvent.fire();
-
-    }
-
-},
-
-
-
-/**
-* @method addItem
-* @description Appends an item to the menu.
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance to be added to the menu.
-* @param {String} p_oItem String specifying the text of the item to be added 
-* to the menu.
-* @param {Object} p_oItem Object literal containing a set of menu item 
-* configuration properties.
-* @param {Number} p_nGroupIndex Optional. Number indicating the group to
-* which the item belongs.
-* @return {YAHOO.widget.MenuItem}
-*/
-addItem: function (p_oItem, p_nGroupIndex) {
-
-    if (p_oItem) {
-
-        return this._addItemToGroup(p_nGroupIndex, p_oItem);
-        
-    }
-
-},
-
-
-/**
-* @method addItems
-* @description Adds an array of items to the menu.
-* @param {Array} p_aItems Array of items to be added to the menu.  The array 
-* can contain strings specifying the text for each item to be created, object
-* literals specifying each of the menu item configuration properties, 
-* or MenuItem instances.
-* @param {Number} p_nGroupIndex Optional. Number specifying the group to 
-* which the items belongs.
-* @return {Array}
-*/
-addItems: function (p_aItems, p_nGroupIndex) {
-
-    var nItems,
-        aItems,
-        oItem,
-        i;
-
-    if (Lang.isArray(p_aItems)) {
-
-        nItems = p_aItems.length;
-        aItems = [];
-
-        for(i=0; i<nItems; i++) {
-
-            oItem = p_aItems[i];
-
-            if (oItem) {
-
-                if (Lang.isArray(oItem)) {
-    
-                    aItems[aItems.length] = this.addItems(oItem, i);
-    
-                }
-                else {
-    
-                    aItems[aItems.length] = 
-                        this._addItemToGroup(p_nGroupIndex, oItem);
-                
-                }
-
-            }
-    
-        }
-
-
-        if (aItems.length) {
-        
-            return aItems;
-        
-        }
-
-    }
-
-},
-
-
-/**
-* @method insertItem
-* @description Inserts an item into the menu at the specified index.
-* @param {YAHOO.widget.MenuItem} p_oItem Object reference for the MenuItem 
-* instance to be added to the menu.
-* @param {String} p_oItem String specifying the text of the item to be added 
-* to the menu.
-* @param {Object} p_oItem Object literal containing a set of menu item 
-* configuration properties.
-* @param {Number} p_nItemIndex Number indicating the ordinal position at which
-* the item should be added.
-* @param {Number} p_nGroupIndex Optional. Number indicating the group to which 
-* the item belongs.
-* @return {YAHOO.widget.MenuItem}
-*/
-insertItem: function (p_oItem, p_nItemIndex, p_nGroupIndex) {
-    
-    if (p_oItem) {
-
-        return this._addItemToGroup(p_nGroupIndex, p_oItem, p_nItemIndex);
-
-    }
-
-},
-
-
-/**
-* @method removeItem
-* @description Removes the specified item from the menu.
-* @param {YAHOO.widget.MenuItem} p_oObject Object reference for the MenuItem 
-* instance to be removed from the menu.
-* @param {Number} p_oObject Number specifying the index of the item 
-* to be removed.
-* @param {Number} p_nGroupIndex Optional. Number specifying the group to 
-* which the item belongs.
-* @return {YAHOO.widget.MenuItem}
-*/
-removeItem: function (p_oObject, p_nGroupIndex) {
-
-    var oItem;
-    
-    if (typeof p_oObject != "undefined") {
-
-        if (p_oObject instanceof YAHOO.widget.MenuItem) {
-
-            oItem = this._removeItemFromGroupByValue(p_nGroupIndex, p_oObject);           
-
-        }
-        else if (typeof p_oObject == "number") {
-
-            oItem = this._removeItemFromGroupByIndex(p_nGroupIndex, p_oObject);
-
-        }
-
-        if (oItem) {
-
-            oItem.destroy();
-
-
-            return oItem;
-
-        }
-
-    }
-
-},
-
-
-/**
-* @method getItems
-* @description Returns an array of all of the items in the menu.
-* @return {Array}
-*/
-getItems: function () {
-
-    var aGroups = this._aItemGroups,
-        nGroups,
-        aItems = [];
-
-    if (Lang.isArray(aGroups)) {
-
-        nGroups = aGroups.length;
-
-        return ((nGroups == 1) ? aGroups[0] : 
-                    (Array.prototype.concat.apply(aItems, aGroups)));
-
-    }
-
-},
-
-
-/**
-* @method getItemGroups
-* @description Multi-dimensional Array representing the menu items as they 
-* are grouped in the menu.
-* @return {Array}
-*/        
-getItemGroups: function () {
-
-    return this._aItemGroups;
-
-},
-
-
-/**
-* @method getItem
-* @description Returns the item at the specified index.
-* @param {Number} p_nItemIndex Number indicating the ordinal position of the 
-* item to be retrieved.
-* @param {Number} p_nGroupIndex Optional. Number indicating the group to which 
-* the item belongs.
-* @return {YAHOO.widget.MenuItem}
-*/
-getItem: function (p_nItemIndex, p_nGroupIndex) {
-    
-    var aGroup;
-    
-    if (typeof p_nItemIndex == "number") {
-
-        aGroup = this._getItemGroup(p_nGroupIndex);
-
-        if (aGroup) {
-
-            return aGroup[p_nItemIndex];
-        
-        }
-
-    }
-    
-},
-
-
-/**
-* @method getSubmenus
-* @description Returns an array of all of the submenus that are immediate 
-* children of the menu.
-* @return {Array}
-*/
-getSubmenus: function () {
-
-    var aItems = this.getItems(),
-        nItems = aItems.length,
-        aSubmenus,
-        oSubmenu,
-        oItem,
-        i;
-
-
-    if (nItems > 0) {
-        
-        aSubmenus = [];
-
-        for(i=0; i<nItems; i++) {
-
-            oItem = aItems[i];
-            
-            if (oItem) {
-
-                oSubmenu = oItem.cfg.getProperty("submenu");
-                
-                if (oSubmenu) {
-
-                    aSubmenus[aSubmenus.length] = oSubmenu;
-
-                }
-            
-            }
-        
-        }
-    
-    }
-
-    return aSubmenus;
-
-},
-
-
-/**
-* @method clearContent
-* @description Removes all of the content from the menu, including the menu 
-* items, group titles, header and footer.
-*/
-clearContent: function () {
-
-    var aItems = this.getItems(),
-        nItems = aItems.length,
-        oElement = this.element,
-        oBody = this.body,
-        oHeader = this.header,
-        oFooter = this.footer,
-        oItem,
-        oSubmenu,
-        i;
-
-
-    if (nItems > 0) {
-
-        i = nItems - 1;
-
-        do {
-
-            oItem = aItems[i];
-
-            if (oItem) {
-
-                oSubmenu = oItem.cfg.getProperty("submenu");
-
-                if (oSubmenu) {
-
-                    this.cfg.configChangedEvent.unsubscribe(
-                        this._onParentMenuConfigChange, oSubmenu);
-
-                    this.renderEvent.unsubscribe(this._onParentMenuRender, 
-                        oSubmenu);
-
-                }
-                
-                this.removeItem(oItem);
-
-            }
-        
-        }
-        while(i--);
-
-    }
-
-
-    if (oHeader) {
-
-        Event.purgeElement(oHeader);
-        oElement.removeChild(oHeader);
-
-    }
-    
-
-    if (oFooter) {
-
-        Event.purgeElement(oFooter);
-        oElement.removeChild(oFooter);
-    }
-
-
-    if (oBody) {
-
-        Event.purgeElement(oBody);
-
-        oBody.innerHTML = "";
-
-    }
-
-    this.activeItem = null;
-
-    this._aItemGroups = [];
-    this._aListElements = [];
-    this._aGroupTitleElements = [];
-
-    this.cfg.setProperty("width", null);
-
-},
-
-
-/**
-* @method destroy
-* @description Removes the menu's <code>&#60;div&#62;</code> element 
-* (and accompanying child nodes) from the document.
-*/
-destroy: function () {
-
-    // Remove all items
-
-    this.clearContent();
-
-    this._aItemGroups = null;
-    this._aListElements = null;
-    this._aGroupTitleElements = null;
-
-
-    // Continue with the superclass implementation of this method
-
-    Menu.superclass.destroy.call(this);
-    
-
-},
-
-
-/**
-* @method setInitialFocus
-* @description Sets focus to the menu's first enabled item.
-*/
-setInitialFocus: function () {
-
-    var oItem = this._getFirstEnabledItem();
-    
-    if (oItem) {
-
-        oItem.focus();
-
-    }
-    
-},
-
-
-/**
-* @method setInitialSelection
-* @description Sets the "selected" configuration property of the menu's first 
-* enabled item to "true."
-*/
-setInitialSelection: function () {
-
-    var oItem = this._getFirstEnabledItem();
-    
-    if (oItem) {
-    
-        oItem.cfg.setProperty("selected", true);
-    }        
-
-},
-
-
-/**
-* @method clearActiveItem
-* @description Sets the "selected" configuration property of the menu's active
-* item to "false" and hides the item's submenu.
-* @param {Boolean} p_bBlur Boolean indicating if the menu's active item 
-* should be blurred.  
-*/
-clearActiveItem: function (p_bBlur) {
-
-    if (this.cfg.getProperty("showdelay") > 0) {
-    
-        this._cancelShowDelay();
-    
-    }
-
-
-    var oActiveItem = this.activeItem,
-        oConfig,
-        oSubmenu;
-
-    if (oActiveItem) {
-
-        oConfig = oActiveItem.cfg;
-
-        if (p_bBlur) {
-
-            oActiveItem.blur();
-        
-        }
-
-        oConfig.setProperty("selected", false);
-
-        oSubmenu = oConfig.getProperty("submenu");
-
-        if (oSubmenu) {
-
-            oSubmenu.hide();
-
-        }
-
-        this.activeItem = null;            
-
-    }
-
-},
-
-
-/**
-* @method focus
-* @description Causes the menu to receive focus and fires the "focus" event.
-*/
-focus: function () {
-
-    if (!this.hasFocus()) {
-
-        this.setInitialFocus();
-    
-    }
-
-},
-
-
-/**
-* @method blur
-* @description Causes the menu to lose focus and fires the "blur" event.
-*/    
-blur: function () {
-
-    var oItem;
-
-    if (this.hasFocus()) {
-    
-        oItem = MenuManager.getFocusedMenuItem();
-        
-        if (oItem) {
-
-            oItem.blur();
-
-        }
-
-    }
-
-},
-
-
-/**
-* @method hasFocus
-* @description Returns a boolean indicating whether or not the menu has focus.
-* @return {Boolean}
-*/
-hasFocus: function () {
-
-    return (MenuManager.getFocusedMenu() == this.getRoot());
-
-},
-
-
-/**
-* Adds the specified CustomEvent subscriber to the menu and each of 
-* its submenus.
-* @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 p_override {boolean}  If true, the obj passed in becomes the 
-*                              execution scope of the listener
-*/
-subscribe: function () {
-
-    function onItemAdded(p_sType, p_aArgs, p_oObject) {
-
-        var oItem = p_aArgs[0],
-            oSubmenu = oItem.cfg.getProperty("submenu");
-
-        if (oSubmenu) {
-
-            oSubmenu.subscribe.apply(oSubmenu, p_oObject);
-
-        }
-    
-    }
-
-
-    function onSubmenuAdded(p_sType, p_aArgs, p_oObject) { 
-    
-        var oSubmenu = this.cfg.getProperty("submenu");
-        
-        if (oSubmenu) {
-
-            oSubmenu.subscribe.apply(oSubmenu, p_oObject);
-        
-        }
-    
-    }
-
-
-    Menu.superclass.subscribe.apply(this, arguments);
-    Menu.superclass.subscribe.call(this, "itemAdded", onItemAdded, arguments);
-
-
-    var aItems = this.getItems(),
-        nItems,
-        oItem,
-        oSubmenu,
-        i;
-        
-
-    if (aItems) {
-
-        nItems = aItems.length;
-        
-        if (nItems > 0) {
-        
-            i = nItems - 1;
-            
-            do {
-
-                oItem = aItems[i];
-                
-                oSubmenu = oItem.cfg.getProperty("submenu");
-                
-                if (oSubmenu) {
-                
-                    oSubmenu.subscribe.apply(oSubmenu, arguments);
-                
-                }
-                else {
-                
-                    oItem.cfg.subscribeToConfigEvent("submenu", onSubmenuAdded, arguments);
-                
-                }
-
-            }
-            while (i--);
-        
-        }
-
-    }
-
-},
-
-
-/**
-* @description Initializes the class's configurable properties which can be
-* changed using the menu's Config object ("cfg").
-* @method initDefaultConfig
-*/
-initDefaultConfig: function () {
-
-    Menu.superclass.initDefaultConfig.call(this);
-
-    var oConfig = this.cfg;
-
-
-    // Module documentation overrides
-
-    /**
-    * @config effect
-    * @description Object or array of objects representing the ContainerEffect 
-    * classes that are active for animating the container.  When set this 
-    * property is automatically applied to all submenus.
-    * @type Object
-    * @default null
-    */
-
-    // Overlay documentation overrides
-
-
-    /**
-    * @config x
-    * @description Number representing the absolute x-coordinate position of 
-    * the Menu.  This property is only applied when the "position" 
-    * configuration property is set to dynamic.
-    * @type Number
-    * @default null
-    */
-    
-
-    /**
-    * @config y
-    * @description Number representing the absolute y-coordinate position of 
-    * the Menu.  This property is only applied when the "position" 
-    * configuration property is set to dynamic.
-    * @type Number
-    * @default null
-    */
-
-
-    /**
-    * @description Array of the absolute x and y positions of the Menu.  This 
-    * property is only applied when the "position" configuration property is 
-    * set to dynamic.
-    * @config xy
-    * @type Number[]
-    * @default null
-    */
-    
-
-    /**
-    * @config context
-    * @description Array of context arguments for context-sensitive positioning.  
-    * The format is: [id or element, element corner, context corner]. 
-    * For example, setting this property to ["img1", "tl", "bl"] would 
-    * align the Mnu's top left corner to the context element's 
-    * bottom left corner.  This property is only applied when the "position" 
-    * configuration property is set to dynamic.
-    * @type Array
-    * @default null
-    */
-    
-    
-    /**
-    * @config fixedcenter
-    * @description Boolean indicating if the Menu should be anchored to the 
-    * center of the viewport.  This property is only applied when the 
-    * "position" configuration property is set to dynamic.
-    * @type Boolean
-    * @default false
-    */
-
-    
-    /**
-    * @config zindex
-    * @description Number representing the CSS z-index of the Menu.  This 
-    * property is only applied when the "position" configuration property is 
-    * set to dynamic.
-    * @type Number
-    * @default null
-    */
-    
-    
-    /**
-    * @config iframe
-    * @description Boolean indicating whether or not the Menu should 
-    * have an IFRAME shim; used to prevent SELECT elements from 
-    * poking through an Overlay instance in IE6.  When set to "true", 
-    * the iframe shim is created when the Menu instance is intially
-    * made visible.  This property is only applied when the "position" 
-    * configuration property is set to dynamic and is automatically applied 
-    * to all submenus.
-    * @type Boolean
-    * @default true for IE6 and below, false for all other browsers.
-    */
-
-
-       // Add configuration attributes
-
-    /*
-        Change the default value for the "visible" configuration 
-        property to "false" by re-adding the property.
-    */
-
-    /**
-    * @config visible
-    * @description Boolean indicating whether or not the menu is visible.  If 
-    * the menu's "position" configuration property is set to "dynamic" (the 
-    * default), this property toggles the menu's <code>&#60;div&#62;</code> 
-    * element's "visibility" style property between "visible" (true) or 
-    * "hidden" (false).  If the menu's "position" configuration property is 
-    * set to "static" this property toggles the menu's 
-    * <code>&#60;div&#62;</code> element's "display" style property 
-    * between "block" (true) or "none" (false).
-    * @default false
-    * @type Boolean
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.VISIBLE.key, 
-        {
-            handler: this.configVisible, 
-            value: DEFAULT_CONFIG.VISIBLE.value, 
-            validator: DEFAULT_CONFIG.VISIBLE.validator
-         }
-     );
-
-
-    /*
-        Change the default value for the "constraintoviewport" configuration 
-        property to "true" by re-adding the property.
-    */
-
-    /**
-    * @config constraintoviewport
-    * @description Boolean indicating if the menu will try to remain inside 
-    * the boundaries of the size of viewport.  This property is only applied 
-    * when the "position" configuration property is set to dynamic and is 
-    * automatically applied to all submenus.
-    * @default true
-    * @type Boolean
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.key, 
-        {
-            handler: this.configConstrainToViewport, 
-            value: DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.value, 
-            validator: DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.validator, 
-            supercedes: DEFAULT_CONFIG.CONSTRAIN_TO_VIEWPORT.supercedes 
-        } 
-    );
-
-
-    /**
-    * @config position
-    * @description String indicating how a menu should be positioned on the 
-    * screen.  Possible values are "static" and "dynamic."  Static menus are 
-    * visible by default and reside in the normal flow of the document 
-    * (CSS position: static).  Dynamic menus are hidden by default, reside 
-    * out of the normal flow of the document (CSS position: absolute), and 
-    * can overlay other elements on the screen.
-    * @default dynamic
-    * @type String
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.POSITION.key, 
-        {
-            handler: this.configPosition,
-            value: DEFAULT_CONFIG.POSITION.value, 
-            validator: DEFAULT_CONFIG.POSITION.validator,
-            supercedes: DEFAULT_CONFIG.POSITION.supercedes
-        }
-    );
-
-
-    /**
-    * @config submenualignment
-    * @description Array defining how submenus should be aligned to their 
-    * parent menu item. The format is: [itemCorner, submenuCorner]. By default
-    * a submenu's top left corner is aligned to its parent menu item's top 
-    * right corner.
-    * @default ["tl","tr"]
-    * @type Array
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.SUBMENU_ALIGNMENT.key, 
-        { 
-            value: DEFAULT_CONFIG.SUBMENU_ALIGNMENT.value,
-            suppressEvent: DEFAULT_CONFIG.SUBMENU_ALIGNMENT.suppressEvent
-        }
-    );
-
-
-    /**
-    * @config autosubmenudisplay
-    * @description Boolean indicating if submenus are automatically made 
-    * visible when the user mouses over the menu's items.
-    * @default true
-    * @type Boolean
-    */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.key, 
-          { 
-              value: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.value, 
-              validator: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.validator,
-              suppressEvent: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.suppressEvent
-       } 
-    );
-
-
-    /**
-    * @config showdelay
-    * @description Number indicating the time (in milliseconds) that should 
-    * expire before a submenu is made visible when the user mouses over 
-    * the menu's items.  This property is only applied when the "position" 
-    * configuration property is set to dynamic and is automatically applied 
-    * to all submenus.
-    * @default 250
-    * @type Number
-    */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.SHOW_DELAY.key, 
-          { 
-              value: DEFAULT_CONFIG.SHOW_DELAY.value, 
-              validator: DEFAULT_CONFIG.SHOW_DELAY.validator,
-              suppressEvent: DEFAULT_CONFIG.SHOW_DELAY.suppressEvent
-       } 
-    );
-
-
-    /**
-    * @config hidedelay
-    * @description Number indicating the time (in milliseconds) that should 
-    * expire before the menu is hidden.  This property is only applied when 
-    * the "position" configuration property is set to dynamic and is 
-    * automatically applied to all submenus.
-    * @default 0
-    * @type Number
-    */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.HIDE_DELAY.key, 
-          { 
-              handler: this.configHideDelay,
-              value: DEFAULT_CONFIG.HIDE_DELAY.value, 
-              validator: DEFAULT_CONFIG.HIDE_DELAY.validator, 
-              suppressEvent: DEFAULT_CONFIG.HIDE_DELAY.suppressEvent
-       } 
-    );
-
-
-    /**
-    * @config submenuhidedelay
-    * @description Number indicating the time (in milliseconds) that should 
-    * expire before a submenu is hidden when the user mouses out of a menu item 
-    * heading in the direction of a submenu.  The value must be greater than or 
-    * equal to the value specified for the "showdelay" configuration property.
-    * This property is only applied when the "position" configuration property 
-    * is set to dynamic and is automatically applied to all submenus.
-    * @default 250
-    * @type Number
-    */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.SUBMENU_HIDE_DELAY.key, 
-          { 
-              value: DEFAULT_CONFIG.SUBMENU_HIDE_DELAY.value, 
-              validator: DEFAULT_CONFIG.SUBMENU_HIDE_DELAY.validator,
-              suppressEvent: DEFAULT_CONFIG.SUBMENU_HIDE_DELAY.suppressEvent
-       } 
-    );
-
-
-    /**
-    * @config clicktohide
-    * @description Boolean indicating if the menu will automatically be 
-    * hidden if the user clicks outside of it.  This property is only 
-    * applied when the "position" configuration property is set to dynamic 
-    * and is automatically applied to all submenus.
-    * @default true
-    * @type Boolean
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.CLICK_TO_HIDE.key,
-        {
-            value: DEFAULT_CONFIG.CLICK_TO_HIDE.value,
-            validator: DEFAULT_CONFIG.CLICK_TO_HIDE.validator,
-            suppressEvent: DEFAULT_CONFIG.CLICK_TO_HIDE.suppressEvent
-        }
-    );
-
-
-       /**
-       * @config container
-       * @description HTML element reference or string specifying the id 
-       * attribute of the HTML element that the menu's markup should be 
-       * rendered into.
-       * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-       * level-one-html.html#ID-58190037">HTMLElement</a>|String
-       * @default document.body
-       */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.CONTAINER.key, 
-          { 
-              handler: this.configContainer,
-              value: document.body,
-           suppressEvent: DEFAULT_CONFIG.CONTAINER.suppressEvent
-       } 
-   );
-
-
-    /**
-    * @config scrollincrement
-    * @description Number used to control the scroll speed of a menu.  Used to 
-    * increment the "scrollTop" property of the menu's body by when a menu's 
-    * content is scrolling.  When set this property is automatically applied 
-    * to all submenus.
-    * @default 1
-    * @type Number
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.SCROLL_INCREMENT.key, 
-        { 
-            value: DEFAULT_CONFIG.SCROLL_INCREMENT.value, 
-            validator: DEFAULT_CONFIG.SCROLL_INCREMENT.validator,
-            supercedes: DEFAULT_CONFIG.SCROLL_INCREMENT.supercedes,
-            suppressEvent: DEFAULT_CONFIG.SCROLL_INCREMENT.suppressEvent
-        }
-    );
-
-
-    /**
-    * @config minscrollheight
-    * @description Number defining the minimum threshold for the "maxheight" 
-    * configuration property.  When set this property is automatically applied 
-    * to all submenus.
-    * @default 90
-    * @type Number
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.MIN_SCROLL_HEIGHT.key, 
-        { 
-            value: DEFAULT_CONFIG.MIN_SCROLL_HEIGHT.value, 
-            validator: DEFAULT_CONFIG.MIN_SCROLL_HEIGHT.validator,
-            supercedes: DEFAULT_CONFIG.MIN_SCROLL_HEIGHT.supercedes,
-            suppressEvent: DEFAULT_CONFIG.MIN_SCROLL_HEIGHT.suppressEvent
-        }
-    );
-
-
-    /**
-    * @config maxheight
-    * @description Number defining the maximum height (in pixels) for a menu's 
-    * body element (<code>&#60;div class="bd"&#60;</code>).  Once a menu's body 
-    * exceeds this height, the contents of the body are scrolled to maintain 
-    * this value.  This value cannot be set lower than the value of the 
-    * "minscrollheight" configuration property.
-    * @default 0
-    * @type Number
-    */
-    oConfig.addProperty(
-       DEFAULT_CONFIG.MAX_HEIGHT.key, 
-       {
-            handler: this.configMaxHeight,
-            value: DEFAULT_CONFIG.MAX_HEIGHT.value,
-            validator: DEFAULT_CONFIG.MAX_HEIGHT.validator,
-            suppressEvent: DEFAULT_CONFIG.MAX_HEIGHT.suppressEvent,
-            supercedes: DEFAULT_CONFIG.MAX_HEIGHT.supercedes            
-       } 
-    );
-
-
-    /**
-    * @config classname
-    * @description String representing the CSS class to be applied to the 
-    * menu's root <code>&#60;div&#62;</code> element.  The specified class(es)  
-    * are appended in addition to the default class as specified by the menu's
-    * CSS_CLASS_NAME constant. When set this property is automatically 
-    * applied to all submenus.
-    * @default null
-    * @type String
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.CLASS_NAME.key, 
-        { 
-            handler: this.configClassName,
-            value: DEFAULT_CONFIG.CLASS_NAME.value, 
-            validator: DEFAULT_CONFIG.CLASS_NAME.validator,
-            supercedes: DEFAULT_CONFIG.CLASS_NAME.supercedes      
-        }
-    );
-
-
-    /**
-    * @config disabled
-    * @description Boolean indicating if the menu should be disabled.  
-    * Disabling a menu disables each of its items.  (Disabled menu items are 
-    * dimmed and will not respond to user input or fire events.)  Disabled
-    * menus have a corresponding "disabled" CSS class applied to their root
-    * <code>&#60;div&#62;</code> element.
-    * @default false
-    * @type Boolean
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.DISABLED.key, 
-        { 
-            handler: this.configDisabled,
-            value: DEFAULT_CONFIG.DISABLED.value, 
-            validator: DEFAULT_CONFIG.DISABLED.validator,
-            suppressEvent: DEFAULT_CONFIG.DISABLED.suppressEvent
-        }
-    );
-
-}
-
-}); // END YAHOO.lang.extend
-
-})();
-
-
-
-(function () {
-
-
-/**
-* Creates an item for a menu.
-* 
-* @param {String} p_oObject String specifying the text of the menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying 
-* the <code>&#60;li&#62;</code> element of the menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object 
-* specifying the <code>&#60;optgroup&#62;</code> element of the menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object 
-* specifying the <code>&#60;option&#62;</code> element of the menu item.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu item. See configuration class documentation 
-* for more details.
-* @class MenuItem
-* @constructor
-*/
-YAHOO.widget.MenuItem = function (p_oObject, p_oConfig) {
-
-    if (p_oObject) {
-
-        if (p_oConfig) {
-    
-            this.parent = p_oConfig.parent;
-            this.value = p_oConfig.value;
-            this.id = p_oConfig.id;
-
-        }
-
-        this.init(p_oObject, p_oConfig);
-
-    }
-
-};
-
-
-var Dom = YAHOO.util.Dom,
-    Module = YAHOO.widget.Module,
-    Menu = YAHOO.widget.Menu,
-    MenuItem = YAHOO.widget.MenuItem,
-    CustomEvent = YAHOO.util.CustomEvent,
-    Lang = YAHOO.lang,
-
-    m_oMenuItemTemplate,
-
-    /**
-    * Constant representing the name of the MenuItem's events
-    * @property EVENT_TYPES
-    * @private
-    * @final
-    * @type Object
-    */
-    EVENT_TYPES = {
-    
-        "MOUSE_OVER": "mouseover",
-        "MOUSE_OUT": "mouseout",
-        "MOUSE_DOWN": "mousedown",
-        "MOUSE_UP": "mouseup",
-        "CLICK": "click",
-        "KEY_PRESS": "keypress",
-        "KEY_DOWN": "keydown",
-        "KEY_UP": "keyup",
-        "ITEM_ADDED": "itemAdded",
-        "ITEM_REMOVED": "itemRemoved",
-        "FOCUS": "focus",
-        "BLUR": "blur",
-        "DESTROY": "destroy"
-    
-    },
-
-    /**
-    * Constant representing the MenuItem's configuration properties
-    * @property DEFAULT_CONFIG
-    * @private
-    * @final
-    * @type Object
-    */
-    DEFAULT_CONFIG = {
-    
-        "TEXT": { 
-            key: "text", 
-            value: "", 
-            validator: Lang.isString, 
-            suppressEvent: true 
-        }, 
-    
-        "HELP_TEXT": { 
-            key: "helptext",
-            supercedes: ["text"], 
-            suppressEvent: true 
-        },
-    
-        "URL": { 
-            key: "url", 
-            value: "#", 
-            suppressEvent: true 
-        }, 
-    
-        "TARGET": { 
-            key: "target", 
-            suppressEvent: true 
-        }, 
-    
-        "EMPHASIS": { 
-            key: "emphasis", 
-            value: false, 
-            validator: Lang.isBoolean, 
-            suppressEvent: true, 
-            supercedes: ["text"]
-        }, 
-    
-        "STRONG_EMPHASIS": { 
-            key: "strongemphasis", 
-            value: false, 
-            validator: Lang.isBoolean, 
-            suppressEvent: true,
-            supercedes: ["text"]
-        },
-    
-        "CHECKED": { 
-            key: "checked", 
-            value: false, 
-            validator: Lang.isBoolean, 
-            suppressEvent: true, 
-            supercedes: ["disabled", "selected"]
-        }, 
-
-        "SUBMENU": { 
-            key: "submenu",
-            suppressEvent: true,
-            supercedes: ["disabled", "selected"]
-        },
-    
-        "DISABLED": { 
-            key: "disabled", 
-            value: false, 
-            validator: Lang.isBoolean, 
-            suppressEvent: true,
-            supercedes: ["text", "selected"]
-        },
-    
-        "SELECTED": { 
-            key: "selected", 
-            value: false, 
-            validator: Lang.isBoolean, 
-            suppressEvent: true
-        },
-    
-        "ONCLICK": { 
-            key: "onclick",
-            suppressEvent: true
-        },
-    
-        "CLASS_NAME": { 
-            key: "classname", 
-            value: null, 
-            validator: Lang.isString,
-            suppressEvent: true
-        }
-    
-    };
-
-
-MenuItem.prototype = {
-
-    /**
-    * @property CSS_CLASS_NAME
-    * @description String representing the CSS class(es) to be applied to the 
-    * <code>&#60;li&#62;</code> element of the menu item.
-    * @default "yuimenuitem"
-    * @final
-    * @type String
-    */
-    CSS_CLASS_NAME: "yuimenuitem",
-
-
-    /**
-    * @property CSS_LABEL_CLASS_NAME
-    * @description String representing the CSS class(es) to be applied to the 
-    * menu item's <code>&#60;a&#62;</code> element.
-    * @default "yuimenuitemlabel"
-    * @final
-    * @type String
-    */
-    CSS_LABEL_CLASS_NAME: "yuimenuitemlabel",
-
-
-    /**
-    * @property SUBMENU_TYPE
-    * @description Object representing the type of menu to instantiate and 
-    * add when parsing the child nodes of the menu item's source HTML element.
-    * @final
-    * @type YAHOO.widget.Menu
-    */
-    SUBMENU_TYPE: null,
-
-
-
-    // Private member variables
-    
-
-    /**
-    * @property _oAnchor
-    * @description Object reference to the menu item's 
-    * <code>&#60;a&#62;</code> element.
-    * @default null 
-    * @private
-    * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-48250443">HTMLAnchorElement</a>
-    */
-    _oAnchor: null,
-    
-    
-    /**
-    * @property _oHelpTextEM
-    * @description Object reference to the menu item's help text 
-    * <code>&#60;em&#62;</code> element.
-    * @default null
-    * @private
-    * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-58190037">HTMLElement</a>
-    */
-    _oHelpTextEM: null,
-    
-    
-    /**
-    * @property _oSubmenu
-    * @description Object reference to the menu item's submenu.
-    * @default null
-    * @private
-    * @type YAHOO.widget.Menu
-    */
-    _oSubmenu: null,
-
-
-    /** 
-    * @property _oOnclickAttributeValue
-    * @description Object reference to the menu item's current value for the 
-    * "onclick" configuration attribute.
-    * @default null
-    * @private
-    * @type Object
-    */
-    _oOnclickAttributeValue: null,
-
-
-    /**
-    * @property _sClassName
-    * @description The current value of the "classname" configuration attribute.
-    * @default null
-    * @private
-    * @type String
-    */
-    _sClassName: null,
-
-
-
-    // Public properties
-
-
-       /**
-    * @property constructor
-       * @description Object reference to the menu item's constructor function.
-    * @default YAHOO.widget.MenuItem
-       * @type YAHOO.widget.MenuItem
-       */
-       constructor: MenuItem,
-
-
-    /**
-    * @property index
-    * @description Number indicating the ordinal position of the menu item in 
-    * its group.
-    * @default null
-    * @type Number
-    */
-    index: null,
-
-
-    /**
-    * @property groupIndex
-    * @description Number indicating the index of the group to which the menu 
-    * item belongs.
-    * @default null
-    * @type Number
-    */
-    groupIndex: null,
-
-
-    /**
-    * @property parent
-    * @description Object reference to the menu item's parent menu.
-    * @default null
-    * @type YAHOO.widget.Menu
-    */
-    parent: null,
-
-
-    /**
-    * @property element
-    * @description Object reference to the menu item's 
-    * <code>&#60;li&#62;</code> element.
-    * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level
-    * -one-html.html#ID-74680021">HTMLLIElement</a>
-    * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-74680021">HTMLLIElement</a>
-    */
-    element: null,
-
-
-    /**
-    * @property srcElement
-    * @description Object reference to the HTML element (either 
-    * <code>&#60;li&#62;</code>, <code>&#60;optgroup&#62;</code> or 
-    * <code>&#60;option&#62;</code>) used create the menu item.
-    * @default <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-    * level-one-html.html#ID-74680021">HTMLLIElement</a>|<a href="http://www.
-    * w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-38450247"
-    * >HTMLOptGroupElement</a>|<a href="http://www.w3.org/TR/2000/WD-DOM-
-    * Level-1-20000929/level-one-html.html#ID-70901257">HTMLOptionElement</a>
-    * @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-74680021">HTMLLIElement</a>|<a href="http://www.w3.
-    * org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-38450247">
-    * HTMLOptGroupElement</a>|<a href="http://www.w3.org/TR/2000/WD-DOM-
-    * Level-1-20000929/level-one-html.html#ID-70901257">HTMLOptionElement</a>
-    */
-    srcElement: null,
-
-
-    /**
-    * @property value
-    * @description Object reference to the menu item's value.
-    * @default null
-    * @type Object
-    */
-    value: null,
-
-
-       /**
-    * @property browser
-    * @deprecated Use YAHOO.env.ua
-       * @description String representing the browser.
-       * @type String
-       */
-       browser: Module.prototype.browser,
-
-
-    /**
-    * @property id
-    * @description Id of the menu item's root <code>&#60;li&#62;</code> 
-    * element.  This property should be set via the constructor using the 
-    * configuration object literal.  If an id is not specified, then one will 
-    * be created using the "generateId" method of the Dom utility.
-    * @default null
-    * @type String
-    */
-    id: null,
-
-
-
-    // Events
-
-
-    /**
-    * @event destroyEvent
-    * @description Fires when the menu item's <code>&#60;li&#62;</code> 
-    * element is removed from its parent <code>&#60;ul&#62;</code> element.
-    * @type YAHOO.util.CustomEvent
-    */
-    destroyEvent: null,
-
-
-    /**
-    * @event mouseOverEvent
-    * @description Fires when the mouse has entered the menu item.  Passes 
-    * back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    mouseOverEvent: null,
-
-
-    /**
-    * @event mouseOutEvent
-    * @description Fires when the mouse has left the menu item.  Passes back 
-    * the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    mouseOutEvent: null,
-
-
-    /**
-    * @event mouseDownEvent
-    * @description Fires when the user mouses down on the menu item.  Passes 
-    * back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    mouseDownEvent: null,
-
-
-    /**
-    * @event mouseUpEvent
-    * @description Fires when the user releases a mouse button while the mouse 
-    * is over the menu item.  Passes back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    mouseUpEvent: null,
-
-
-    /**
-    * @event clickEvent
-    * @description Fires when the user clicks the on the menu item.  Passes 
-    * back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    clickEvent: null,
-
-
-    /**
-    * @event keyPressEvent
-    * @description Fires when the user presses an alphanumeric key when the 
-    * menu item has focus.  Passes back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    keyPressEvent: null,
-
-
-    /**
-    * @event keyDownEvent
-    * @description Fires when the user presses a key when the menu item has 
-    * focus.  Passes back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    keyDownEvent: null,
-
-
-    /**
-    * @event keyUpEvent
-    * @description Fires when the user releases a key when the menu item has 
-    * focus.  Passes back the DOM Event object as an argument.
-    * @type YAHOO.util.CustomEvent
-    */
-    keyUpEvent: null,
-
-
-    /**
-    * @event focusEvent
-    * @description Fires when the menu item receives focus.
-    * @type YAHOO.util.CustomEvent
-    */
-    focusEvent: null,
-
-
-    /**
-    * @event blurEvent
-    * @description Fires when the menu item loses the input focus.
-    * @type YAHOO.util.CustomEvent
-    */
-    blurEvent: null,
-
-
-    /**
-    * @method init
-    * @description The MenuItem class's initialization method. This method is 
-    * automatically called by the constructor, and sets up all DOM references 
-    * for pre-existing markup, and creates required markup if it is not 
-    * already present.
-    * @param {String} p_oObject String specifying the text of the menu item.
-    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying 
-    * the <code>&#60;li&#62;</code> element of the menu item.
-    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object 
-    * specifying the <code>&#60;optgroup&#62;</code> element of the menu item.
-    * @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-    * one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object 
-    * specifying the <code>&#60;option&#62;</code> element of the menu item.
-    * @param {Object} p_oConfig Optional. Object literal specifying the 
-    * configuration for the menu item. See configuration class documentation 
-    * for more details.
-    */
-    init: function (p_oObject, p_oConfig) {
-
-
-        if (!this.SUBMENU_TYPE) {
-    
-            this.SUBMENU_TYPE = Menu;
-    
-        }
-
-
-        // Create the config object
-
-        this.cfg = new YAHOO.util.Config(this);
-
-        this.initDefaultConfig();
-
-        var SIGNATURE = CustomEvent.LIST,
-            oConfig = this.cfg,
-            sURL = "#",
-            oAnchor,
-            sTarget,
-            sText,
-            sId;
-
-
-        if (Lang.isString(p_oObject)) {
-
-            this._createRootNodeStructure();
-
-            oConfig.queueProperty("text", p_oObject);
-
-        }
-        else if (p_oObject && p_oObject.tagName) {
-
-            switch(p_oObject.tagName.toUpperCase()) {
-
-                case "OPTION":
-
-                    this._createRootNodeStructure();
-
-                    oConfig.queueProperty("text", p_oObject.text);
-                    oConfig.queueProperty("disabled", p_oObject.disabled);
-
-                    this.value = p_oObject.value;
-
-                    this.srcElement = p_oObject;
-
-                break;
-
-                case "OPTGROUP":
-
-                    this._createRootNodeStructure();
-
-                    oConfig.queueProperty("text", p_oObject.label);
-                    oConfig.queueProperty("disabled", p_oObject.disabled);
-
-                    this.srcElement = p_oObject;
-
-                    this._initSubTree();
-
-                break;
-
-                case "LI":
-
-                    // Get the anchor node (if it exists)
-                    
-                    oAnchor = Dom.getFirstChild(p_oObject);
-
-
-                    // Capture the "text" and/or the "URL"
-
-                    if (oAnchor) {
-
-                        sURL = oAnchor.getAttribute("href");
-                        sTarget = oAnchor.getAttribute("target");
-
-                        sText = oAnchor.innerHTML;
-
-                    }
-
-                    this.srcElement = p_oObject;
-                    this.element = p_oObject;
-                    this._oAnchor = oAnchor;
-
-                    /*
-                        Set these properties silently to sync up the 
-                        configuration object without making changes to the 
-                        element's DOM
-                    */ 
-
-                    oConfig.setProperty("text", sText, true);
-                    oConfig.setProperty("url", sURL, true);
-                    oConfig.setProperty("target", sTarget, true);
-
-                    this._initSubTree();
-
-                break;
-
-            }            
-
-        }
-
-
-        if (this.element) {
-
-            sId = (this.srcElement || this.element).id;
-
-            if (!sId) {
-
-                sId = this.id || Dom.generateId();
-
-                this.element.id = sId;
-
-            }
-
-            this.id = sId;
-
-
-            Dom.addClass(this.element, this.CSS_CLASS_NAME);
-            Dom.addClass(this._oAnchor, this.CSS_LABEL_CLASS_NAME);
-
-
-            // Create custom events
-
-            this.mouseOverEvent = this.createEvent(EVENT_TYPES.MOUSE_OVER);
-            this.mouseOverEvent.signature = SIGNATURE;
-
-            this.mouseOutEvent = this.createEvent(EVENT_TYPES.MOUSE_OUT);
-            this.mouseOutEvent.signature = SIGNATURE;
-
-            this.mouseDownEvent = this.createEvent(EVENT_TYPES.MOUSE_DOWN);
-            this.mouseDownEvent.signature = SIGNATURE;
-
-            this.mouseUpEvent = this.createEvent(EVENT_TYPES.MOUSE_UP);
-            this.mouseUpEvent.signature = SIGNATURE;
-
-            this.clickEvent = this.createEvent(EVENT_TYPES.CLICK);
-            this.clickEvent.signature = SIGNATURE;
-
-            this.keyPressEvent = this.createEvent(EVENT_TYPES.KEY_PRESS);
-            this.keyPressEvent.signature = SIGNATURE;
-
-            this.keyDownEvent = this.createEvent(EVENT_TYPES.KEY_DOWN);
-            this.keyDownEvent.signature = SIGNATURE;
-
-            this.keyUpEvent = this.createEvent(EVENT_TYPES.KEY_UP);
-            this.keyUpEvent.signature = SIGNATURE;
-
-            this.focusEvent = this.createEvent(EVENT_TYPES.FOCUS);
-            this.focusEvent.signature = SIGNATURE;
-
-            this.blurEvent = this.createEvent(EVENT_TYPES.BLUR);
-            this.blurEvent.signature = SIGNATURE;
-
-            this.destroyEvent = this.createEvent(EVENT_TYPES.DESTROY);
-            this.destroyEvent.signature = SIGNATURE;
-
-            if (p_oConfig) {
-    
-                oConfig.applyConfig(p_oConfig);
-    
-            }        
-
-            oConfig.fireQueue();
-
-        }
-
-    },
-
-
-
-    // Private methods
-
-
-    /**
-    * @method _createRootNodeStructure
-    * @description Creates the core DOM structure for the menu item.
-    * @private
-    */
-    _createRootNodeStructure: function () {
-
-        var oElement,
-            oAnchor;
-
-        if (!m_oMenuItemTemplate) {
-
-            m_oMenuItemTemplate = document.createElement("li");
-            m_oMenuItemTemplate.innerHTML = "<a href=\"#\"></a>";
-
-        }
-
-        oElement = m_oMenuItemTemplate.cloneNode(true);
-        oElement.className = this.CSS_CLASS_NAME;
-
-        oAnchor = oElement.firstChild;
-        oAnchor.className = this.CSS_LABEL_CLASS_NAME;
-        
-        this.element = oElement;
-        this._oAnchor = oAnchor;
-
-    },
-
-
-    /**
-    * @method _initSubTree
-    * @description Iterates the source element's childNodes collection and uses 
-    * the child nodes to instantiate other menus.
-    * @private
-    */
-    _initSubTree: function () {
-
-        var oSrcEl = this.srcElement,
-            oConfig = this.cfg,
-            oNode,
-            aOptions,
-            nOptions,
-            oMenu,
-            n;
-
-
-        if (oSrcEl.childNodes.length > 0) {
-
-            if (this.parent.lazyLoad && this.parent.srcElement && 
-                this.parent.srcElement.tagName.toUpperCase() == "SELECT") {
-
-                oConfig.setProperty(
-                        "submenu", 
-                        { id: Dom.generateId(), itemdata: oSrcEl.childNodes }
-                    );
-
-            }
-            else {
-
-                oNode = oSrcEl.firstChild;
-                aOptions = [];
-    
-                do {
-    
-                    if (oNode && oNode.tagName) {
-    
-                        switch(oNode.tagName.toUpperCase()) {
-                
-                            case "DIV":
-                
-                                oConfig.setProperty("submenu", oNode);
-                
-                            break;
-         
-                            case "OPTION":
-        
-                                aOptions[aOptions.length] = oNode;
-        
-                            break;
-               
-                        }
-                    
-                    }
-                
-                }        
-                while((oNode = oNode.nextSibling));
-    
-    
-                nOptions = aOptions.length;
-    
-                if (nOptions > 0) {
-    
-                    oMenu = new this.SUBMENU_TYPE(Dom.generateId());
-                    
-                    oConfig.setProperty("submenu", oMenu);
-    
-                    for(n=0; n<nOptions; n++) {
-        
-                        oMenu.addItem((new oMenu.ITEM_TYPE(aOptions[n])));
-        
-                    }
-        
-                }
-            
-            }
-
-        }
-
-    },
-
-
-
-    // Event handlers for configuration properties
-
-
-    /**
-    * @method configText
-    * @description Event handler for when the "text" configuration property of 
-    * the menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */
-    configText: function (p_sType, p_aArgs, p_oItem) {
-
-        var sText = p_aArgs[0],
-            oConfig = this.cfg,
-            oAnchor = this._oAnchor,
-            sHelpText = oConfig.getProperty("helptext"),
-            sHelpTextHTML = "",
-            sEmphasisStartTag = "",
-            sEmphasisEndTag = "";
-
-
-        if (sText) {
-
-
-            if (sHelpText) {
-                    
-                sHelpTextHTML = "<em class=\"helptext\">" + sHelpText + "</em>";
-            
-            }
-
-
-            if (oConfig.getProperty("emphasis")) {
-
-                sEmphasisStartTag = "<em>";
-                sEmphasisEndTag = "</em>";
-
-            }
-
-
-            if (oConfig.getProperty("strongemphasis")) {
-
-                sEmphasisStartTag = "<strong>";
-                sEmphasisEndTag = "</strong>";
-            
-            }
-
-
-            oAnchor.innerHTML = (sEmphasisStartTag + sText + 
-                sEmphasisEndTag + sHelpTextHTML);
-
-        }
-
-    },
-
-
-    /**
-    * @method configHelpText
-    * @description Event handler for when the "helptext" configuration property 
-    * of the menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configHelpText: function (p_sType, p_aArgs, p_oItem) {
-
-        this.cfg.refireEvent("text");
-
-    },
-
-
-    /**
-    * @method configURL
-    * @description Event handler for when the "url" configuration property of 
-    * the menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configURL: function (p_sType, p_aArgs, p_oItem) {
-
-        var sURL = p_aArgs[0];
-
-        if (!sURL) {
-
-            sURL = "#";
-
-        }
-
-        var oAnchor = this._oAnchor;
-
-        if (YAHOO.env.ua.opera) {
-
-            oAnchor.removeAttribute("href");
-        
-        }
-
-        oAnchor.setAttribute("href", sURL);
-
-    },
-
-
-    /**
-    * @method configTarget
-    * @description Event handler for when the "target" configuration property 
-    * of the menu item changes.  
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configTarget: function (p_sType, p_aArgs, p_oItem) {
-
-        var sTarget = p_aArgs[0],
-            oAnchor = this._oAnchor;
-
-        if (sTarget && sTarget.length > 0) {
-
-            oAnchor.setAttribute("target", sTarget);
-
-        }
-        else {
-
-            oAnchor.removeAttribute("target");
-        
-        }
-
-    },
-
-
-    /**
-    * @method configEmphasis
-    * @description Event handler for when the "emphasis" configuration property
-    * of the menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configEmphasis: function (p_sType, p_aArgs, p_oItem) {
-
-        var bEmphasis = p_aArgs[0],
-            oConfig = this.cfg;
-
-
-        if (bEmphasis && oConfig.getProperty("strongemphasis")) {
-
-            oConfig.setProperty("strongemphasis", false);
-
-        }
-
-
-        oConfig.refireEvent("text");
-
-    },
-
-
-    /**
-    * @method configStrongEmphasis
-    * @description Event handler for when the "strongemphasis" configuration 
-    * property of the menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configStrongEmphasis: function (p_sType, p_aArgs, p_oItem) {
-
-        var bStrongEmphasis = p_aArgs[0],
-            oConfig = this.cfg;
-
-
-        if (bStrongEmphasis && oConfig.getProperty("emphasis")) {
-
-            oConfig.setProperty("emphasis", false);
-
-        }
-
-        oConfig.refireEvent("text");
-
-    },
-
-
-    /**
-    * @method configChecked
-    * @description Event handler for when the "checked" configuration property 
-    * of the menu item changes. 
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configChecked: function (p_sType, p_aArgs, p_oItem) {
-
-        var bChecked = p_aArgs[0],
-            oElement = this.element,
-            oAnchor = this._oAnchor,
-            oConfig = this.cfg,
-            sState = "-checked",
-            sClassName = this.CSS_CLASS_NAME + sState,
-            sLabelClassName = this.CSS_LABEL_CLASS_NAME + sState;
-
-
-        if (bChecked) {
-
-            Dom.addClass(oElement, sClassName);
-            Dom.addClass(oAnchor, sLabelClassName);
-
-        }
-        else {
-
-            Dom.removeClass(oElement, sClassName);
-            Dom.removeClass(oAnchor, sLabelClassName);
-        
-        }
-
-
-        oConfig.refireEvent("text");
-
-
-        if (oConfig.getProperty("disabled")) {
-
-            oConfig.refireEvent("disabled");
-
-        }
-
-
-        if (oConfig.getProperty("selected")) {
-
-            oConfig.refireEvent("selected");
-
-        }
-
-    },
-
-
-
-    /**
-    * @method configDisabled
-    * @description Event handler for when the "disabled" configuration property 
-    * of the menu item changes. 
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configDisabled: function (p_sType, p_aArgs, p_oItem) {
-
-        var bDisabled = p_aArgs[0],
-            oConfig = this.cfg,
-            oSubmenu = oConfig.getProperty("submenu"),
-            bChecked = oConfig.getProperty("checked"),
-            oElement = this.element,
-            oAnchor = this._oAnchor,
-            sState = "-disabled",
-            sCheckedState = "-checked" + sState,
-            sSubmenuState = "-hassubmenu" + sState,
-            sClassName = this.CSS_CLASS_NAME + sState,
-            sLabelClassName = this.CSS_LABEL_CLASS_NAME + sState,
-            sCheckedClassName = this.CSS_CLASS_NAME + sCheckedState,
-            sLabelCheckedClassName = this.CSS_LABEL_CLASS_NAME + sCheckedState,
-            sSubmenuClassName = this.CSS_CLASS_NAME + sSubmenuState,
-            sLabelSubmenuClassName = this.CSS_LABEL_CLASS_NAME + sSubmenuState;
-
-
-        if (bDisabled) {
-
-            if (oConfig.getProperty("selected")) {
-
-                oConfig.setProperty("selected", false);
-
-            }
-
-            Dom.addClass(oElement, sClassName);
-            Dom.addClass(oAnchor, sLabelClassName);
-
-
-            if (oSubmenu) {
-
-                Dom.addClass(oElement, sSubmenuClassName);
-                Dom.addClass(oAnchor, sLabelSubmenuClassName);
-            
-            }
-            
-
-            if (bChecked) {
-
-                Dom.addClass(oElement, sCheckedClassName);
-                Dom.addClass(oAnchor, sLabelCheckedClassName);
-
-            }
-
-        }
-        else {
-
-            Dom.removeClass(oElement, sClassName);
-            Dom.removeClass(oAnchor, sLabelClassName);
-
-
-            if (oSubmenu) {
-
-                Dom.removeClass(oElement, sSubmenuClassName);
-                Dom.removeClass(oAnchor, sLabelSubmenuClassName);
-            
-            }
-            
-
-            if (bChecked) {
-
-                Dom.removeClass(oElement, sCheckedClassName);
-                Dom.removeClass(oAnchor, sLabelCheckedClassName);
-
-            }
-
-        }
-
-    },
-
-
-    /**
-    * @method configSelected
-    * @description Event handler for when the "selected" configuration property 
-    * of the menu item changes. 
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */    
-    configSelected: function (p_sType, p_aArgs, p_oItem) {
-
-        var oConfig = this.cfg,
-            bSelected = p_aArgs[0],
-            oElement = this.element,
-            oAnchor = this._oAnchor,
-            bChecked = oConfig.getProperty("checked"),
-            oSubmenu = oConfig.getProperty("submenu"),
-            sState = "-selected",
-            sCheckedState = "-checked" + sState,
-            sSubmenuState = "-hassubmenu" + sState,
-            sClassName = this.CSS_CLASS_NAME + sState,
-            sLabelClassName = this.CSS_LABEL_CLASS_NAME + sState,
-            sCheckedClassName = this.CSS_CLASS_NAME + sCheckedState,
-            sLabelCheckedClassName = this.CSS_LABEL_CLASS_NAME + sCheckedState,
-            sSubmenuClassName = this.CSS_CLASS_NAME + sSubmenuState,
-            sLabelSubmenuClassName = this.CSS_LABEL_CLASS_NAME + sSubmenuState;
-
-
-        if (YAHOO.env.ua.opera) {
-
-            oAnchor.blur();
-        
-        }
-
-
-        if (bSelected && !oConfig.getProperty("disabled")) {
-
-            Dom.addClass(oElement, sClassName);
-            Dom.addClass(oAnchor, sLabelClassName);
-
-
-            if (oSubmenu) {
-
-                Dom.addClass(oElement, sSubmenuClassName);
-                Dom.addClass(oAnchor, sLabelSubmenuClassName);
-            
-            }
-
-
-            if (bChecked) {
-
-                Dom.addClass(oElement, sCheckedClassName);
-                Dom.addClass(oAnchor, sLabelCheckedClassName);
-
-            }
-
-        }
-        else {
-
-            Dom.removeClass(oElement, sClassName);
-            Dom.removeClass(oAnchor, sLabelClassName);
-
-
-            if (oSubmenu) {
-
-                Dom.removeClass(oElement, sSubmenuClassName);
-                Dom.removeClass(oAnchor, sLabelSubmenuClassName);
-            
-            }
-
-        
-            if (bChecked) {
-
-                Dom.removeClass(oElement, sCheckedClassName);
-                Dom.removeClass(oAnchor, sLabelCheckedClassName);
-
-            }
-
-        }
-
-
-        if (this.hasFocus() && YAHOO.env.ua.opera) {
-        
-            oAnchor.focus();
-        
-        }
-
-    },
-
-
-    /**
-    * @method _onSubmenuBeforeHide
-    * @description "beforehide" Custom Event handler for a submenu.
-    * @private
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    */
-    _onSubmenuBeforeHide: function (p_sType, p_aArgs) {
-
-        var oItem = this.parent,
-            oMenu;
-
-        function onHide() {
-
-            oItem._oAnchor.blur();
-            oMenu.beforeHideEvent.unsubscribe(onHide);
-        
-        }
-
-
-        if (oItem.hasFocus()) {
-
-            oMenu = oItem.parent;
-
-            oMenu.beforeHideEvent.subscribe(onHide);
-        
-        }
-    
-    },
-
-
-    /**
-    * @method configSubmenu
-    * @description Event handler for when the "submenu" configuration property 
-    * of the menu item changes. 
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */
-    configSubmenu: function (p_sType, p_aArgs, p_oItem) {
-
-        var oSubmenu = p_aArgs[0],
-            oConfig = this.cfg,
-            oElement = this.element,
-            oAnchor = this._oAnchor,
-            bLazyLoad = this.parent && this.parent.lazyLoad,
-            sState = "-hassubmenu",
-            sClassName = this.CSS_CLASS_NAME + sState,
-            sLabelClassName = this.CSS_LABEL_CLASS_NAME + sState,
-            oMenu,
-            sSubmenuId,
-            oSubmenuConfig;
-
-
-        if (oSubmenu) {
-
-            if (oSubmenu instanceof Menu) {
-
-                oMenu = oSubmenu;
-                oMenu.parent = this;
-                oMenu.lazyLoad = bLazyLoad;
-
-            }
-            else if (typeof oSubmenu == "object" && oSubmenu.id && 
-                !oSubmenu.nodeType) {
-
-                sSubmenuId = oSubmenu.id;
-                oSubmenuConfig = oSubmenu;
-
-                oSubmenuConfig.lazyload = bLazyLoad;
-                oSubmenuConfig.parent = this;
-
-                oMenu = new this.SUBMENU_TYPE(sSubmenuId, oSubmenuConfig);
-
-
-                // Set the value of the property to the Menu instance
-
-                oConfig.setProperty("submenu", oMenu, true);
-
-            }
-            else {
-
-                oMenu = new this.SUBMENU_TYPE(oSubmenu,
-                                { lazyload: bLazyLoad, parent: this });
-
-
-                // Set the value of the property to the Menu instance
-                
-                oConfig.setProperty("submenu", oMenu, true);
-
-            }
-
-
-            if (oMenu) {
-
-                Dom.addClass(oElement, sClassName);
-                Dom.addClass(oAnchor, sLabelClassName);
-
-                this._oSubmenu = oMenu;
-
-                if (YAHOO.env.ua.opera) {
-                
-                    oMenu.beforeHideEvent.subscribe(this._onSubmenuBeforeHide);               
-                
-                }
-            
-            }
-
-        }
-        else {
-
-            Dom.removeClass(oElement, sClassName);
-            Dom.removeClass(oAnchor, sLabelClassName);
-
-            if (this._oSubmenu) {
-
-                this._oSubmenu.destroy();
-
-            }
-
-        }
-
-
-        if (oConfig.getProperty("disabled")) {
-
-            oConfig.refireEvent("disabled");
-
-        }
-
-
-        if (oConfig.getProperty("selected")) {
-
-            oConfig.refireEvent("selected");
-
-        }
-
-    },
-
-
-    /**
-    * @method configOnClick
-    * @description Event handler for when the "onclick" configuration property 
-    * of the menu item changes. 
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */
-    configOnClick: function (p_sType, p_aArgs, p_oItem) {
-
-        var oObject = p_aArgs[0];
-
-        /*
-            Remove any existing listeners if a "click" event handler has 
-            already been specified.
-        */
-
-        if (this._oOnclickAttributeValue && 
-            (this._oOnclickAttributeValue != oObject)) {
-
-            this.clickEvent.unsubscribe(this._oOnclickAttributeValue.fn, 
-                                this._oOnclickAttributeValue.obj);
-
-            this._oOnclickAttributeValue = null;
-
-        }
-
-
-        if (!this._oOnclickAttributeValue && typeof oObject == "object" && 
-            typeof oObject.fn == "function") {
-            
-            this.clickEvent.subscribe(oObject.fn, 
-                ((!YAHOO.lang.isUndefined(oObject.obj)) ? oObject.obj : this), 
-                oObject.scope);
-
-            this._oOnclickAttributeValue = oObject;
-
-        }
-    
-    },
-
-
-    /**
-    * @method configClassName
-    * @description Event handler for when the "classname" configuration 
-    * property of a menu item changes.
-    * @param {String} p_sType String representing the name of the event that 
-    * was fired.
-    * @param {Array} p_aArgs Array of arguments sent when the event was fired.
-    * @param {YAHOO.widget.MenuItem} p_oItem Object representing the menu item
-    * that fired the event.
-    */
-    configClassName: function (p_sType, p_aArgs, p_oItem) {
-    
-        var sClassName = p_aArgs[0];
-    
-        if (this._sClassName) {
-    
-            Dom.removeClass(this.element, this._sClassName);
-    
-        }
-    
-        Dom.addClass(this.element, sClassName);
-        this._sClassName = sClassName;
-    
-    },
-
-
-
-    // Public methods
-
-
-       /**
-    * @method initDefaultConfig
-       * @description Initializes an item's configurable properties.
-       */
-       initDefaultConfig : function () {
-
-        var oConfig = this.cfg;
-
-
-        // Define the configuration attributes
-
-        /**
-        * @config text
-        * @description String specifying the text label for the menu item.  
-        * When building a menu from existing HTML the value of this property
-        * will be interpreted from the menu's markup.
-        * @default ""
-        * @type String
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.TEXT.key, 
-            { 
-                handler: this.configText, 
-                value: DEFAULT_CONFIG.TEXT.value, 
-                validator: DEFAULT_CONFIG.TEXT.validator, 
-                suppressEvent: DEFAULT_CONFIG.TEXT.suppressEvent 
-            }
-        );
-        
-
-        /**
-        * @config helptext
-        * @description String specifying additional instructional text to 
-        * accompany the text for the menu item.
-        * @deprecated Use "text" configuration property to add help text markup.  
-        * For example: <code>oMenuItem.cfg.setProperty("text", "Copy &#60;em 
-        * class=\"helptext\"&#62;Ctrl + C&#60;/em&#62;");</code>
-        * @default null
-        * @type String|<a href="http://www.w3.org/TR/
-        * 2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-58190037">
-        * HTMLElement</a>
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.HELP_TEXT.key,
-            {
-                handler: this.configHelpText, 
-                supercedes: DEFAULT_CONFIG.HELP_TEXT.supercedes,
-                suppressEvent: DEFAULT_CONFIG.HELP_TEXT.suppressEvent 
-            }
-        );
-
-
-        /**
-        * @config url
-        * @description String specifying the URL for the menu item's anchor's 
-        * "href" attribute.  When building a menu from existing HTML the value 
-        * of this property will be interpreted from the menu's markup.
-        * @default "#"
-        * @type String
-        */        
-        oConfig.addProperty(
-            DEFAULT_CONFIG.URL.key, 
-            {
-                handler: this.configURL, 
-                value: DEFAULT_CONFIG.URL.value, 
-                suppressEvent: DEFAULT_CONFIG.URL.suppressEvent
-            }
-        );
-
-
-        /**
-        * @config target
-        * @description String specifying the value for the "target" attribute 
-        * of the menu item's anchor element. <strong>Specifying a target will 
-        * require the user to click directly on the menu item's anchor node in
-        * order to cause the browser to navigate to the specified URL.</strong> 
-        * When building a menu from existing HTML the value of this property 
-        * will be interpreted from the menu's markup.
-        * @default null
-        * @type String
-        */        
-        oConfig.addProperty(
-            DEFAULT_CONFIG.TARGET.key, 
-            {
-                handler: this.configTarget, 
-                suppressEvent: DEFAULT_CONFIG.TARGET.suppressEvent
-            }
-        );
-
-
-        /**
-        * @config emphasis
-        * @description Boolean indicating if the text of the menu item will be 
-        * rendered with emphasis.
-        * @deprecated Use "text" configuration property to add emphasis.  
-        * For example: <code>oMenuItem.cfg.setProperty("text", "&#60;em&#62;Some 
-        * Text&#60;/em&#62;");</code>
-        * @default false
-        * @type Boolean
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.EMPHASIS.key, 
-            { 
-                handler: this.configEmphasis, 
-                value: DEFAULT_CONFIG.EMPHASIS.value, 
-                validator: DEFAULT_CONFIG.EMPHASIS.validator, 
-                suppressEvent: DEFAULT_CONFIG.EMPHASIS.suppressEvent,
-                supercedes: DEFAULT_CONFIG.EMPHASIS.supercedes
-            }
-        );
-
-
-        /**
-        * @config strongemphasis
-        * @description Boolean indicating if the text of the menu item will be 
-        * rendered with strong emphasis.
-        * @deprecated Use "text" configuration property to add strong emphasis.  
-        * For example: <code>oMenuItem.cfg.setProperty("text", "&#60;strong&#62; 
-        * Some Text&#60;/strong&#62;");</code>
-        * @default false
-        * @type Boolean
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.STRONG_EMPHASIS.key,
-            {
-                handler: this.configStrongEmphasis,
-                value: DEFAULT_CONFIG.STRONG_EMPHASIS.value,
-                validator: DEFAULT_CONFIG.STRONG_EMPHASIS.validator,
-                suppressEvent: DEFAULT_CONFIG.STRONG_EMPHASIS.suppressEvent,
-                supercedes: DEFAULT_CONFIG.STRONG_EMPHASIS.supercedes
-            }
-        );
-
-
-        /**
-        * @config checked
-        * @description Boolean indicating if the menu item should be rendered 
-        * with a checkmark.
-        * @default false
-        * @type Boolean
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.CHECKED.key, 
-            {
-                handler: this.configChecked, 
-                value: DEFAULT_CONFIG.CHECKED.value, 
-                validator: DEFAULT_CONFIG.CHECKED.validator, 
-                suppressEvent: DEFAULT_CONFIG.CHECKED.suppressEvent,
-                supercedes: DEFAULT_CONFIG.CHECKED.supercedes
-            } 
-        );
-
-
-        /**
-        * @config disabled
-        * @description Boolean indicating if the menu item should be disabled.  
-        * (Disabled menu items are  dimmed and will not respond to user input 
-        * or fire events.)
-        * @default false
-        * @type Boolean
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.DISABLED.key,
-            {
-                handler: this.configDisabled,
-                value: DEFAULT_CONFIG.DISABLED.value,
-                validator: DEFAULT_CONFIG.DISABLED.validator,
-                suppressEvent: DEFAULT_CONFIG.DISABLED.suppressEvent
-            }
-        );
-
-
-        /**
-        * @config selected
-        * @description Boolean indicating if the menu item should 
-        * be highlighted.
-        * @default false
-        * @type Boolean
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.SELECTED.key,
-            {
-                handler: this.configSelected,
-                value: DEFAULT_CONFIG.SELECTED.value,
-                validator: DEFAULT_CONFIG.SELECTED.validator,
-                suppressEvent: DEFAULT_CONFIG.SELECTED.suppressEvent
-            }
-        );
-
-
-        /**
-        * @config submenu
-        * @description Object specifying the submenu to be appended to the 
-        * menu item.  The value can be one of the following: <ul><li>Object 
-        * specifying a Menu instance.</li><li>Object literal specifying the
-        * menu to be created.  Format: <code>{ id: [menu id], itemdata: 
-        * [<a href="YAHOO.widget.Menu.html#itemData">array of values for 
-        * items</a>] }</code>.</li><li>String specifying the id attribute 
-        * of the <code>&#60;div&#62;</code> element of the menu.</li><li>
-        * Object specifying the <code>&#60;div&#62;</code> element of the 
-        * menu.</li></ul>
-        * @default null
-        * @type Menu|String|Object|<a href="http://www.w3.org/TR/2000/
-        * WD-DOM-Level-1-20000929/level-one-html.html#ID-58190037">
-        * HTMLElement</a>
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.SUBMENU.key, 
-            {
-                handler: this.configSubmenu, 
-                supercedes: DEFAULT_CONFIG.SUBMENU.supercedes,
-                suppressEvent: DEFAULT_CONFIG.SUBMENU.suppressEvent
-            }
-        );
-
-
-        /**
-        * @config onclick
-        * @description Object literal representing the code to be executed when 
-        * the item is clicked.  Format:<br> <code> {<br> 
-        * <strong>fn:</strong> Function,   &#47;&#47; The handler to call when 
-        * the event fires.<br> <strong>obj:</strong> Object, &#47;&#47; An 
-        * object to  pass back to the handler.<br> <strong>scope:</strong> 
-        * Object &#47;&#47; The object to use for the scope of the handler.
-        * <br> } </code>
-        * @type Object
-        * @default null
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.ONCLICK.key, 
-            {
-                handler: this.configOnClick, 
-                suppressEvent: DEFAULT_CONFIG.ONCLICK.suppressEvent 
-            }
-        );
-
-
-        /**
-        * @config classname
-        * @description CSS class to be applied to the menu item's root 
-        * <code>&#60;li&#62;</code> element.  The specified class(es) are 
-        * appended in addition to the default class as specified by the menu 
-        * item's CSS_CLASS_NAME constant.
-        * @default null
-        * @type String
-        */
-        oConfig.addProperty(
-            DEFAULT_CONFIG.CLASS_NAME.key, 
-            { 
-                handler: this.configClassName,
-                value: DEFAULT_CONFIG.CLASS_NAME.value, 
-                validator: DEFAULT_CONFIG.CLASS_NAME.validator,
-                suppressEvent: DEFAULT_CONFIG.CLASS_NAME.suppressEvent 
-            }
-        );
-
-       },
-
-
-    /**
-    * @method getNextEnabledSibling
-    * @description Finds the menu item's next enabled sibling.
-    * @return YAHOO.widget.MenuItem
-    */
-    getNextEnabledSibling: function () {
-
-        var nGroupIndex,
-            aItemGroups,
-            oNextItem,
-            nNextGroupIndex,
-            aNextGroup;
-
-        function getNextArrayItem(p_aArray, p_nStartIndex) {
-
-            return p_aArray[p_nStartIndex] || 
-                getNextArrayItem(p_aArray, (p_nStartIndex+1));
-
-        }
-
-        if (this.parent instanceof Menu) {
-
-            nGroupIndex = this.groupIndex;
-    
-            aItemGroups = this.parent.getItemGroups();
-    
-            if (this.index < (aItemGroups[nGroupIndex].length - 1)) {
-    
-                oNextItem = getNextArrayItem(aItemGroups[nGroupIndex], 
-                        (this.index+1));
-    
-            }
-            else {
-    
-                if (nGroupIndex < (aItemGroups.length - 1)) {
-    
-                    nNextGroupIndex = nGroupIndex + 1;
-    
-                }
-                else {
-    
-                    nNextGroupIndex = 0;
-    
-                }
-    
-                aNextGroup = getNextArrayItem(aItemGroups, nNextGroupIndex);
-    
-                // Retrieve the first menu item in the next group
-    
-                oNextItem = getNextArrayItem(aNextGroup, 0);
-    
-            }
-    
-            return (oNextItem.cfg.getProperty("disabled") || 
-                oNextItem.element.style.display == "none") ? 
-                oNextItem.getNextEnabledSibling() : oNextItem;
-
-        }
-
-    },
-
-
-    /**
-    * @method getPreviousEnabledSibling
-    * @description Finds the menu item's previous enabled sibling.
-    * @return {YAHOO.widget.MenuItem}
-    */
-    getPreviousEnabledSibling: function () {
-
-        var nGroupIndex,
-            aItemGroups,
-            oPreviousItem,
-            nPreviousGroupIndex,
-            aPreviousGroup;
-
-        function getPreviousArrayItem(p_aArray, p_nStartIndex) {
-
-            return p_aArray[p_nStartIndex] ||  
-                getPreviousArrayItem(p_aArray, (p_nStartIndex-1));
-
-        }
-
-        function getFirstItemIndex(p_aArray, p_nStartIndex) {
-
-            return p_aArray[p_nStartIndex] ? p_nStartIndex : 
-                getFirstItemIndex(p_aArray, (p_nStartIndex+1));
-
-        }
-
-       if (this.parent instanceof Menu) {
-
-            nGroupIndex = this.groupIndex;
-            aItemGroups = this.parent.getItemGroups();
-
-    
-            if (this.index > getFirstItemIndex(aItemGroups[nGroupIndex], 0)) {
-    
-                oPreviousItem = getPreviousArrayItem(aItemGroups[nGroupIndex], 
-                        (this.index-1));
-    
-            }
-            else {
-    
-                if (nGroupIndex > getFirstItemIndex(aItemGroups, 0)) {
-    
-                    nPreviousGroupIndex = nGroupIndex - 1;
-    
-                }
-                else {
-    
-                    nPreviousGroupIndex = aItemGroups.length - 1;
-    
-                }
-    
-                aPreviousGroup = getPreviousArrayItem(aItemGroups, 
-                    nPreviousGroupIndex);
-    
-                oPreviousItem = getPreviousArrayItem(aPreviousGroup, 
-                        (aPreviousGroup.length - 1));
-    
-            }
-
-            return (oPreviousItem.cfg.getProperty("disabled") || 
-                oPreviousItem.element.style.display == "none") ? 
-                oPreviousItem.getPreviousEnabledSibling() : oPreviousItem;
-
-        }
-
-    },
-
-
-    /**
-    * @method focus
-    * @description Causes the menu item to receive the focus and fires the 
-    * focus event.
-    */
-    focus: function () {
-
-        var oParent = this.parent,
-            oAnchor = this._oAnchor,
-            oActiveItem = oParent.activeItem,
-            me = this;
-
-
-        function setFocus() {
-
-            try {
-
-                if (YAHOO.env.ua.ie && !document.hasFocus()) {
-                
-                    return;
-                
-                }
-
-                if (oActiveItem) {
-    
-                    oActiveItem.blurEvent.fire();
-    
-                }
-
-                oAnchor.focus();
-                
-                me.focusEvent.fire();
-
-            }
-            catch(e) {
-            
-            }
-
-        }
-
-
-        if (!this.cfg.getProperty("disabled") && oParent && 
-            oParent.cfg.getProperty("visible") && 
-            this.element.style.display != "none") {
-
-
-            /*
-                Setting focus via a timer fixes a race condition in Firefox, IE 
-                and Opera where the browser viewport jumps as it trys to 
-                position and focus the menu.
-            */
-
-            window.setTimeout(setFocus, 0);
-
-        }
-
-    },
-
-
-    /**
-    * @method blur
-    * @description Causes the menu item to lose focus and fires the 
-    * blur event.
-    */    
-    blur: function () {
-
-        var oParent = this.parent;
-
-        if (!this.cfg.getProperty("disabled") && oParent && 
-            oParent.cfg.getProperty("visible")) {
-
-
-            var me = this;
-            
-            window.setTimeout(function () {
-
-                try {
-    
-                    me._oAnchor.blur();
-                    me.blurEvent.fire();    
-
-                } 
-                catch (e) {
-                
-                }
-                
-            }, 0);
-
-        }
-
-    },
-
-
-    /**
-    * @method hasFocus
-    * @description Returns a boolean indicating whether or not the menu item
-    * has focus.
-    * @return {Boolean}
-    */
-    hasFocus: function () {
-    
-        return (YAHOO.widget.MenuManager.getFocusedMenuItem() == this);
-    
-    },
-
-
-       /**
-    * @method destroy
-       * @description Removes the menu item's <code>&#60;li&#62;</code> element 
-       * from its parent <code>&#60;ul&#62;</code> element.
-       */
-    destroy: function () {
-
-        var oEl = this.element,
-            oSubmenu,
-            oParentNode;
-
-        if (oEl) {
-
-
-            // If the item has a submenu, destroy it first
-
-            oSubmenu = this.cfg.getProperty("submenu");
-
-            if (oSubmenu) {
-            
-                oSubmenu.destroy();
-            
-            }
-
-
-            // Remove CustomEvent listeners
-    
-            this.mouseOverEvent.unsubscribeAll();
-            this.mouseOutEvent.unsubscribeAll();
-            this.mouseDownEvent.unsubscribeAll();
-            this.mouseUpEvent.unsubscribeAll();
-            this.clickEvent.unsubscribeAll();
-            this.keyPressEvent.unsubscribeAll();
-            this.keyDownEvent.unsubscribeAll();
-            this.keyUpEvent.unsubscribeAll();
-            this.focusEvent.unsubscribeAll();
-            this.blurEvent.unsubscribeAll();
-            this.cfg.configChangedEvent.unsubscribeAll();
-
-
-            // Remove the element from the parent node
-
-            oParentNode = oEl.parentNode;
-
-            if (oParentNode) {
-
-                oParentNode.removeChild(oEl);
-
-                this.destroyEvent.fire();
-
-            }
-
-            this.destroyEvent.unsubscribeAll();
-
-        }
-
-    },
-
-
-    /**
-    * @method toString
-    * @description Returns a string representing the menu item.
-    * @return {String}
-    */
-    toString: function () {
-
-        var sReturnVal = "MenuItem",
-            sId = this.id;
-
-        if (sId) {
-    
-            sReturnVal += (" " + sId);
-        
-        }
-
-        return sReturnVal;
-    
-    }
-
-};
-
-Lang.augmentProto(MenuItem, YAHOO.util.EventProvider);
-
-})();
-(function () {
-
-
-/**
-* Creates a list of options or commands which are made visible in response to 
-* an HTML element's "contextmenu" event ("mousedown" for Opera).
-*
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the context menu.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source for the 
-* context menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-
-* html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying the 
-* <code>&#60;div&#62;</code> element of the context menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-
-* html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object specifying 
-* the <code>&#60;select&#62;</code> element to be used as the data source for 
-* the context menu.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the context menu. See configuration class documentation 
-* for more details.
-* @class ContextMenu
-* @constructor
-* @extends YAHOO.widget.Menu
-* @namespace YAHOO.widget
-*/
-YAHOO.widget.ContextMenu = function(p_oElement, p_oConfig) {
-
-    YAHOO.widget.ContextMenu.superclass.constructor.call(this, 
-            p_oElement, p_oConfig);
-
-};
-
-
-var Event = YAHOO.util.Event,
-    ContextMenu = YAHOO.widget.ContextMenu,
-
-
-
-    /**
-    * Constant representing the name of the ContextMenu's events
-    * @property EVENT_TYPES
-    * @private
-    * @final
-    * @type Object
-    */
-    EVENT_TYPES = {
-
-        "TRIGGER_CONTEXT_MENU": "triggerContextMenu",
-        "CONTEXT_MENU": (YAHOO.env.ua.opera ? "mousedown" : "contextmenu"),
-        "CLICK": "click"
-
-    },
-    
-    
-    /**
-    * Constant representing the ContextMenu's configuration properties
-    * @property DEFAULT_CONFIG
-    * @private
-    * @final
-    * @type Object
-    */
-    DEFAULT_CONFIG = {
-    
-        "TRIGGER": { 
-            key: "trigger",
-            suppressEvent: true
-        }
-    
-    };
-
-
-/**
-* @method position
-* @description "beforeShow" event handler used to position the contextmenu.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {Array} p_aPos Array representing the xy position for the context menu.
-*/
-function position(p_sType, p_aArgs, p_aPos) {
-
-    this.cfg.setProperty("xy", p_aPos);
-    
-    this.beforeShowEvent.unsubscribe(position, p_aPos);
-
-}
-
-
-YAHOO.lang.extend(ContextMenu, YAHOO.widget.Menu, {
-
-
-
-// Private properties
-
-
-/**
-* @property _oTrigger
-* @description Object reference to the current value of the "trigger" 
-* configuration property.
-* @default null
-* @private
-* @type String|<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/leve
-* l-one-html.html#ID-58190037">HTMLElement</a>|Array
-*/
-_oTrigger: null,
-
-
-/**
-* @property _bCancelled
-* @description Boolean indicating if the display of the context menu should 
-* be cancelled.
-* @default false
-* @private
-* @type Boolean
-*/
-_bCancelled: false,
-
-
-
-// Public properties
-
-
-/**
-* @property contextEventTarget
-* @description Object reference for the HTML element that was the target of the
-* "contextmenu" DOM event ("mousedown" for Opera) that triggered the display of 
-* the context menu.
-* @default null
-* @type <a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-
-* html.html#ID-58190037">HTMLElement</a>
-*/
-contextEventTarget: null,
-
-
-
-// Events
-
-
-/**
-* @event triggerContextMenuEvent
-* @description Custom Event wrapper for the "contextmenu" DOM event 
-* ("mousedown" for Opera) fired by the element(s) that trigger the display of 
-* the context menu.
-*/
-triggerContextMenuEvent: null,
-
-
-
-/**
-* @method init
-* @description The ContextMenu class's initialization method. This method is 
-* automatically called by the constructor, and sets up all DOM references for 
-* pre-existing markup, and creates required markup if it is not already present.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the context menu.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source for 
-* the context menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-
-* html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying the 
-* <code>&#60;div&#62;</code> element of the context menu.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-
-* html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object specifying 
-* the <code>&#60;select&#62;</code> element to be used as the data source for 
-* the context menu.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the context menu. See configuration class documentation 
-* for more details.
-*/
-init: function(p_oElement, p_oConfig) {
-
-
-    // Call the init of the superclass (YAHOO.widget.Menu)
-
-    ContextMenu.superclass.init.call(this, p_oElement);
-
-
-    this.beforeInitEvent.fire(ContextMenu);
-
-
-    if(p_oConfig) {
-
-        this.cfg.applyConfig(p_oConfig, true);
-
-    }
-    
-    
-    this.initEvent.fire(ContextMenu);
-    
-},
-
-
-/**
-* @method initEvents
-* @description Initializes the custom events for the context menu.
-*/
-initEvents: function() {
-
-       ContextMenu.superclass.initEvents.call(this);
-
-    // Create custom events
-
-    this.triggerContextMenuEvent = 
-        this.createEvent(EVENT_TYPES.TRIGGER_CONTEXT_MENU);
-
-    this.triggerContextMenuEvent.signature = YAHOO.util.CustomEvent.LIST;
-
-},
-
-
-/**
-* @method cancel
-* @description Cancels the display of the context menu.
-*/
-cancel: function() {
-
-    this._bCancelled = true;
-
-},
-
-
-
-// Private methods
-
-
-/**
-* @method _removeEventHandlers
-* @description Removes all of the DOM event handlers from the HTML element(s) 
-* whose "context menu" event ("click" for Opera) trigger the display of 
-* the context menu.
-* @private
-*/
-_removeEventHandlers: function() {
-
-    var oTrigger = this._oTrigger;
-
-
-    // Remove the event handlers from the trigger(s)
-
-    if (oTrigger) {
-
-        Event.removeListener(oTrigger, EVENT_TYPES.CONTEXT_MENU, 
-            this._onTriggerContextMenu);    
-        
-        if(YAHOO.env.ua.opera) {
-        
-            Event.removeListener(oTrigger, EVENT_TYPES.CLICK, 
-                this._onTriggerClick);
-    
-        }
-
-    }
-
-},
-
-
-
-// Private event handlers
-
-
-
-/**
-* @method _onTriggerClick
-* @description "click" event handler for the HTML element(s) identified as the 
-* "trigger" for the context menu.  Used to cancel default behaviors in Opera.
-* @private
-* @param {Event} p_oEvent Object representing the DOM event object passed back 
-* by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context 
-* menu that is handling the event.
-*/
-_onTriggerClick: function(p_oEvent, p_oMenu) {
-
-    if(p_oEvent.ctrlKey) {
-    
-        Event.stopEvent(p_oEvent);
-
-    }
-    
-},
-
-
-/**
-* @method _onTriggerContextMenu
-* @description "contextmenu" event handler ("mousedown" for Opera) for the HTML 
-* element(s) that trigger the display of the context menu.
-* @private
-* @param {Event} p_oEvent Object representing the DOM event object passed back 
-* by the event utility (YAHOO.util.Event).
-* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context 
-* menu that is handling the event.
-*/
-_onTriggerContextMenu: function(p_oEvent, p_oMenu) {
-
-    if (p_oEvent.type == "mousedown" && !p_oEvent.ctrlKey) {
-
-        return;
-
-    }
-
-
-    var aXY;
-
-
-    /*
-        Prevent the browser's default context menu from appearing and 
-        stop the propagation of the "contextmenu" event so that 
-        other ContextMenu instances are not displayed.
-    */
-
-    Event.stopEvent(p_oEvent);
-
-
-    this.contextEventTarget = Event.getTarget(p_oEvent);
-
-    this.triggerContextMenuEvent.fire(p_oEvent);
-
-
-    // Hide any other Menu instances that might be visible
-
-    YAHOO.widget.MenuManager.hideVisible();
-    
-
-
-    if(!this._bCancelled) {
-
-        // Position and display the context menu
-
-        aXY = Event.getXY(p_oEvent);
-
-
-        if (!YAHOO.util.Dom.inDocument(this.element)) {
-
-            this.beforeShowEvent.subscribe(position, aXY);
-
-        }
-        else {
-
-            this.cfg.setProperty("xy", aXY);
-        
-        }
-
-
-        this.show();
-
-    }
-
-    this._bCancelled = false;
-
-},
-
-
-
-// Public methods
-
-
-/**
-* @method toString
-* @description Returns a string representing the context menu.
-* @return {String}
-*/
-toString: function() {
-
-    var sReturnVal = "ContextMenu",
-        sId = this.id;
-
-    if(sId) {
-
-        sReturnVal += (" " + sId);
-    
-    }
-
-    return sReturnVal;
-
-},
-
-
-/**
-* @method initDefaultConfig
-* @description Initializes the class's configurable properties which can be 
-* changed using the context menu's Config object ("cfg").
-*/
-initDefaultConfig: function() {
-
-    ContextMenu.superclass.initDefaultConfig.call(this);
-
-    /**
-    * @config trigger
-    * @description The HTML element(s) whose "contextmenu" event ("mousedown" 
-    * for Opera) trigger the display of the context menu.  Can be a string 
-    * representing the id attribute of the HTML element, an object reference 
-    * for the HTML element, or an array of strings or HTML element references.
-    * @default null
-    * @type String|<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/
-    * level-one-html.html#ID-58190037">HTMLElement</a>|Array
-    */
-    this.cfg.addProperty(DEFAULT_CONFIG.TRIGGER.key, 
-        {
-            handler: this.configTrigger, 
-            suppressEvent: DEFAULT_CONFIG.TRIGGER.suppressEvent 
-        }
-    );
-
-},
-
-
-/**
-* @method destroy
-* @description Removes the context menu's <code>&#60;div&#62;</code> element 
-* (and accompanying child nodes) from the document.
-*/
-destroy: function() {
-
-    // Remove the DOM event handlers from the current trigger(s)
-
-    this._removeEventHandlers();
-
-
-    // Continue with the superclass implementation of this method
-
-    ContextMenu.superclass.destroy.call(this);
-
-},
-
-
-
-// Public event handlers for configuration properties
-
-
-/**
-* @method configTrigger
-* @description Event handler for when the value of the "trigger" configuration 
-* property changes. 
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.ContextMenu} p_oMenu Object representing the context 
-* menu that fired the event.
-*/
-configTrigger: function(p_sType, p_aArgs, p_oMenu) {
-    
-    var oTrigger = p_aArgs[0];
-
-    if(oTrigger) {
-
-        /*
-            If there is a current "trigger" - remove the event handlers 
-            from that element(s) before assigning new ones
-        */
-
-        if(this._oTrigger) {
-        
-            this._removeEventHandlers();
-
-        }
-
-        this._oTrigger = oTrigger;
-
-
-        /*
-            Listen for the "mousedown" event in Opera b/c it does not 
-            support the "contextmenu" event
-        */ 
-  
-        Event.on(oTrigger, EVENT_TYPES.CONTEXT_MENU, 
-            this._onTriggerContextMenu, this, true);
-
-
-        /*
-            Assign a "click" event handler to the trigger element(s) for
-            Opera to prevent default browser behaviors.
-        */
-
-        if(YAHOO.env.ua.opera) {
-        
-            Event.on(oTrigger, EVENT_TYPES.CLICK, this._onTriggerClick, 
-                this, true);
-
-        }
-
-    }
-    else {
-   
-        this._removeEventHandlers();
-    
-    }
-    
-}
-
-}); // END YAHOO.lang.extend
-
-}());
-
-
-
-/**
-* Creates an item for a context menu.
-* 
-* @param {String} p_oObject String specifying the text of the context menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the 
-* <code>&#60;li&#62;</code> element of the context menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object 
-* specifying the <code>&#60;optgroup&#62;</code> element of the context 
-* menu item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying 
-* the <code>&#60;option&#62;</code> element of the context menu item.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the context menu item. See configuration class 
-* documentation for more details.
-* @class ContextMenuItem
-* @constructor
-* @extends YAHOO.widget.MenuItem
-* @deprecated As of version 2.4.0 items for YAHOO.widget.ContextMenu instances
-* are of type YAHOO.widget.MenuItem.
-*/
-YAHOO.widget.ContextMenuItem = YAHOO.widget.MenuItem;
-(function () {
-
-
-/**
-* Horizontal collection of items, each of which can contain a submenu.
-* 
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the menu bar.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source for the 
-* menu bar.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying 
-* the <code>&#60;div&#62;</code> element of the menu bar.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object 
-* specifying the <code>&#60;select&#62;</code> element to be used as the data 
-* source for the menu bar.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu bar. See configuration class documentation for
-* more details.
-* @class MenuBar
-* @constructor
-* @extends YAHOO.widget.Menu
-* @namespace YAHOO.widget
-*/
-YAHOO.widget.MenuBar = function(p_oElement, p_oConfig) {
-
-    YAHOO.widget.MenuBar.superclass.constructor.call(this, 
-        p_oElement, p_oConfig);
-
-};
-
-
-/**
-* @method checkPosition
-* @description Checks to make sure that the value of the "position" property 
-* is one of the supported strings. Returns true if the position is supported.
-* @private
-* @param {Object} p_sPosition String specifying the position of the menu.
-* @return {Boolean}
-*/
-function checkPosition(p_sPosition) {
-
-    if (typeof p_sPosition == "string") {
-
-        return ("dynamic,static".indexOf((p_sPosition.toLowerCase())) != -1);
-
-    }
-
-}
-
-
-var Event = YAHOO.util.Event,
-    MenuBar = YAHOO.widget.MenuBar,
-
-    /**
-    * Constant representing the MenuBar's configuration properties
-    * @property DEFAULT_CONFIG
-    * @private
-    * @final
-    * @type Object
-    */
-    DEFAULT_CONFIG = {
-    
-        "POSITION": { 
-            key: "position", 
-            value: "static", 
-            validator: checkPosition, 
-            supercedes: ["visible"] 
-        }, 
-    
-        "SUBMENU_ALIGNMENT": { 
-            key: "submenualignment", 
-            value: ["tl","bl"],
-            suppressEvent: true 
-        },
-    
-        "AUTO_SUBMENU_DISPLAY": { 
-            key: "autosubmenudisplay", 
-            value: false, 
-            validator: YAHOO.lang.isBoolean,
-            suppressEvent: true
-        }
-    
-    };
-
-
-
-YAHOO.lang.extend(MenuBar, YAHOO.widget.Menu, {
-
-/**
-* @method init
-* @description The MenuBar class's initialization method. This method is 
-* automatically called by the constructor, and sets up all DOM references for 
-* pre-existing markup, and creates required markup if it is not already present.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;div&#62;</code> element of the menu bar.
-* @param {String} p_oElement String specifying the id attribute of the 
-* <code>&#60;select&#62;</code> element to be used as the data source for the 
-* menu bar.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-22445964">HTMLDivElement</a>} p_oElement Object specifying 
-* the <code>&#60;div&#62;</code> element of the menu bar.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-94282980">HTMLSelectElement</a>} p_oElement Object 
-* specifying the <code>&#60;select&#62;</code> element to be used as the data 
-* source for the menu bar.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu bar. See configuration class documentation for
-* more details.
-*/
-init: function(p_oElement, p_oConfig) {
-
-    if(!this.ITEM_TYPE) {
-
-        this.ITEM_TYPE = YAHOO.widget.MenuBarItem;
-
-    }
-
-
-    // Call the init of the superclass (YAHOO.widget.Menu)
-
-    MenuBar.superclass.init.call(this, p_oElement);
-
-
-    this.beforeInitEvent.fire(MenuBar);
-
-
-    if(p_oConfig) {
-
-        this.cfg.applyConfig(p_oConfig, true);
-
-    }
-
-    this.initEvent.fire(MenuBar);
-
-},
-
-
-
-// Constants
-
-
-/**
-* @property CSS_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the menu 
-* bar's <code>&#60;div&#62;</code> element.
-* @default "yuimenubar"
-* @final
-* @type String
-*/
-CSS_CLASS_NAME: "yuimenubar",
-
-
-
-// Protected event handlers
-
-
-/**
-* @method _onKeyDown
-* @description "keydown" Custom Event handler for the menu bar.
-* @private
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuBar} p_oMenuBar Object representing the menu bar 
-* that fired the event.
-*/
-_onKeyDown: function(p_sType, p_aArgs, p_oMenuBar) {
-
-    var oEvent = p_aArgs[0],
-        oItem = p_aArgs[1],
-        oSubmenu,
-        oItemCfg,
-        oNextItem;
-
-
-    if(oItem && !oItem.cfg.getProperty("disabled")) {
-
-        oItemCfg = oItem.cfg;
-
-        switch(oEvent.keyCode) {
-    
-            case 37:    // Left arrow
-            case 39:    // Right arrow
-    
-                if(oItem == this.activeItem && 
-                    !oItemCfg.getProperty("selected")) {
-    
-                    oItemCfg.setProperty("selected", true);
-    
-                }
-                else {
-    
-                    oNextItem = (oEvent.keyCode == 37) ? 
-                        oItem.getPreviousEnabledSibling() : 
-                        oItem.getNextEnabledSibling();
-            
-                    if(oNextItem) {
-    
-                        this.clearActiveItem();
-    
-                        oNextItem.cfg.setProperty("selected", true);
-    
-    
-                        if(this.cfg.getProperty("autosubmenudisplay")) {
-                        
-                            oSubmenu = oNextItem.cfg.getProperty("submenu");
-                            
-                            if(oSubmenu) {
-                        
-                                oSubmenu.show();
-                            
-                            }
-                
-                        }           
-    
-                        oNextItem.focus();
-    
-                    }
-    
-                }
-    
-                Event.preventDefault(oEvent);
-    
-            break;
-    
-            case 40:    // Down arrow
-    
-                if(this.activeItem != oItem) {
-    
-                    this.clearActiveItem();
-    
-                    oItemCfg.setProperty("selected", true);
-                    oItem.focus();
-                
-                }
-    
-                oSubmenu = oItemCfg.getProperty("submenu");
-    
-                if(oSubmenu) {
-    
-                    if(oSubmenu.cfg.getProperty("visible")) {
-    
-                        oSubmenu.setInitialSelection();
-                        oSubmenu.setInitialFocus();
-                    
-                    }
-                    else {
-    
-                        oSubmenu.show();
-                    
-                    }
-    
-                }
-    
-                Event.preventDefault(oEvent);
-    
-            break;
-    
-        }
-
-    }
-
-
-    if(oEvent.keyCode == 27 && this.activeItem) { // Esc key
-
-        oSubmenu = this.activeItem.cfg.getProperty("submenu");
-
-        if(oSubmenu && oSubmenu.cfg.getProperty("visible")) {
-        
-            oSubmenu.hide();
-            this.activeItem.focus();
-        
-        }
-        else {
-
-            this.activeItem.cfg.setProperty("selected", false);
-            this.activeItem.blur();
-    
-        }
-
-        Event.preventDefault(oEvent);
-    
-    }
-
-},
-
-
-/**
-* @method _onClick
-* @description "click" event handler for the menu bar.
-* @protected
-* @param {String} p_sType String representing the name of the event that 
-* was fired.
-* @param {Array} p_aArgs Array of arguments sent when the event was fired.
-* @param {YAHOO.widget.MenuBar} p_oMenuBar Object representing the menu bar 
-* that fired the event.
-*/
-_onClick: function(p_sType, p_aArgs, p_oMenuBar) {
-
-    MenuBar.superclass._onClick.call(this, p_sType, p_aArgs, p_oMenuBar);
-
-    var oItem = p_aArgs[1],
-        oEvent,
-        oTarget,
-        oActiveItem,
-        oConfig,
-        oSubmenu;
-    
-
-    if(oItem && !oItem.cfg.getProperty("disabled")) {
-
-        oEvent = p_aArgs[0];
-        oTarget = Event.getTarget(oEvent);
-        oActiveItem = this.activeItem;
-        oConfig = this.cfg;
-
-
-        // Hide any other submenus that might be visible
-    
-        if(oActiveItem && oActiveItem != oItem) {
-    
-            this.clearActiveItem();
-    
-        }
-
-    
-        oItem.cfg.setProperty("selected", true);
-    
-
-        // Show the submenu for the item
-    
-        oSubmenu = oItem.cfg.getProperty("submenu");
-
-
-        if(oSubmenu) {
-        
-            if(oSubmenu.cfg.getProperty("visible")) {
-            
-                oSubmenu.hide();
-            
-            }
-            else {
-            
-                oSubmenu.show();                    
-            
-            }
-        
-        }
-    
-    }
-
-},
-
-
-
-// Public methods
-
-
-/**
-* @method toString
-* @description Returns a string representing the menu bar.
-* @return {String}
-*/
-toString: function() {
-
-    var sReturnVal = "MenuBar",
-        sId = this.id;
-
-    if(sId) {
-
-        sReturnVal += (" " + sId);
-    
-    }
-
-    return sReturnVal;
-
-},
-
-
-/**
-* @description Initializes the class's configurable properties which can be
-* changed using the menu bar's Config object ("cfg").
-* @method initDefaultConfig
-*/
-initDefaultConfig: function() {
-
-    MenuBar.superclass.initDefaultConfig.call(this);
-
-    var oConfig = this.cfg;
-
-       // Add configuration properties
-
-
-    /*
-        Set the default value for the "position" configuration property
-        to "static" by re-adding the property.
-    */
-
-
-    /**
-    * @config position
-    * @description String indicating how a menu bar should be positioned on the 
-    * screen.  Possible values are "static" and "dynamic."  Static menu bars 
-    * are visible by default and reside in the normal flow of the document 
-    * (CSS position: static).  Dynamic menu bars are hidden by default, reside
-    * out of the normal flow of the document (CSS position: absolute), and can 
-    * overlay other elements on the screen.
-    * @default static
-    * @type String
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.POSITION.key, 
-        {
-            handler: this.configPosition, 
-            value: DEFAULT_CONFIG.POSITION.value, 
-            validator: DEFAULT_CONFIG.POSITION.validator,
-            supercedes: DEFAULT_CONFIG.POSITION.supercedes
-        }
-    );
-
-
-    /*
-        Set the default value for the "submenualignment" configuration property
-        to ["tl","bl"] by re-adding the property.
-    */
-
-    /**
-    * @config submenualignment
-    * @description Array defining how submenus should be aligned to their 
-    * parent menu bar item. The format is: [itemCorner, submenuCorner].
-    * @default ["tl","bl"]
-    * @type Array
-    */
-    oConfig.addProperty(
-        DEFAULT_CONFIG.SUBMENU_ALIGNMENT.key, 
-        {
-            value: DEFAULT_CONFIG.SUBMENU_ALIGNMENT.value,
-            suppressEvent: DEFAULT_CONFIG.SUBMENU_ALIGNMENT.suppressEvent
-        }
-    );
-
-
-    /*
-        Change the default value for the "autosubmenudisplay" configuration 
-        property to "false" by re-adding the property.
-    */
-
-    /**
-    * @config autosubmenudisplay
-    * @description Boolean indicating if submenus are automatically made 
-    * visible when the user mouses over the menu bar's items.
-    * @default false
-    * @type Boolean
-    */
-       oConfig.addProperty(
-          DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.key, 
-          {
-              value: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.value, 
-              validator: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.validator,
-              suppressEvent: DEFAULT_CONFIG.AUTO_SUBMENU_DISPLAY.suppressEvent
-       } 
-    );
-
-}
-}); // END YAHOO.lang.extend
-
-}());
-
-
-
-/**
-* Creates an item for a menu bar.
-* 
-* @param {String} p_oObject String specifying the text of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the 
-* <code>&#60;li&#62;</code> element of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object 
-* specifying the <code>&#60;optgroup&#62;</code> element of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying 
-* the <code>&#60;option&#62;</code> element of the menu bar item.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu bar item. See configuration class documentation 
-* for more details.
-* @class MenuBarItem
-* @constructor
-* @extends YAHOO.widget.MenuItem
-*/
-YAHOO.widget.MenuBarItem = function(p_oObject, p_oConfig) {
-
-    YAHOO.widget.MenuBarItem.superclass.constructor.call(this, 
-        p_oObject, p_oConfig);
-
-};
-
-YAHOO.lang.extend(YAHOO.widget.MenuBarItem, YAHOO.widget.MenuItem, {
-
-
-
-/**
-* @method init
-* @description The MenuBarItem class's initialization method. This method is 
-* automatically called by the constructor, and sets up all DOM references for 
-* pre-existing markup, and creates required markup if it is not already present.
-* @param {String} p_oObject String specifying the text of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-74680021">HTMLLIElement</a>} p_oObject Object specifying the 
-* <code>&#60;li&#62;</code> element of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-38450247">HTMLOptGroupElement</a>} p_oObject Object 
-* specifying the <code>&#60;optgroup&#62;</code> element of the menu bar item.
-* @param {<a href="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-
-* one-html.html#ID-70901257">HTMLOptionElement</a>} p_oObject Object specifying 
-* the <code>&#60;option&#62;</code> element of the menu bar item.
-* @param {Object} p_oConfig Optional. Object literal specifying the 
-* configuration for the menu bar item. See configuration class documentation 
-* for more details.
-*/
-init: function(p_oObject, p_oConfig) {
-
-    if(!this.SUBMENU_TYPE) {
-
-        this.SUBMENU_TYPE = YAHOO.widget.Menu;
-
-    }
-
-
-    /* 
-        Call the init of the superclass (YAHOO.widget.MenuItem)
-        Note: We don't pass the user config in here yet 
-        because we only want it executed once, at the lowest 
-        subclass level.
-    */ 
-
-    YAHOO.widget.MenuBarItem.superclass.init.call(this, p_oObject);  
-
-
-    var oConfig = this.cfg;
-
-    if(p_oConfig) {
-
-        oConfig.applyConfig(p_oConfig, true);
-
-    }
-
-    oConfig.fireQueue();
-
-},
-
-
-
-// Constants
-
-
-/**
-* @property CSS_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the 
-* <code>&#60;li&#62;</code> element of the menu bar item.
-* @default "yuimenubaritem"
-* @final
-* @type String
-*/
-CSS_CLASS_NAME: "yuimenubaritem",
-
-
-/**
-* @property CSS_LABEL_CLASS_NAME
-* @description String representing the CSS class(es) to be applied to the 
-* menu bar item's <code>&#60;a&#62;</code> element.
-* @default "yuimenubaritemlabel"
-* @final
-* @type String
-*/
-CSS_LABEL_CLASS_NAME: "yuimenubaritemlabel",
-
-
-
-// Public methods
-
-
-/**
-* @method toString
-* @description Returns a string representing the menu bar item.
-* @return {String}
-*/
-toString: function() {
-
-    var sReturnVal = "MenuBarItem";
-
-    if(this.cfg && this.cfg.getProperty("text")) {
-
-        sReturnVal += (": " + this.cfg.getProperty("text"));
-
-    }
-
-    return sReturnVal;
-
-}
-    
-}); // END YAHOO.lang.extend
-YAHOO.register("menu", YAHOO.widget.Menu, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/reset/README b/lib/yui/reset/README
deleted file mode 100755 (executable)
index ba10a1a..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-YUI Library - Reset - Release Notes
-
-Version 2.5.0
-
-  * Added input,textarea,select{*font-size:100%;} to enable resizing on IE
-
-Version 2.4.0
-
-  * Moved background and default font color to HTML from BODY
-  * Removed invalid sub/sup negative line-height values because they
-    were invalid and because they weren't have a big impact.
-  * Added legent element color to accomodate IE6 issues.
-
-Version 2.3.0
-
-  * Removed: ul,ol {list-style:none;}
-  * Added: li {list-style:none;} because it's less impactful (easier to rebuild) and shorter
-  * Added: acronym {font-variant:normal;} to reset the "small-caps" variant that Opera displays
-  * Added: body {color:#000;background:#FFF;}
-  * Added: sup,sub {line-height:-1px;vertical-align: text-top;}sub{vertical-align:text-bottom;}
-  * Added: input, textarea, select{font-family:inherit;font-size:inherit;font-weight:inherit;} (doesn't fix textareas in Opera/Win+Mac, IE6/7
-  * Added: padding:0;margin:0; for the legend element which wasn't fully reset before (has 2px lateral padding on some browsers)
-  
-  
-Version 2.2.0 - 2.2.2
-
-  * No changes.
-
-Version 0.12.1 - 0.12.2
-
-  * No changes.
-
-Version 0.12.0
-
-  * Added: h1,h2,h3,h4,h5,h6{font-weight:normal;}
-  * Added: abbr,acronym {border:0;}
-  * Added: textarea {padding:0;margin:0;}
-
-Version 0.11.0
-
-  * No changes.
-
-Version 0.10.0
-
-  * Initial release.
\ No newline at end of file
diff --git a/lib/yui/reset/reset-min.css b/lib/yui/reset/reset-min.css
deleted file mode 100755 (executable)
index e243f48..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-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,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{font-style:normal;font-weight:normal;}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:text-top;}sub {vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}
\ No newline at end of file
diff --git a/lib/yui/reset/reset.css b/lib/yui/reset/reset.css
deleted file mode 100755 (executable)
index 7c34f66..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-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,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{font-style:normal;font-weight:normal;}
-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;}
-/* to preserve line-height and selector appearance */
-sup {vertical-align:text-top;}
-sub {vertical-align:text-bottom;}
-input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}
-/*to enable resizing for IE*/
-input,textarea,select{*font-size:100%;}
-/*because legend doesn't inherit in IE */
-legend{color:#000;}
\ No newline at end of file
diff --git a/lib/yui/resize/README b/lib/yui/resize/README
deleted file mode 100644 (file)
index 84e27d4..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-**** version 2.5.0 ***
-
-Initial Release
diff --git a/lib/yui/resize/assets/skins/sam/layout_sprite.png b/lib/yui/resize/assets/skins/sam/layout_sprite.png
deleted file mode 100644 (file)
index d6fce3c..0000000
Binary files a/lib/yui/resize/assets/skins/sam/layout_sprite.png and /dev/null differ
diff --git a/lib/yui/resize/assets/skins/sam/resize-skin.css b/lib/yui/resize/assets/skins/sam/resize-skin.css
deleted file mode 100644 (file)
index 2b2333c..0000000
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/* Give the handle a background color */
-.yui-skin-sam .yui-resize .yui-resize-handle {
-    background-color: #F2F2F2;
-}
-/* Give the active handle a different color */
-.yui-skin-sam .yui-resize .yui-resize-handle-active {
-    background-color: #7D98B8;
-    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
-}
-
-
-/* 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;
-}
diff --git a/lib/yui/resize/assets/skins/sam/resize.css b/lib/yui/resize/assets/skins/sam/resize.css
deleted file mode 100644 (file)
index 45a907d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.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;}.yui-skin-sam .yui-resize .yui-resize-handle-active{background-color:#7D98B8;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}.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;}
diff --git a/lib/yui/resize/resize-beta-debug.js b/lib/yui/resize/resize-beta-debug.js
deleted file mode 100644 (file)
index b1d2583..0000000
+++ /dev/null
@@ -1,1640 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * @description <p>Makes an element resizable</p>
- * @namespace YAHOO.util
- * @requires yahoo, dom, dragdrop, element, event
- * @optional animation
- * @module resize
- * @beta
- */
-(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 _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 
-            switch (this.get('element').tagName.toLowerCase()) {
-                case 'img':
-                case 'textarea':
-                case 'input':
-                case 'iframe':
-                case 'select':
-                    this.set('wrap', true);
-                    YAHOO.log('Auto-wrapping the element (' + this.get('element').tagName.toLowerCase() + ')', 'warn', 'Resize');
-                    break;
-            }
-            if (this.get('wrap')) {
-                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;
-                D.setStyle(this._wrap, 'width', this.get('width'));
-                D.setStyle(this._wrap, 'height', this.get('height'));
-                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 });
-            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);
-                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 (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) {
-            //Internet Explorer needs this
-            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;
-                        }
-                    }
-                }
-            }
-
-            //Internet Explorer needs this
-            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) {
-            //Internet Explorer needs this
-            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;
-                        }
-                    }
-                }
-            }
-            //Internet Explorer needs this
-            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];
-        },
-        /** 
-        * @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);
-
-            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-' + this._currentHandle + '-active');
-            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-active');
-
-            this._currentHandle = null;
-            if (!this.get('animate')) {
-                if (this.get('setSize')) {
-                    YAHOO.log('Setting Height and Width', 'info', 'Resize');
-                    this.set('height', this._cache.height);
-                    this.set('width', this._cache.width);
-                } else {
-                    YAHOO.log('Setting Height and Width silently', 'info', 'Resize');
-                    this.set('height', this._cache.height, true);
-                    this.set('width', this._cache.width, 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);
-                }
-            }
-
-            D.removeClass(this._wrap, this.CSS_RESIZING);
-            if (this.get('hover')) {
-                YAHOO.log('Adding hover class', 'info', 'Resize');
-                D.addClass(this._wrap, this.CSS_HOVER);
-            }
-            if (this._status) {
-                YAHOO.log('Hiding Status Box', 'info', 'Resize');
-                D.setStyle(this._status, 'display', 'none');
-            }
-            if (this.browser.ie) {
-                YAHOO.log('Resetting IE onselectstart function', 'info', 'Resize');
-                document.body.onselectstart = this._ieSelectBack;
-            }
-            for (var i in this._handles) {
-                if (Lang.hasOwnProperty(this._handles, i)) {
-                    YAHOO.log('Removing active class', 'info', 'Resize');
-                    D.removeClass(this._handles[i], this.CSS_HANDLE + '-active');
-                }
-            }
-            if (this.get('hover') && !this._active) {
-                YAHOO.log('Adding Hover Class', 'info', 'Resize');
-                D.addClass(this._wrap, this.CSS_HOVER);
-            }
-            this._resizeEvent = null;
-        },
-        /** 
-        * @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;
-                }
-            }
-            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');
-                if (this.get('status')) {
-                    YAHOO.log('Showing Status Box', 'info', 'Resize');
-                    D.setStyle(this._status, 'display', 'inline');
-                }
-                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;
-                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 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;
-        },
-        /** 
-        * @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).
-        * @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) {
-            YAHOO.log('Resize: ' + h + ',' + w, '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);
-            }
-
-            this._updateStatus(h, w, t, l);
-            
-
-            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 + h) > this.get('maxY')) {
-                                t = (this.get('maxY') - h);
-                            }
-                        }
-                    }
-                    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);
-                            }
-                        }
-                    }
-                }
-            }
-            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;
-            }
-            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) {
-                        if (this.browser.ie > 6) {
-                            if (h === this._cache.height) {
-                                h = h + 1;
-                            }
-                        }
-                        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 + 1), 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('yTicks'));
-                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('xTicks'));
-                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._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));
-            }
-            if (p_oAttributes.width) {
-                this.set('width', parseInt(p_oAttributes.width, 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 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;
-                    try {
-                        easing = YAHOO.util.Easing.easeOut;
-                    } catch (e) {}
-                    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.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 when a resize action is started.
-* @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.5.0", build: "895"});
diff --git a/lib/yui/resize/resize-beta-min.js b/lib/yui/resize/resize-beta-min.js
deleted file mode 100644 (file)
index e1052ee..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-(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,_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;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")){this._wrap=document.createElement("div");this._wrap.id=this.get("element").id+"_wrap";this._wrap.className=this.CSS_WRAP;E.setStyle(this._wrap,"width",this.get("width"));E.setStyle(this._wrap,"height",this.get("height"));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});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);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(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){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];},_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);E.removeClass(this._handles[this._currentHandle],this.CSS_HANDLE+"-"+this._currentHandle+"-active");E.removeClass(this._handles[this._currentHandle],this.CSS_HANDLE+"-active");this._currentHandle=null;if(!this.get("animate")){if(this.get("setSize")){this.set("height",this._cache.height);this.set("width",this._cache.width);}else{this.set("height",this._cache.height,true);this.set("width",this._cache.width,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);}}E.removeClass(this._wrap,this.CSS_RESIZING);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;}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);}this._resizeEvent=null;},_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;}}return[O,G,Q,I];},_updateStatus:function(K,G,J,F){if(this._resizeEvent&&(!C.isString(this._resizeEvent))){if(this.get("status")){E.setStyle(this._status,"display","inline");}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;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]);}},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(L,J,O,P,H,F){this._resizeEvent=L;var G=this._wrap,I=this.get("animate"),N=true;if(this._proxy&&!F){G=this._proxy;I=false;}this._setAutoRatio(L);if(this._positioned){if(this._proxy){P=this._cache.top-P;H=this._cache.left-H;}}var K=this._setRatio(J,O,P,H);J=parseInt(K[0],10);O=parseInt(K[1],10);P=parseInt(K[2],10);H=parseInt(K[3],10);if(P==0){P=E.getY(G);}if(H==0){H=E.getX(G);}this._updateStatus(J,O,P,H);if(this._positioned){if(this._proxy&&F){if(!I){G.style.top=this._proxy.style.top;G.style.left=this._proxy.style.left;}else{P=this._proxy.style.top;H=this._proxy.style.left;}}else{if(!this.get("ratio")&&!this._proxy){P=this._cache.top+-(P);H=this._cache.left+-(H);}if(P){if(this.get("minY")){if(P<this.get("minY")){P=this.get("minY");}}if(this.get("maxY")){if((P+J)>this.get("maxY")){P=(this.get("maxY")-J);}}}if(H){if(this.get("minX")){if(H<this.get("minX")){H=this.get("minX");}}if(this.get("maxX")){if((H+O)>this.get("maxX")){H=(this.get("maxX")-O);}}}}}var M=this.fireEvent("beforeResize",{ev:"beforeResize",target:this,height:J,width:O,top:P,left:H});if(M===false){return false;}if(this._positioned){if(this._proxy&&F){}else{if(P){E.setY(G,P);this._cache.top=P;}if(H){E.setX(G,H);this._cache.left=H;}}}if(J){if(!I){N=true;if(this._proxy&&F){if(!this.get("setSize")){N=false;}}if(N){if(this.browser.ie>6){if(J===this._cache.height){J=J+1;}}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(O){this._cache.width=O;if(!I){N=true;if(this._proxy&&F){if(!this.get("setSize")){N=false;}}if(N){G.style.width=O+"px";}if((this._proxy&&F)||!this._proxy){if(this._wrap!=this.get("element")){this.get("element").style.width=O+"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(P){D.attributes.top={to:parseInt(P,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",O);this.fireEvent("resize",{ev:"resize",target:this,height:J,width:O,top:P,left:H});},this,true);D.animate();}}else{if(this._proxy&&!F){this.fireEvent("proxyResize",{ev:"proxyresize",target:this,height:J,width:O,top:P,left:H});}else{this.fireEvent("resize",{ev:"resize",target:this,height:J,width:O,top:P,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+1),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("yTicks"));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("xTicks"));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(F,D){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,F,D);this.set("setSize",this.get("setSize"));if(D.height){this.set("height",parseInt(D.height,10));}if(D.width){this.set("width",parseInt(D.width,10));}var G=F;if(!C.isString(G)){G=E.generateId(G);}B._instances[G]=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("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 G=false;try{G=YAHOO.util.Easing.easeOut;}catch(F){}return G;}()});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.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.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/resize/resize-beta.js b/lib/yui/resize/resize-beta.js
deleted file mode 100644 (file)
index ac6f879..0000000
+++ /dev/null
@@ -1,1578 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * @description <p>Makes an element resizable</p>
- * @namespace YAHOO.util
- * @requires yahoo, dom, dragdrop, element, event
- * @optional animation
- * @module resize
- * @beta
- */
-(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 _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 
-            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')) {
-                this._wrap = document.createElement('div');
-                this._wrap.id = this.get('element').id + '_wrap';
-                this._wrap.className = this.CSS_WRAP;
-                D.setStyle(this._wrap, 'width', this.get('width'));
-                D.setStyle(this._wrap, 'height', this.get('height'));
-                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 });
-            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);
-                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 (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) {
-            //Internet Explorer needs this
-            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;
-                        }
-                    }
-                }
-            }
-
-            //Internet Explorer needs this
-            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) {
-            //Internet Explorer needs this
-            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;
-                        }
-                    }
-                }
-            }
-            //Internet Explorer needs this
-            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];
-        },
-        /** 
-        * @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);
-
-            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-' + this._currentHandle + '-active');
-            D.removeClass(this._handles[this._currentHandle], this.CSS_HANDLE + '-active');
-
-            this._currentHandle = null;
-            if (!this.get('animate')) {
-                if (this.get('setSize')) {
-                    this.set('height', this._cache.height);
-                    this.set('width', this._cache.width);
-                } else {
-                    this.set('height', this._cache.height, true);
-                    this.set('width', this._cache.width, 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);
-                }
-            }
-
-            D.removeClass(this._wrap, this.CSS_RESIZING);
-            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;
-            }
-            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);
-            }
-            this._resizeEvent = null;
-        },
-        /** 
-        * @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;
-                }
-            }
-            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))) {
-                if (this.get('status')) {
-                    D.setStyle(this._status, 'display', 'inline');
-                }
-                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;
-                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 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;
-        },
-        /** 
-        * @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).
-        * @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) {
-            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);
-            }
-
-            this._updateStatus(h, w, t, l);
-            
-
-            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 + h) > this.get('maxY')) {
-                                t = (this.get('maxY') - h);
-                            }
-                        }
-                    }
-                    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);
-                            }
-                        }
-                    }
-                }
-            }
-            var beforeReturn = this.fireEvent('beforeResize', { ev: 'beforeResize', target: this, height: h, width: w, top: t, left: l });
-            if (beforeReturn === false) {
-                return false;
-            }
-            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) {
-                        if (this.browser.ie > 6) {
-                            if (h === this._cache.height) {
-                                h = h + 1;
-                            }
-                        }
-                        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 + 1), 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('yTicks'));
-                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('xTicks'));
-                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._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));
-            }
-            if (p_oAttributes.width) {
-                this.set('width', parseInt(p_oAttributes.width, 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 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;
-                    try {
-                        easing = YAHOO.util.Easing.easeOut;
-                    } catch (e) {}
-                    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.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 when a resize action is started.
-* @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.5.0", build: "895"});
diff --git a/lib/yui/selector/README b/lib/yui/selector/README
deleted file mode 100644 (file)
index 3603e21..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-YUI Library - Selector - Release Notes
-
-2.5.0
-
-  * query() now returns single node (not array) when firstOnly is true
-  * filter() now works with ID input
-  * pseudos and attributes correctly handle spaces
-
-2.4.0
-
-  * Beta release
diff --git a/lib/yui/selector/selector-beta-debug.js b/lib/yui/selector/selector-beta-debug.js
deleted file mode 100644 (file)
index 32b86c4..0000000
+++ /dev/null
@@ -1,668 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * 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() {
-/**
- * Provides helper methods for collecting and filtering DOM elements.
- * @namespace YAHOO.util
- * @class Selector
- * @static
- */
-var Selector = function() {};
-
-var Y = YAHOO.util;
-
-var X = {
-    BEGIN: '^',
-    END: '$',
-    OR: '|',
-    SP: '\\s+'
-};
-
-X.BEGIN_SPACE = '(?:' + X.BEGIN + X.OR + X.SP +')';
-X.END_SPACE = '(?:' + X.SP + X.OR + X.END + ')';
-X.NTH_CHILD = '^(?:([-]?\\d*)(n){1}|(odd|even)$)*([-+]?\\d*)$';
-
-Selector.prototype = {
-    /**
-     * 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: {
-        'for': 'htmlFor'
-    },
-
-    /**
-     * 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 getRegExp(X.BEGIN + val + '[-]?').test(attr); }, // Match start with value followed by optional hyphen
-        '^=': function(attr, val) { return attr.indexOf(val) === 0; }, // Match starts with value
-        '$=': function(attr, val) { return attr.lastIndexOf(val) === attr.length - val.length; }, // 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 getNth(node, val);
-        },
-
-        'nth-last-child': function(node, val) {
-            return getNth(node, val, null, true);
-        },
-
-        'nth-of-type': function(node, val) {
-            return getNth(node, val, node.tagName);
-        },
-         
-        'nth-last-of-type': function(node, val) {
-            return getNth(node, val, node.tagName, true);
-        },
-         
-        'first-child': function(node) {
-            return getChildren(node.parentNode)[0] === node;
-        },
-
-        'last-child': function(node) {
-            var children = getChildren(node.parentNode);
-            return children[children.length - 1] === node;
-        },
-
-        'first-of-type': function(node, val) {
-            return getChildren(node.parentNode, node.tagName.toLowerCase())[0];
-        },
-         
-        'last-of-type': function(node, val) {
-            var children = getChildren(node.parentNode, node.tagName.toLowerCase());
-            return children[children.length - 1];
-        },
-         
-        'only-child': function(node) {
-            var children = getChildren(node.parentNode);
-            return children.length === 1 && children[0] === node;
-        },
-
-        'only-of-type': function(node) {
-            return getChildren(node.parentNode, node.tagName.toLowerCase()).length === 1;
-        },
-
-        'empty': function(node) {
-            return node.childNodes.length === 0;
-        },
-
-        'not': function(node, simple) {
-            return !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 = Selector.document.getElementById(node) || node;
-        var groups = selector ? selector.split(',') : [];
-        if (groups.length) {
-            for (var i = 0, len = groups.length; i < len; ++i) {
-                if ( rTestNode(node, groups[i]) ) { // passes if ANY group matches
-                    return true;
-                }
-            }
-            return false;
-        }
-        return rTestNode(node, selector);
-    },
-
-    /**
-     * Filters a set of nodes based on a given CSS selector. 
-     * @method filter
-     *
-     * @param {array}  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(arr, selector) {
-        if (!arr || !selector) {
-            YAHOO.log('filter: invalid input, returning array as is', 'warn', 'Selector');
-        }
-        var node,
-            nodes = arr,
-            result = [],
-            tokens = 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 = arr.length; i < len; ++i) {
-                if (!arr[i].tagName) { // tagName limits to HTMLElements 
-                    node = Selector.document.getElementById(arr[i]);
-                    if (node) { // skip IDs that return null 
-                        nodes[nodes.length] = node;
-                    } else {
-                        YAHOO.log('filter: skipping invalid node', 'warn', 'Selector');
-                    }
-                }
-            }
-        }
-        result = rFilter(nodes, tokenize(selector)[0]);
-        clearParentCache();
-        YAHOO.log('filter: returning:' + result.length, 'info', 'Selector');
-        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 = query(selector, root, firstOnly);
-        YAHOO.log('query: returning ' + result.length + ' nodes', 'info', 'Selector');
-        return result;
-    }
-};
-
-var query = function(selector, root, firstOnly, deDupe) {
-    if (!selector) {
-        return []; // no nodes for you
-    }
-    var result = [];
-    var groups = selector.split(',');
-
-    if (groups.length > 1) {
-        for (var i = 0, len = groups.length; i < len; ++i) {
-            result = result.concat( arguments.callee(groups[i], root, firstOnly, true) ); 
-        }
-        clearFoundCache();
-        return result;
-    }
-
-    if (root && !root.tagName) {
-        root = Selector.document.getElementById(root);
-        if (!root) {
-            YAHOO.log('invalid root node provided', 'warn', 'Selector');
-            return [];
-        }
-    }
-
-    root = root || Selector.document;
-    var tokens = tokenize(selector);
-    var idToken = tokens[getIdTokenIndex(tokens)],
-        nodes = [],
-        node,
-        id,
-        token = tokens.pop() || {};
-        
-    if (idToken) {
-        id = getId(idToken.attributes);
-    }
-
-    // if no root alternate root is specified use id shortcut
-    if (id) {
-        if (id === token.id) { // only one target
-            nodes = [Selector.document.getElementById(id)] || root;
-        } else { // reset root to id node if passes
-            node = Selector.document.getElementById(id);
-            if (root === Selector.document || contains(node, root)) {
-                if ( node && rTestNode(node, null, idToken) ) {
-                    root = node; // start from here
-                }
-            } else {
-                return [];
-            }
-        }
-    }
-
-    if (root && !nodes.length) {
-        nodes = root.getElementsByTagName(token.tag);
-    }
-
-    if (nodes.length) {
-        result = rFilter(nodes, token, firstOnly, deDupe); 
-    }
-    clearParentCache();
-    return result;
-};
-
-var contains = function() {
-    if (document.documentElement.contains && !YAHOO.env.ua.webkit < 422)  { // IE & Opera, Safari < 3 contains is broken
-        return function(needle, haystack) {
-            return haystack.contains(needle);
-        };
-    } else if ( document.documentElement.compareDocumentPosition ) { // gecko
-        return function(needle, haystack) {
-            return !!(haystack.compareDocumentPosition(needle) & 16);
-        };
-    } else  { // Safari < 3
-        return function(needle, haystack) {
-            var parent = needle.parentNode;
-            while (parent) {
-                if (needle === parent) {
-                    return true;
-                }
-                parent = parent.parentNode;
-            } 
-            return false;
-        }; 
-    }
-}();
-
-var rFilter = function(nodes, token, firstOnly, deDupe) {
-    var result = [];
-
-    for (var i = 0, len = nodes.length; i < len; ++i) {
-        if (!rTestNode(nodes[i], 0, token) || (deDupe && nodes[i]._found) ) {
-            continue;
-        }
-
-        if (firstOnly) {
-            return nodes[i];
-        }
-        if (deDupe) {
-            nodes[i]._found = true;
-            foundCache[foundCache.length] = nodes[i];
-        }
-
-        result[result.length] = nodes[i];
-    }
-
-    return result;
-};
-
-var rTestNode = function(node, selector, token) {
-    token = token || tokenize(selector).pop() || {};
-
-    if (!node || node._found || (token.tag != '*' && node.tagName.toLowerCase() != token.tag)) {
-        return false; // tag match failed
-    } 
-
-    var ops = Selector.operators,
-        ps = Selector.pseudos,
-        attr = token.attributes,
-        pseudos = token.pseudos,
-        prev = token.previous;
-
-    if (attr.length) {
-        for (var i = 0, len = attr.length; i < len; ++i) {
-            if (ops[attr[i][1]] &&
-                    !ops[attr[i][1]](node.getAttribute(attr[i][0], 2),
-                            attr[i][2])) {
-                return false;
-            }
-        }
-    }
-
-    if (pseudos.length) {
-        for (i = 0, len = pseudos.length; i < len; ++i) {
-            if (ps[pseudos[i][0]] &&
-                    !ps[pseudos[i][0]](node, pseudos[i][1])) {
-                return false;
-            }
-        }
-    }
-    if (prev) {
-        if (prev.combinator !== ',') {
-            return combinators[prev.combinator](node, token);
-        }
-    }
-    return true;
-
-};
-
-var foundCache = [];
-var parentCache = [];
-var regexCache = {};
-
-var clearFoundCache = function() {
-    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');
-};
-
-var clearParentCache = function() {
-    if (!document.documentElement.children) { // caching children lookups for gecko
-        return function() {
-            for (var i = 0, len = parentCache.length; i < len; ++i) {
-                delete parentCache[i]._children;
-            }
-            parentCache = [];
-        };
-    } else return function() {}; // do nothing
-}();
-
-var getRegExp = function(str, flags) {
-    flags = flags || '';
-    if (!regexCache[str + flags]) {
-        regexCache[str + flags] = new RegExp(str, flags);
-    }
-    return regexCache[str + flags];
-};
-
-var combinators = {
-    ' ': function(node, token) {
-        node = node.parentNode;
-        while (node && node.tagName) {
-            if (rTestNode(node, null, token.previous)) {
-                return true;
-            }
-            node = node.parentNode;
-        }  
-        return false;
-    },
-
-    '>': function(node, token) {
-        return rTestNode(node.parentNode, null, token.previous);
-    },
-    '+': function(node, token) {
-        var sib = node.previousSibling;
-        while (sib && sib.nodeType !== 1) {
-            sib = sib.previousSibling;
-        }
-
-        if (sib && rTestNode(sib, null, token.previous)) {
-            return true; 
-        }
-        return false;
-    },
-
-    '~': function(node, token) {
-        var sib = node.previousSibling;
-        while (sib) {
-            if (sib.nodeType === 1 && rTestNode(sib, null, token.previous)) {
-                return true;
-            }
-            sib = sib.previousSibling;
-        }
-
-        return false;
-    }
-};
-
-var getChildren = function() {
-    if (document.documentElement.children) { // document for capability test
-        return function(node, tag) {
-            return (tag) ? node.children.tags(tag) : node.children || [];
-        };
-    } else {
-        return function(node, tag) {
-            if (node._children) {
-                return node._children;
-            }
-            var children = [],
-                childNodes = node.childNodes;
-
-            for (var i = 0, len = childNodes.length; i < len; ++i) {
-                if (childNodes[i].tagName) {
-                    if (!tag || childNodes[i].tagName.toLowerCase() === tag) {
-                        children[children.length] = childNodes[i];
-                    }
-                }
-            }
-            node._children = children;
-            parentCache[parentCache.length] = node;
-            return children;
-        };
-    }
-}();
-
-/*
-    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 
-*/
-var getNth = function(node, expr, tag, reverse) {
-    if (tag) tag = tag.toLowerCase();
-    var re = regexCache[X.NTH_CHILD] = regexCache[X.NTH_CHILD] || new RegExp(X.NTH_CHILD);
-    re.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 = [];
-
-    var siblings = 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;
-};
-
-var 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];
-        }
-    }
-};
-
-var getIdTokenIndex = function(tokens) {
-    for (var i = 0, len = tokens.length; i < len; ++i) {
-        if (getId(tokens[i].attributes)) {
-            return i;
-        }
-    }
-    return -1;
-};
-
-var 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.
- */
-var 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
-        match;          // the regex match
-
-    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 (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
-                    //token[re] = token[re] || [];
-
-                    // 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 = fixAttributes(token.attributes);
-                    token.pseudos = token.pseudos || [];
-                    token.tag = token.tag || '*';
-                    tokens.push(token);
-
-                    token = { // prep next token
-                        previous: token
-                    };
-                }
-            }
-        }
-    } while (found);
-
-    return tokens;
-};
-
-var fixAttributes = function(attr) {
-    var aliases = 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;
-};
-
-var replaceShorthand = function(selector) {
-    var shorthand = Selector.shorthand;
-    var attrs = selector.match(patterns.attributes); // pull attributes to avoid false pos on "." and "#"
-    if (attrs) {
-        selector = selector.replace(patterns.attributes, 'REPLACED_ATTRIBUTE');
-    }
-    for (var re in shorthand) {
-        selector = selector.replace(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) { // rewrite class for IE (others use getAttribute('class')
-    Selector.prototype.attrAliases['class'] = 'className';
-}
-
-Selector = new Selector();
-Selector.TOKENS = X;
-Selector.patterns = patterns;
-Y.Selector = Selector;
-})();
-YAHOO.register("selector", YAHOO.util.Selector, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/selector/selector-beta-min.js b/lib/yui/selector/selector-beta-min.js
deleted file mode 100644 (file)
index 1fbd7de..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-(function(){var U=function(){};var E=YAHOO.util;var F={BEGIN:"^",END:"$",OR:"|",SP:"\\s+"};F.BEGIN_SPACE="(?:"+F.BEGIN+F.OR+F.SP+")";F.END_SPACE="(?:"+F.SP+F.OR+F.END+")";F.NTH_CHILD="^(?:([-]?\\d*)(n){1}|(odd|even)$)*([-+]?\\d*)$";U.prototype={document:window.document,attrAliases:{"for":"htmlFor"},shorthand:{"\\#(-?[_a-z]+[-\\w]*)":"[id=$1]","\\.(-?[_a-z]+[-\\w]*)":"[class~=$1]"},operators:{"=":function(W,X){return W===X;},"!=":function(W,X){return W!==X;},"~=":function(W,Y){var X=" ";return(X+W+X).indexOf((X+Y+X))>-1;},"|=":function(W,X){return H(F.BEGIN+X+"[-]?").test(W);},"^=":function(W,X){return W.indexOf(X)===0;},"$=":function(W,X){return W.lastIndexOf(X)===W.length-X.length;},"*=":function(W,X){return W.indexOf(X)>-1;},"":function(W,X){return W;}},pseudos:{"root":function(W){return W===W.ownerDocument.documentElement;},"nth-child":function(W,X){return S(W,X);},"nth-last-child":function(W,X){return S(W,X,null,true);},"nth-of-type":function(W,X){return S(W,X,W.tagName);},"nth-last-of-type":function(W,X){return S(W,X,W.tagName,true);},"first-child":function(W){return G(W.parentNode)[0]===W;},"last-child":function(X){var W=G(X.parentNode);return W[W.length-1]===X;},"first-of-type":function(W,X){return G(W.parentNode,W.tagName.toLowerCase())[0];},"last-of-type":function(X,Y){var W=G(X.parentNode,X.tagName.toLowerCase());return W[W.length-1];},"only-child":function(X){var W=G(X.parentNode);return W.length===1&&W[0]===X;},"only-of-type":function(W){return G(W.parentNode,W.tagName.toLowerCase()).length===1;},"empty":function(W){return W.childNodes.length===0;},"not":function(W,X){return !U.test(W,X);},"contains":function(W,Y){var X=W.innerText||W.textContent||"";return X.indexOf(Y)>-1;},"checked":function(W){return W.checked===true;}},test:function(a,Y){a=U.document.getElementById(a)||a;var X=Y?Y.split(","):[];if(X.length){for(var Z=0,W=X.length;Z<W;++Z){if(V(a,X[Z])){return true;}}return false;}return V(a,Y);},filter:function(Z,Y){if(!Z||!Y){}var c,a=Z,X=[],d=C(Y);if(!a.item){for(var b=0,W=Z.length;b<W;++b){if(!Z[b].tagName){c=U.document.getElementById(Z[b]);if(c){a[a.length]=c;}else{}}}}X=R(a,C(Y)[0]);B();return X;},query:function(X,Y,Z){var W=I(X,Y,Z);return W;}};var I=function(c,h,j,a){if(!c){return[];}var k=[];var Y=c.split(",");if(Y.length>1){for(var d=0,e=Y.length;d<e;++d){k=k.concat(arguments.callee(Y[d],h,j,true));}J();return k;}if(h&&!h.tagName){h=U.document.getElementById(h);if(!h){return[];}}h=h||U.document;var g=C(c);var f=g[O(g)],W=[],Z,X,b=g.pop()||{};if(f){X=Q(f.attributes);}if(X){if(X===b.id){W=[U.document.getElementById(X)]||h;}else{Z=U.document.getElementById(X);if(h===U.document||M(Z,h)){if(Z&&V(Z,null,f)){h=Z;}}else{return[];}}}if(h&&!W.length){W=h.getElementsByTagName(b.tag);}if(W.length){k=R(W,b,j,a);}B();return k;};var M=function(){if(document.documentElement.contains&&!YAHOO.env.ua.webkit<422){return function(X,W){return W.contains(X);};}else{if(document.documentElement.compareDocumentPosition){return function(X,W){return !!(W.compareDocumentPosition(X)&16);};}else{return function(Y,X){var W=Y.parentNode;while(W){if(Y===W){return true;}W=W.parentNode;}return false;};}}}();var R=function(Z,b,c,Y){var X=[];for(var a=0,W=Z.length;a<W;++a){if(!V(Z[a],0,b)||(Y&&Z[a]._found)){continue;}if(c){return Z[a];}if(Y){Z[a]._found=true;N[N.length]=Z[a];}X[X.length]=Z[a];}return X;};var V=function(Y,b,a){a=a||C(b).pop()||{};if(!Y||Y._found||(a.tag!="*"&&Y.tagName.toLowerCase()!=a.tag)){return false;}var X=U.operators,W=U.pseudos,e=a.attributes,f=a.pseudos,Z=a.previous;if(e.length){for(var c=0,d=e.length;c<d;++c){if(X[e[c][1]]&&!X[e[c][1]](Y.getAttribute(e[c][0],2),e[c][2])){return false;}}}if(f.length){for(c=0,d=f.length;c<d;++c){if(W[f[c][0]]&&!W[f[c][0]](Y,f[c][1])){return false;}}}if(Z){if(Z.combinator!==","){return P[Z.combinator](Y,a);}}return true;};var N=[];var L=[];var T={};var J=function(){for(var X=0,W=N.length;X<W;++X){try{delete N[X]._found;}catch(Y){N[X].removeAttribute("_found");}}N=[];};var B=function(){if(!document.documentElement.children){return function(){for(var X=0,W=L.length;X<W;++X){delete L[X]._children;}L=[];};}else{return function(){};}}();var H=function(X,W){W=W||"";if(!T[X+W]){T[X+W]=new RegExp(X,W);}return T[X+W];};var P={" ":function(X,W){X=X.parentNode;while(X&&X.tagName){if(V(X,null,W.previous)){return true;}X=X.parentNode;}return false;},">":function(X,W){return V(X.parentNode,null,W.previous);},"+":function(Y,X){var W=Y.previousSibling;while(W&&W.nodeType!==1){W=W.previousSibling;}if(W&&V(W,null,X.previous)){return true;}return false;},"~":function(Y,X){var W=Y.previousSibling;while(W){if(W.nodeType===1&&V(W,null,X.previous)){return true;}W=W.previousSibling;}return false;}};var G=function(){if(document.documentElement.children){return function(X,W){return(W)?X.children.tags(W):X.children||[];};}else{return function(a,X){if(a._children){return a._children;}var Z=[],b=a.childNodes;for(var Y=0,W=b.length;Y<W;++Y){if(b[Y].tagName){if(!X||b[Y].tagName.toLowerCase()===X){Z[Z.length]=b[Y];}}}a._children=Z;L[L.length]=a;return Z;};}}();var S=function(X,h,l,c){if(l){l=l.toLowerCase();}var j=T[F.NTH_CHILD]=T[F.NTH_CHILD]||new RegExp(F.NTH_CHILD);j.test(h);var g=parseInt(RegExp.$1,10),W=RegExp.$2,d=RegExp.$3,e=parseInt(RegExp.$4,10)||0,k=[];var f=G(X.parentNode,l);if(d){g=2;op="+";W="n";e=(d==="odd")?1:0;}else{if(isNaN(g)){g=(W)?1:0;}}if(g===0){if(c){e=f.length-e+1;}if(f[e-1]===X){return true;}else{return false;}}else{if(g<0){c=!!c;g=Math.abs(g);}}if(!c){for(var Y=e-1,Z=f.length;Y<Z;Y+=g){if(Y>=0&&f[Y]===X){return true;}}}else{for(var Y=f.length-e,Z=f.length;Y>=0;Y-=g){if(Y<Z&&f[Y]===X){return true;}}}return false;};var Q=function(X){for(var Y=0,W=X.length;Y<W;++Y){if(X[Y][0]=="id"&&X[Y][1]==="="){return X[Y][2];}}};var O=function(Y){for(var X=0,W=Y.length;X<W;++X){if(Q(Y[X].attributes)){return X;}}return -1;};var D={tag:/^((?:-?[_a-z]+[\w-]*)|\*)/i,attributes:/^\[([a-z]+\w*)+([~\|\^\$\*!=]=?)?['"]?([^\]]*)['"]?\]*/i,pseudos:/^:([-\w]+)(?:\(['"]?(.+)['"]?\))*/i,combinator:/^\s*([>+~]|\s)\s*/};
-var C=function(W){var Y={},b=[],c,a=false,X;W=A(W);do{a=false;for(var Z in D){if(Z!="tag"&&Z!="combinator"){Y[Z]=Y[Z]||[];}if(X=D[Z].exec(W)){a=true;if(Z!="tag"&&Z!="combinator"){if(Z==="attributes"&&X[1]==="id"){Y.id=X[3];}Y[Z].push(X.slice(1));}else{Y[Z]=X[1];}W=W.replace(X[0],"");if(Z==="combinator"||!W.length){Y.attributes=K(Y.attributes);Y.pseudos=Y.pseudos||[];Y.tag=Y.tag||"*";b.push(Y);Y={previous:Y};}}}}while(a);return b;};var K=function(X){var Y=U.attrAliases;X=X||[];for(var Z=0,W=X.length;Z<W;++Z){if(Y[X[Z][0]]){X[Z][0]=Y[X[Z][0]];}if(!X[Z][1]){X[Z][1]="";}}return X;};var A=function(X){var Y=U.shorthand;var Z=X.match(D.attributes);if(Z){X=X.replace(D.attributes,"REPLACED_ATTRIBUTE");}for(var b in Y){X=X.replace(H(b,"gi"),Y[b]);}if(Z){for(var a=0,W=Z.length;a<W;++a){X=X.replace("REPLACED_ATTRIBUTE",Z[a]);}}return X;};if(YAHOO.env.ua.ie){U.prototype.attrAliases["class"]="className";}U=new U();U.TOKENS=F;U.patterns=D;E.Selector=U;})();YAHOO.register("selector",YAHOO.util.Selector,{version:"2.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/selector/selector-beta.js b/lib/yui/selector/selector-beta.js
deleted file mode 100644 (file)
index 82d0988..0000000
+++ /dev/null
@@ -1,660 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * 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() {
-/**
- * Provides helper methods for collecting and filtering DOM elements.
- * @namespace YAHOO.util
- * @class Selector
- * @static
- */
-var Selector = function() {};
-
-var Y = YAHOO.util;
-
-var X = {
-    BEGIN: '^',
-    END: '$',
-    OR: '|',
-    SP: '\\s+'
-};
-
-X.BEGIN_SPACE = '(?:' + X.BEGIN + X.OR + X.SP +')';
-X.END_SPACE = '(?:' + X.SP + X.OR + X.END + ')';
-X.NTH_CHILD = '^(?:([-]?\\d*)(n){1}|(odd|even)$)*([-+]?\\d*)$';
-
-Selector.prototype = {
-    /**
-     * 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: {
-        'for': 'htmlFor'
-    },
-
-    /**
-     * 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 getRegExp(X.BEGIN + val + '[-]?').test(attr); }, // Match start with value followed by optional hyphen
-        '^=': function(attr, val) { return attr.indexOf(val) === 0; }, // Match starts with value
-        '$=': function(attr, val) { return attr.lastIndexOf(val) === attr.length - val.length; }, // 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 getNth(node, val);
-        },
-
-        'nth-last-child': function(node, val) {
-            return getNth(node, val, null, true);
-        },
-
-        'nth-of-type': function(node, val) {
-            return getNth(node, val, node.tagName);
-        },
-         
-        'nth-last-of-type': function(node, val) {
-            return getNth(node, val, node.tagName, true);
-        },
-         
-        'first-child': function(node) {
-            return getChildren(node.parentNode)[0] === node;
-        },
-
-        'last-child': function(node) {
-            var children = getChildren(node.parentNode);
-            return children[children.length - 1] === node;
-        },
-
-        'first-of-type': function(node, val) {
-            return getChildren(node.parentNode, node.tagName.toLowerCase())[0];
-        },
-         
-        'last-of-type': function(node, val) {
-            var children = getChildren(node.parentNode, node.tagName.toLowerCase());
-            return children[children.length - 1];
-        },
-         
-        'only-child': function(node) {
-            var children = getChildren(node.parentNode);
-            return children.length === 1 && children[0] === node;
-        },
-
-        'only-of-type': function(node) {
-            return getChildren(node.parentNode, node.tagName.toLowerCase()).length === 1;
-        },
-
-        'empty': function(node) {
-            return node.childNodes.length === 0;
-        },
-
-        'not': function(node, simple) {
-            return !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 = Selector.document.getElementById(node) || node;
-        var groups = selector ? selector.split(',') : [];
-        if (groups.length) {
-            for (var i = 0, len = groups.length; i < len; ++i) {
-                if ( rTestNode(node, groups[i]) ) { // passes if ANY group matches
-                    return true;
-                }
-            }
-            return false;
-        }
-        return rTestNode(node, selector);
-    },
-
-    /**
-     * Filters a set of nodes based on a given CSS selector. 
-     * @method filter
-     *
-     * @param {array}  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(arr, selector) {
-        if (!arr || !selector) {
-        }
-        var node,
-            nodes = arr,
-            result = [],
-            tokens = tokenize(selector);
-
-        if (!nodes.item) { // if not HTMLCollection, handle arrays of ids and/or nodes
-            for (var i = 0, len = arr.length; i < len; ++i) {
-                if (!arr[i].tagName) { // tagName limits to HTMLElements 
-                    node = Selector.document.getElementById(arr[i]);
-                    if (node) { // skip IDs that return null 
-                        nodes[nodes.length] = node;
-                    } else {
-                    }
-                }
-            }
-        }
-        result = rFilter(nodes, tokenize(selector)[0]);
-        clearParentCache();
-        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 = query(selector, root, firstOnly);
-        return result;
-    }
-};
-
-var query = function(selector, root, firstOnly, deDupe) {
-    if (!selector) {
-        return []; // no nodes for you
-    }
-    var result = [];
-    var groups = selector.split(',');
-
-    if (groups.length > 1) {
-        for (var i = 0, len = groups.length; i < len; ++i) {
-            result = result.concat( arguments.callee(groups[i], root, firstOnly, true) ); 
-        }
-        clearFoundCache();
-        return result;
-    }
-
-    if (root && !root.tagName) {
-        root = Selector.document.getElementById(root);
-        if (!root) {
-            return [];
-        }
-    }
-
-    root = root || Selector.document;
-    var tokens = tokenize(selector);
-    var idToken = tokens[getIdTokenIndex(tokens)],
-        nodes = [],
-        node,
-        id,
-        token = tokens.pop() || {};
-        
-    if (idToken) {
-        id = getId(idToken.attributes);
-    }
-
-    // if no root alternate root is specified use id shortcut
-    if (id) {
-        if (id === token.id) { // only one target
-            nodes = [Selector.document.getElementById(id)] || root;
-        } else { // reset root to id node if passes
-            node = Selector.document.getElementById(id);
-            if (root === Selector.document || contains(node, root)) {
-                if ( node && rTestNode(node, null, idToken) ) {
-                    root = node; // start from here
-                }
-            } else {
-                return [];
-            }
-        }
-    }
-
-    if (root && !nodes.length) {
-        nodes = root.getElementsByTagName(token.tag);
-    }
-
-    if (nodes.length) {
-        result = rFilter(nodes, token, firstOnly, deDupe); 
-    }
-    clearParentCache();
-    return result;
-};
-
-var contains = function() {
-    if (document.documentElement.contains && !YAHOO.env.ua.webkit < 422)  { // IE & Opera, Safari < 3 contains is broken
-        return function(needle, haystack) {
-            return haystack.contains(needle);
-        };
-    } else if ( document.documentElement.compareDocumentPosition ) { // gecko
-        return function(needle, haystack) {
-            return !!(haystack.compareDocumentPosition(needle) & 16);
-        };
-    } else  { // Safari < 3
-        return function(needle, haystack) {
-            var parent = needle.parentNode;
-            while (parent) {
-                if (needle === parent) {
-                    return true;
-                }
-                parent = parent.parentNode;
-            } 
-            return false;
-        }; 
-    }
-}();
-
-var rFilter = function(nodes, token, firstOnly, deDupe) {
-    var result = [];
-
-    for (var i = 0, len = nodes.length; i < len; ++i) {
-        if (!rTestNode(nodes[i], 0, token) || (deDupe && nodes[i]._found) ) {
-            continue;
-        }
-
-        if (firstOnly) {
-            return nodes[i];
-        }
-        if (deDupe) {
-            nodes[i]._found = true;
-            foundCache[foundCache.length] = nodes[i];
-        }
-
-        result[result.length] = nodes[i];
-    }
-
-    return result;
-};
-
-var rTestNode = function(node, selector, token) {
-    token = token || tokenize(selector).pop() || {};
-
-    if (!node || node._found || (token.tag != '*' && node.tagName.toLowerCase() != token.tag)) {
-        return false; // tag match failed
-    } 
-
-    var ops = Selector.operators,
-        ps = Selector.pseudos,
-        attr = token.attributes,
-        pseudos = token.pseudos,
-        prev = token.previous;
-
-    if (attr.length) {
-        for (var i = 0, len = attr.length; i < len; ++i) {
-            if (ops[attr[i][1]] &&
-                    !ops[attr[i][1]](node.getAttribute(attr[i][0], 2),
-                            attr[i][2])) {
-                return false;
-            }
-        }
-    }
-
-    if (pseudos.length) {
-        for (i = 0, len = pseudos.length; i < len; ++i) {
-            if (ps[pseudos[i][0]] &&
-                    !ps[pseudos[i][0]](node, pseudos[i][1])) {
-                return false;
-            }
-        }
-    }
-    if (prev) {
-        if (prev.combinator !== ',') {
-            return combinators[prev.combinator](node, token);
-        }
-    }
-    return true;
-
-};
-
-var foundCache = [];
-var parentCache = [];
-var regexCache = {};
-
-var clearFoundCache = function() {
-    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 = [];
-};
-
-var clearParentCache = function() {
-    if (!document.documentElement.children) { // caching children lookups for gecko
-        return function() {
-            for (var i = 0, len = parentCache.length; i < len; ++i) {
-                delete parentCache[i]._children;
-            }
-            parentCache = [];
-        };
-    } else return function() {}; // do nothing
-}();
-
-var getRegExp = function(str, flags) {
-    flags = flags || '';
-    if (!regexCache[str + flags]) {
-        regexCache[str + flags] = new RegExp(str, flags);
-    }
-    return regexCache[str + flags];
-};
-
-var combinators = {
-    ' ': function(node, token) {
-        node = node.parentNode;
-        while (node && node.tagName) {
-            if (rTestNode(node, null, token.previous)) {
-                return true;
-            }
-            node = node.parentNode;
-        }  
-        return false;
-    },
-
-    '>': function(node, token) {
-        return rTestNode(node.parentNode, null, token.previous);
-    },
-    '+': function(node, token) {
-        var sib = node.previousSibling;
-        while (sib && sib.nodeType !== 1) {
-            sib = sib.previousSibling;
-        }
-
-        if (sib && rTestNode(sib, null, token.previous)) {
-            return true; 
-        }
-        return false;
-    },
-
-    '~': function(node, token) {
-        var sib = node.previousSibling;
-        while (sib) {
-            if (sib.nodeType === 1 && rTestNode(sib, null, token.previous)) {
-                return true;
-            }
-            sib = sib.previousSibling;
-        }
-
-        return false;
-    }
-};
-
-var getChildren = function() {
-    if (document.documentElement.children) { // document for capability test
-        return function(node, tag) {
-            return (tag) ? node.children.tags(tag) : node.children || [];
-        };
-    } else {
-        return function(node, tag) {
-            if (node._children) {
-                return node._children;
-            }
-            var children = [],
-                childNodes = node.childNodes;
-
-            for (var i = 0, len = childNodes.length; i < len; ++i) {
-                if (childNodes[i].tagName) {
-                    if (!tag || childNodes[i].tagName.toLowerCase() === tag) {
-                        children[children.length] = childNodes[i];
-                    }
-                }
-            }
-            node._children = children;
-            parentCache[parentCache.length] = node;
-            return children;
-        };
-    }
-}();
-
-/*
-    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 
-*/
-var getNth = function(node, expr, tag, reverse) {
-    if (tag) tag = tag.toLowerCase();
-    var re = regexCache[X.NTH_CHILD] = regexCache[X.NTH_CHILD] || new RegExp(X.NTH_CHILD);
-    re.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 = [];
-
-    var siblings = 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;
-};
-
-var 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];
-        }
-    }
-};
-
-var getIdTokenIndex = function(tokens) {
-    for (var i = 0, len = tokens.length; i < len; ++i) {
-        if (getId(tokens[i].attributes)) {
-            return i;
-        }
-    }
-    return -1;
-};
-
-var 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.
- */
-var 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
-        match;          // the regex match
-
-    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 (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
-                    //token[re] = token[re] || [];
-
-                    // 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 = fixAttributes(token.attributes);
-                    token.pseudos = token.pseudos || [];
-                    token.tag = token.tag || '*';
-                    tokens.push(token);
-
-                    token = { // prep next token
-                        previous: token
-                    };
-                }
-            }
-        }
-    } while (found);
-
-    return tokens;
-};
-
-var fixAttributes = function(attr) {
-    var aliases = 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;
-};
-
-var replaceShorthand = function(selector) {
-    var shorthand = Selector.shorthand;
-    var attrs = selector.match(patterns.attributes); // pull attributes to avoid false pos on "." and "#"
-    if (attrs) {
-        selector = selector.replace(patterns.attributes, 'REPLACED_ATTRIBUTE');
-    }
-    for (var re in shorthand) {
-        selector = selector.replace(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) { // rewrite class for IE (others use getAttribute('class')
-    Selector.prototype.attrAliases['class'] = 'className';
-}
-
-Selector = new Selector();
-Selector.TOKENS = X;
-Selector.patterns = patterns;
-Y.Selector = Selector;
-})();
-YAHOO.register("selector", YAHOO.util.Selector, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/slider/README b/lib/yui/slider/README
deleted file mode 100755 (executable)
index 3fd03b1..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-Slider - Release Notes
-
-2.5.0
-    * Slider onDrag now calls fireEvents, so bg mousedown, drag, mouseup fires change events
-    * Slider uses new dragOnly=true property added in dragdrop
-    * Introduced DualSlider
-
-2.4.0
-    * No change
-
-2.3.1
-
-   * getValue will return the last value or 0 rather than NaN if the control 
-     is display:none.
-
-   * The slider will not fire slideStart/change/slideEnd events during its
-     initial setup unless setValue was called prior to initialization.
-
-   * slideStart/slideEnd now fire consistently among the various methods of
-     changing the slider value (setValue, bg click, thumb drag).  A bg click
-     and drag continuation will result in two start/end events.
-
-   * Added a silent flag to setValue and setRegionValue to silence all of the
-     events during that operation.
-
-2.3.0
-   * Added valueChangeSource, which specifies whether the last value change
-     was the result of user interaction with the control, or a result of a
-     programmatic update (setValue)
-
-2.2.2
-   * No change
-
-2.2.1
-   * No change
-
-2.2.0
-   * Added the missing "force" parameter to the signature for setRegionValue
-   * Deprecated the moveComplete flag
-
-0.12.2
-   * No change
-
-0.12.1
-
-   * Removed unnecessary getXY calls that were contributing to slower performance
-     in FireFox when the slider was deeply nested in the DOM.
-
-0.12.0
-
-   * Added "slideStart", "slideEnd", and "change" custom events.  The abstract
-     methods these will eventually replace still work.
-
-   * The default animation duration is 0.2 seconds (reduced from 0.4 seconds),
-     and is configurable via the animationDuration property.
-
-   * Keyboard navigation is now built in.  The background needs a tabindex for
-     keyboard nav to work.  Keyboard nav can be disabled by setting enableKeys
-     to false.  The number of pixels the slider moves when the arrow keys
-     are pressed is controlled by keyIncrement, and defaults to 20.  Note, 
-     Safari support limited to background element types that support focus
-     in that browser. http://bugs.webkit.org/show_bug.cgi?id=7138
-
-   * Fixed broken doctype in examples/index.html
-
-   * Catching an unhandled script exception in FF that could occur when
-     attempting to focus the slider background while a text field without
-     autocomplete="false" has focus
-
-0.11.3
-
-   * No change
-
-0.11.0
-
-   * When the thumb is clicked and dragged, the click position delta is properly
-     applied.
-
-   * The slider background can be disabled by setting backgroundEnabled to false.
-
-   * Added SliderThumb->clearTicks
-
-   * Incorporated updated drag and drop performance improvements
-
-0.10.0
-
-   * Drag and drop's autoscroll feature is now turned off by default
-     in the slider.
-
-   * The slider no longer sets its initial value upon initialization
-
-   * RGB slider example fixed for IE7.
-
-   * Updated to work with the onAvailable feature in Drag and Drop.
-
-   * Updated the basic slider example page to make the control more
-     accessible to non-FF1.5 browsers.
-
-   * Split the examples into separate pages
-
diff --git a/lib/yui/slider/slider-debug.js b/lib/yui/slider/slider-debug.js
deleted file mode 100755 (executable)
index 622abbe..0000000
+++ /dev/null
@@ -1,1940 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * 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
- */
-
-/**
- * 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)
- */
-YAHOO.widget.Slider = function(sElementId, sGroup, oThumb, sType) {
-
-    YAHOO.widget.Slider.ANIM_AVAIL = 
-        (!YAHOO.lang.isUndefined(YAHOO.util.Anim));
-
-    if (sElementId) {
-        this.init(sElementId, sGroup, true);
-        this.initSlider(sType);
-        this.initThumb(oThumb);
-    }
-};
-
-/**
- * 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
- */
-YAHOO.widget.Slider.getHorizSlider = 
-    function (sBGElId, sHandleElId, iLeft, iRight, iTickSize) {
-        return new YAHOO.widget.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
- */
-YAHOO.widget.Slider.getVertSlider = 
-    function (sBGElId, sHandleElId, iUp, iDown, iTickSize) {
-        return new YAHOO.widget.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
- */
-YAHOO.widget.Slider.getSliderRegion = 
-    function (sBGElId, sHandleElId, iLeft, iRight, iUp, iDown, iTickSize) {
-        return new YAHOO.widget.Slider(sBGElId, sBGElId, 
-            new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, iLeft, iRight, 
-                               iUp, iDown, iTickSize), "region");
-};
-
-/**
- * By default, animation is available if the animation utility is detected.
- * @property YAHOO.widget.Slider.ANIM_AVAIL
- * @static
- * @type boolean
- */
-YAHOO.widget.Slider.ANIM_AVAIL = false;
-
-YAHOO.extend(YAHOO.widget.Slider, YAHOO.util.DragDrop, {
-
-    /**
-     * 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 = YAHOO.widget.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
-         */
-        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
-         */
-        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;
-
-        // add handler for the handle onchange event
-        //t.onChange = function() { 
-            //self.handleThumbChange(); 
-        //};
-
-        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 () { 
-                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() {
-        var Event = YAHOO.util.Event;
-        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 Event = YAHOO.util.Event;
-            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 Event = YAHOO.util.Event;
-
-            var kc = Event.getCharCode(e), t=this.thumb;
-            var h=this.getXValue(),v=this.getYValue();
-
-            var horiz = false;
-            var 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(h, v, true);
-                } else {
-                    var newVal = (t._isHoriz) ? h : v;
-                    this.setValue(newVal, 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 = YAHOO.util.Dom.getXY(this.getEl());
-
-        this.thumb.startOffset = this.thumb.getOffsetFromParent(this.baselinePos);
-
-        if (this.thumb._isRegion) {
-            if (this.deferredSetRegionValue) {
-                this.setRegionValue.apply(this, this.deferredSetRegionValue, true);
-                this.deferredSetRegionValue = null;
-            } else {
-                this.setRegionValue(0, 0, true, true, true);
-            }
-        } else {
-            if (this.deferredSetValue) {
-                this.setValue.apply(this, this.deferredSetValue, true);
-                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.logger.log("thumb mouseup");
-        if (!this.isLocked() && !this.moveComplete) {
-            this.endMove();
-        }
-
-    },
-
-    onMouseUp: function() {
-        this.logger.log("bg mouseup");
-        if (!this.isLocked() && !this.moveComplete) {
-            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 = this.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();
-
-        if (this.isLocked()) {
-            return false;
-        } else {
-            this._slideStart();
-            return true;
-        }
-    },
-
-    /**
-     * 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();
-    },
-
-    /**
-     * Internal handler for the slider thumb's onChange event
-     * @method handleThumbChange
-     * @private
-     */
-    handleThumbChange: function () { 
-        /*
-        var t = this.thumb;
-        if (t._isRegion) {
-
-            if (!this._silent) {
-                t.onChange(t.getXValue(), t.getYValue());
-                this.fireEvent("change", { x: t.getXValue(), y: t.getYValue() } );
-            }
-        } else {
-            if (!this._silent) {
-                t.onChange(t.getValue());
-                this.fireEvent("change", t.getValue());
-            }
-        }
-        */
-
-    },
-
-    /**
-     * 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(newOffset, skipAnim, force, silent) {
-        this.logger.log("setValue " + newOffset);
-
-        this._silent = silent;
-        this.valueChangeSource = this.SOURCE_SET_VALUE;
-
-        if (!this.thumb.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;
-        }
-
-        var t = this.thumb;
-        t.lastOffset = [newOffset, newOffset];
-        var newX, newY;
-        this.verifyOffset(true);
-        if (t._isRegion) {
-            return false;
-        } else if (t._isHoriz) {
-            this._slideStart();
-            // this.fireEvent("slideStart");
-            newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
-            this.moveThumb(newX, t.initPageY, skipAnim);
-        } else {
-            this._slideStart();
-            // this.fireEvent("slideStart");
-            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(newOffset, newOffset2, skipAnim, force, silent) {
-
-        this._silent = silent;
-
-        this.valueChangeSource = this.SOURCE_SET_VALUE;
-
-        if (!this.thumb.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;
-        }
-
-        var t = this.thumb;
-        t.lastOffset = [newOffset, newOffset2];
-        this.verifyOffset(true);
-        if (t._isRegion) {
-            this._slideStart();
-            var newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
-            var newY = t.initPageY + newOffset2 + this.thumbCenterPoint.y;
-            this.moveThumb(newX, newY, skipAnim);
-            return true;
-        }
-
-        return false;
-
-    },
-
-    /**
-     * Checks the background position element position.  If it has moved from the
-     * baseline position, the constraints for the thumb are reset
-     * @param checkPos {boolean} check the position instead of using cached value
-     * @method verifyOffset
-     * @return {boolean} True if the offset is the same as the baseline.
-     */
-    verifyOffset: function(checkPos) {
-
-        var newPos = YAHOO.util.Dom.getXY(this.getEl());
-        //var newPos = [this.initPageX, this.initPageY];
-
-        if (newPos) {
-
-            this.logger.log("newPos: " + newPos);
-
-            if (newPos[0] != this.baselinePos[0] || newPos[1] != this.baselinePos[1]) {
-                this.logger.log("background moved, resetting constraints");
-                this.thumb.resetConstraints();
-                this.baselinePos = newPos;
-                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) {
-
-        // this.logger.log("move thumb", "warn");
-
-        var t = this.thumb;
-        var self = this;
-
-        if (!t.available) {
-            this.logger.log("thumb is not available yet, aborting move");
-            return;
-        }
-
-        this.logger.log("move thumb, x: "  + x + ", y: " + y);
-
-        // this.verifyOffset();
-
-        t.setDelta(this.thumbCenterPoint.x, this.thumbCenterPoint.y);
-
-        var _p = t.getTargetCoord(x, y);
-        var p = [_p.x, _p.y];
-
-        this._slideStart();
-
-        if (this.animate && YAHOO.widget.Slider.ANIM_AVAIL && t._graduated && !skipAnim) {
-            this.logger.log("graduated");
-            // this.thumb._animating = true;
-            this.lock();
-
-            // cache the current thumb pos
-            this.curCoord = YAHOO.util.Dom.getXY(this.thumb.getEl());
-
-            setTimeout( function() { self.moveOneTick(p); }, this.tickPause );
-
-        } else if (this.animate && YAHOO.widget.Slider.ANIM_AVAIL && !skipAnim) {
-            this.logger.log("animating to " + p);
-
-            // this.thumb._animating = true;
-            this.lock();
-
-            var oAnim = new YAHOO.util.Motion( 
-                    t.id, { points: { to: p } }, 
-                    this.animationDuration, 
-                    YAHOO.util.Easing.easeOut );
-
-            oAnim.onComplete.subscribe( function() { 
-                    
-                    self.endMove(); 
-                } );
-            oAnim.animate();
-        } else {
-            t.setDragElPos(x, y);
-            // this.fireEvents();
-            if (!midMove) {
-                this.endMove();
-            }
-        }
-    },
-
-    _slideStart: function() {
-        if (!this._sliding) {
-            if (!this._silent) {
-                this.onSlideStart();
-                this.fireEvent("slideStart");
-            }
-            this._sliding = true;
-        }
-    },
-
-    _slideEnd: function() {
-
-        if (this._sliding && this.moveComplete) {
-            if (!this._silent) {
-                this.onSlideEnd();
-                this.fireEvent("slideEnd");
-            }
-            this._sliding = false;
-            this._silent = false;
-            this.moveComplete = false;
-        }
-    },
-
-    /**
-     * 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, tmp;
-
-
-        // redundant call to getXY since we set the position most of time prior 
-        // to getting here.  Moved to this.curCoord
-        //var curCoord = YAHOO.util.Dom.getXY(t.getEl());
-
-        // alignElWithMouse caches position in lastPageX, lastPageY .. doesn't work
-        //var curCoord = [this.lastPageX, this.lastPageY];
-
-        // var thresh = Math.min(t.tickSize + (Math.floor(t.tickSize/2)), 10);
-        // var thresh = 10;
-        // var thresh = t.tickSize + (Math.floor(t.tickSize/2));
-
-        var nextCoord = null;
-
-        if (t._isRegion) {
-            nextCoord = this._getNextX(this.curCoord, finalCoord);
-            var tmpX = (nextCoord) ? nextCoord[0] : this.curCoord[0];
-            nextCoord = this._getNextY([tmpX, this.curCoord[1]], finalCoord);
-
-        } 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
-            // YAHOO.util.Dom.setXY(t.getEl(), nextCoord);
-
-            // var el = t.getEl();
-            // YAHOO.util.Dom.setStyle(el, "left", (nextCoord[0] + this.thumb.deltaSetXY[0]) + "px");
-            // YAHOO.util.Dom.setStyle(el, "top",  (nextCoord[1] + this.thumb.deltaSetXY[1]) + "px");
-
-            this.thumb.alignElWithMouse(t.getEl(), nextCoord[0], nextCoord[1]);
-            
-            // check if we are in the final position, if not make a recursive call
-            if (!(nextCoord[0] == finalCoord[0] && nextCoord[1] == finalCoord[1])) {
-                var self = this;
-                setTimeout(function() { self.moveOneTick(finalCoord); }, 
-                        this.tickPause);
-            } else {
-                this.endMove();
-            }
-        } else {
-            this.endMove();
-        }
-
-        //this.tickPause = Math.round(this.tickPause/2);
-    },
-
-    /**
-     * 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;
-        var thresh;
-        var tmp = [];
-        var 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;
-        var thresh;
-        var tmp = [];
-        var 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) {
-        this.thumb.autoOffset();
-        this.thumb.resetConstraints();
-    },
-
-
-    /**
-     * Handles the mousedown event for the slider background
-     * @method onMouseDown
-     * @private
-     */
-    onMouseDown: function(e) {
-        // this.resetConstraints(true);
-        // this.thumb.resetConstraints(true);
-
-        if (! this.isLocked() && this.backgroundEnabled) {
-            var x = YAHOO.util.Event.getPageX(e);
-            var y = YAHOO.util.Event.getPageY(e);
-            this.logger.log("bg mousedown: " + x + "," + y);
-
-            this.focus();
-            this.moveThumb(x, y);
-        }
-        
-    },
-
-    /**
-     * Handles the onDrag event for the slider background
-     * @method onDrag
-     * @private
-     */
-    onDrag: function(e) {
-        if (! this.isLocked()) {
-            var x = YAHOO.util.Event.getPageX(e);
-            var y = YAHOO.util.Event.getPageY(e);
-            this.moveThumb(x, y, true, true);
-            this.fireEvents();
-        }
-    },
-
-    /**
-     * Fired when the slider movement ends
-     * @method endMove
-     * @private
-     */
-    endMove: function () {
-        // this._animating = false;
-        this.unlock();
-        this.moveComplete = true;
-        this.fireEvents();
-    },
-
-    /**
-     * 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;
-        // this.logger.log("FireEvents: " + t._isRegion);
-
-        if (!thumbEvent) {
-            t.cachePosition();
-        }
-
-        if (! this.isLocked()) {
-            if (t._isRegion) {
-                this.logger.log("region");
-                var newX = t.getXValue();
-                var newY = t.getYValue();
-
-                if (newX != this.previousX || newY != this.previousY) {
-                    // this.logger.log("Firing onchange");
-                    if (!this._silent) {
-                        this.onChange(newX, newY);
-                        this.fireEvent("change", { x: newX, y: newY });
-                    }
-                }
-
-                this.previousX = newX;
-                this.previousY = newY;
-
-            } else {
-                var 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;
-            }
-
-            this._slideEnd();
-
-        }
-    },
-
-    /**
-     * Slider toString
-     * @method toString
-     * @return {string} string representation of the instance
-     */
-    toString: function () { 
-        return ("Slider (" + this.type +") " + this.id);
-    }
-
-});
-
-YAHOO.augment(YAHOO.widget.Slider, YAHOO.util.EventProvider);
-
-/**
- * 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) {
-        //this.init(id, sGroup);
-        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.removeInvalidHandleType("A");
-
-    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());
-        var 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;
-
-        if (!this.deltaOffset) {
-
-            var myPos = YAHOO.util.Dom.getXY(el);
-            var ppos  = parentPos || YAHOO.util.Dom.getXY(this.parentElId);
-
-            newOffset = [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
-
-            var l = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
-            var t = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
-            var deltaX = l - newOffset[0];
-            var 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 {
-            var newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
-            var newTop  = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
-            newOffset  = [newLeft + this.deltaOffset[0], newTop + this.deltaOffset[1]];
-        }
-
-        return newOffset;
-
-        //return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
-    },
-
-    /**
-     * 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) {
-
-
-        //document these.  new for 0.12.1
-        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();
-        //this.logger.log("getVal: " + val);
-    },
-
-    /**
-     * 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
- */
-YAHOO.widget.DualSlider = function(minSlider, maxSlider, range, initVals) {
-
-    var self = this,
-        lang = YAHOO.lang;
-
-    /**
-     * 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;
-
-    // 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]);
-    }
-
-    var ready = { min : false, max : false };
-
-    this.minSlider.thumb.onAvailable = function () {
-        minSlider.setStartSliderState();
-        ready.min = true;
-        if (ready.max) {
-            minSlider.setValue(initVals[0],true,true,true);
-            maxSlider.setValue(initVals[1],true,true,true);
-            self.updateValue(true);
-            self.fireEvent('ready',self);
-        }
-    };
-    this.maxSlider.thumb.onAvailable = function () {
-        maxSlider.setStartSliderState();
-        ready.max = true;
-        if (ready.min) {
-            minSlider.setValue(initVals[0],true,true,true);
-            maxSlider.setValue(initVals[1],true,true,true);
-            self.updateValue(true);
-            self.fireEvent('ready',self);
-        }
-    };
-
-    // dispatch mousedowns to the active slider
-    minSlider.onMouseDown = function(e) {
-        self._handleMouseDown(e);
-    };
-
-    // we can safely ignore a mousedown on one of the sliders since
-    // they share a background
-    maxSlider.onMouseDown = function(e) { 
-        YAHOO.util.Event.stopEvent(e); 
-    };
-
-    // Fix the drag behavior so that only the active slider
-    // follows the drag
-    minSlider.onDrag =
-    maxSlider.onDrag = function(e) {
-        self._handleDrag(e);
-    };
-
-    // 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);
-};
-
-YAHOO.widget.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) {
-        YAHOO.widget.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();
-    },
-
-    /**
-     * 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);
-            }
-        });
-
-        mins.setValue(min,skipAnim,force,silent);
-        maxs.setValue(max,skipAnim,force,silent);
-    },
-
-    /**
-     * 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;
-
-        this.activeSlider = mins;
-
-        // Use a one-time event callback to delay the updateValue call
-        // until after the slide operation is done
-        var 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, silent);
-    },
-
-    /**
-     * 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;
-
-        this.activeSlider = maxs;
-
-        // Use a one-time event callback to delay the updateValue call
-        // until after the slide operation is done
-        var self = this;
-        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, silent);
-    },
-
-    /**
-     * 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;
-
-        if (min != this.minVal || max != this.maxVal) {
-            changed = true;
-
-            var mint = this.minSlider.thumb;
-            var maxt = this.maxSlider.thumb;
-
-            var thumbInnerWidth = this.minSlider.thumbCenterPoint.x +
-                                  this.maxSlider.thumbCenterPoint.x;
-
-            // Establish barriers within the respective other thumb's edge, less
-            // the minRange.  Limit to the Slider's range in the case of
-            // negative minRanges.
-            var minConstraint = Math.max(max-thumbInnerWidth-this.minRange,0);
-            var 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.getValue(),
-            max = this.maxSlider.getValue(),
-            d;
-
-        if (this.isHoriz) {
-            d = YAHOO.util.Event.getPageX(e) - this.minSlider.initPageX -
-                this.minSlider.thumbCenterPoint.x;
-        } else {
-            d = YAHOO.util.Event.getPageY(e) - this.minSlider.initPageY -
-                this.minSlider.thumbCenterPoint.y;
-        }
-                
-        // Below the minSlider thumb.  Move the minSlider thumb
-        if (d < min) {
-            this.activeSlider = this.minSlider;
-        // Above the maxSlider thumb.  Move the maxSlider thumb
-        } else if (d > max) {
-            this.activeSlider = this.maxSlider;
-        // Split the difference between thumbs
-        } else {
-            this.activeSlider = d*2 > max+min ? this.maxSlider : this.minSlider;
-        }
-    },
-
-    /**
-     * Overrides the onMouseDown for both slider, only moving the active slider
-     * @method handleMouseDown
-     * @private
-     */
-    _handleMouseDown: function(e) {
-        this.selectActiveSlider(e);
-        YAHOO.widget.Slider.prototype.onMouseDown.call(this.activeSlider, e);
-    },
-
-    /**
-     * 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) {
-        o.subscribe(evt,function () {
-            // Unsubscribe myself
-            o.unsubscribe(evt,arguments.callee);
-            // Pass the event handler arguments to the one time callback
-            fn.apply({},[].slice.apply(arguments));
-        });
-    },
-
-    /**
-     * 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) {
-        if (o.__yui_events && o.events[evt]) {
-            var ce, i, len;
-            for (i = o.__yui_events.length; i >= 0; --i) {
-                if (o.__yui_events[i].type === evt) {
-                    ce = o.__yui_events[i];
-                    break;
-                }
-            }
-            if (ce) {
-                var 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.augment(YAHOO.widget.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
- */
-YAHOO.widget.Slider.getHorizDualSlider = 
-    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
-        var mint, maxt;
-        var YW = YAHOO.widget, Slider = YW.Slider, Thumb = YW.SliderThumb;
-
-        mint = new Thumb(minthumb, bg, 0, range, 0, 0, iTickSize);
-        maxt = new Thumb(maxthumb, bg, 0, range, 0, 0, iTickSize);
-
-        return new YW.DualSlider(new Slider(bg, bg, mint, "horiz"), new 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
- */
-YAHOO.widget.Slider.getVertDualSlider = 
-    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
-        var mint, maxt;
-        var YW = YAHOO.widget, Slider = YW.Slider, Thumb = YW.SliderThumb;
-
-        mint = new Thumb(minthumb, bg, 0, 0, 0, range, iTickSize);
-        maxt = new Thumb(maxthumb, bg, 0, 0, 0, range, iTickSize);
-
-        return new YW.DualSlider(new Slider(bg, bg, mint, "vert"), new Slider(bg, bg, maxt, "vert"), range, initVals);
-};
-YAHOO.register("slider", YAHOO.widget.Slider, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/slider/slider-min.js b/lib/yui/slider/slider-min.js
deleted file mode 100755 (executable)
index 5700a2f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.widget.Slider=function(C,A,B,D){YAHOO.widget.Slider.ANIM_AVAIL=(!YAHOO.lang.isUndefined(YAHOO.util.Anim));if(C){this.init(C,A,true);this.initSlider(D);this.initThumb(B);}};YAHOO.widget.Slider.getHorizSlider=function(B,C,E,D,A){return new YAHOO.widget.Slider(B,B,new YAHOO.widget.SliderThumb(C,B,E,D,0,0,A),"horiz");};YAHOO.widget.Slider.getVertSlider=function(C,D,A,E,B){return new YAHOO.widget.Slider(C,C,new YAHOO.widget.SliderThumb(D,C,0,0,A,E,B),"vert");};YAHOO.widget.Slider.getSliderRegion=function(C,D,F,E,A,G,B){return new YAHOO.widget.Slider(C,C,new YAHOO.widget.SliderThumb(D,C,F,E,A,G,B),"region");};YAHOO.widget.Slider.ANIM_AVAIL=false;YAHOO.extend(YAHOO.widget.Slider,YAHOO.util.DragDrop,{dragOnly:true,initSlider:function(A){this.type=A;this.createEvent("change",this);this.createEvent("slideStart",this);this.createEvent("slideEnd",this);this.isTarget=false;this.animate=YAHOO.widget.Slider.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(B){var A=this;this.thumb=B;B.cacheBetweenDrags=true;if(B._isHoriz&&B.xTicks&&B.xTicks.length){this.tickPause=Math.round(360/B.xTicks.length);}else{if(B.yTicks&&B.yTicks.length){this.tickPause=Math.round(360/B.yTicks.length);}}B.onAvailable=function(){return A.setStartSliderState();};B.onMouseDown=function(){return A.focus();};B.startDrag=function(){A._slideStart();};B.onDrag=function(){A.fireEvents(true);};B.onMouseUp=function(){A.thumbMouseUp();};},onAvailable:function(){var A=YAHOO.util.Event;A.on(this.id,"keydown",this.handleKeyDown,this,true);A.on(this.id,"keypress",this.handleKeyPress,this,true);},handleKeyPress:function(C){if(this.enableKeys){var A=YAHOO.util.Event;var B=A.getCharCode(C);switch(B){case 37:case 38:case 39:case 40:case 36:case 35:A.preventDefault(C);break;default:}}},handleKeyDown:function(E){if(this.enableKeys){var G=YAHOO.util.Event;var C=G.getCharCode(E),I=this.thumb;var B=this.getXValue(),F=this.getYValue();var H=false;var D=true;switch(C){case 37:B-=this.keyIncrement;break;case 38:F-=this.keyIncrement;break;case 39:B+=this.keyIncrement;break;case 40:F+=this.keyIncrement;break;case 36:B=I.leftConstraint;F=I.topConstraint;break;case 35:B=I.rightConstraint;F=I.bottomConstraint;break;default:D=false;}if(D){if(I._isRegion){this.setRegionValue(B,F,true);}else{var A=(I._isHoriz)?B:F;this.setValue(A,true);}G.stopEvent(E);}}},setStartSliderState:function(){this.setThumbCenterPoint();this.baselinePos=YAHOO.util.Dom.getXY(this.getEl());this.thumb.startOffset=this.thumb.getOffsetFromParent(this.baselinePos);if(this.thumb._isRegion){if(this.deferredSetRegionValue){this.setRegionValue.apply(this,this.deferredSetRegionValue,true);this.deferredSetRegionValue=null;}else{this.setRegionValue(0,0,true,true,true);}}else{if(this.deferredSetValue){this.setValue.apply(this,this.deferredSetValue,true);this.deferredSetValue=null;}else{this.setValue(0,true,true,true);}}},setThumbCenterPoint:function(){var A=this.thumb.getEl();if(A){this.thumbCenterPoint={x:parseInt(A.offsetWidth/2,10),y:parseInt(A.offsetHeight/2,10)};}},lock:function(){this.thumb.lock();this.locked=true;},unlock:function(){this.thumb.unlock();this.locked=false;},thumbMouseUp:function(){if(!this.isLocked()&&!this.moveComplete){this.endMove();}},onMouseUp:function(){if(!this.isLocked()&&!this.moveComplete){this.endMove();}},getThumb:function(){return this.thumb;},focus:function(){this.valueChangeSource=this.SOURCE_UI_EVENT;var A=this.getEl();if(A.focus){try{A.focus();}catch(B){}}this.verifyOffset();if(this.isLocked()){return false;}else{this._slideStart();return true;}},onChange:function(A,B){},onSlideStart:function(){},onSlideEnd:function(){},getValue:function(){return this.thumb.getValue();},getXValue:function(){return this.thumb.getXValue();},getYValue:function(){return this.thumb.getYValue();},handleThumbChange:function(){},setValue:function(G,C,D,A){this._silent=A;this.valueChangeSource=this.SOURCE_SET_VALUE;if(!this.thumb.available){this.deferredSetValue=arguments;return false;}if(this.isLocked()&&!D){return false;}if(isNaN(G)){return false;}var B=this.thumb;B.lastOffset=[G,G];var F,E;this.verifyOffset(true);if(B._isRegion){return false;}else{if(B._isHoriz){this._slideStart();F=B.initPageX+G+this.thumbCenterPoint.x;this.moveThumb(F,B.initPageY,C);}else{this._slideStart();E=B.initPageY+G+this.thumbCenterPoint.y;this.moveThumb(B.initPageX,E,C);}}return true;},setRegionValue:function(H,A,D,E,B){this._silent=B;this.valueChangeSource=this.SOURCE_SET_VALUE;if(!this.thumb.available){this.deferredSetRegionValue=arguments;return false;}if(this.isLocked()&&!E){return false;}if(isNaN(H)){return false;}var C=this.thumb;C.lastOffset=[H,A];this.verifyOffset(true);if(C._isRegion){this._slideStart();var G=C.initPageX+H+this.thumbCenterPoint.x;var F=C.initPageY+A+this.thumbCenterPoint.y;this.moveThumb(G,F,D);return true;}return false;},verifyOffset:function(B){var A=YAHOO.util.Dom.getXY(this.getEl());if(A){if(A[0]!=this.baselinePos[0]||A[1]!=this.baselinePos[1]){this.thumb.resetConstraints();this.baselinePos=A;return false;}}return true;},moveThumb:function(G,F,E,D){var H=this.thumb;var I=this;if(!H.available){return ;}H.setDelta(this.thumbCenterPoint.x,this.thumbCenterPoint.y);var B=H.getTargetCoord(G,F);var C=[B.x,B.y];this._slideStart();if(this.animate&&YAHOO.widget.Slider.ANIM_AVAIL&&H._graduated&&!E){this.lock();this.curCoord=YAHOO.util.Dom.getXY(this.thumb.getEl());setTimeout(function(){I.moveOneTick(C);},this.tickPause);}else{if(this.animate&&YAHOO.widget.Slider.ANIM_AVAIL&&!E){this.lock();var A=new YAHOO.util.Motion(H.id,{points:{to:C}},this.animationDuration,YAHOO.util.Easing.easeOut);A.onComplete.subscribe(function(){I.endMove();});A.animate();}else{H.setDragElPos(G,F);if(!D){this.endMove();}}}},_slideStart:function(){if(!this._sliding){if(!this._silent){this.onSlideStart();
-this.fireEvent("slideStart");}this._sliding=true;}},_slideEnd:function(){if(this._sliding&&this.moveComplete){if(!this._silent){this.onSlideEnd();this.fireEvent("slideEnd");}this._sliding=false;this._silent=false;this.moveComplete=false;}},moveOneTick:function(B){var E=this.thumb,D;var F=null;if(E._isRegion){F=this._getNextX(this.curCoord,B);var A=(F)?F[0]:this.curCoord[0];F=this._getNextY([A,this.curCoord[1]],B);}else{if(E._isHoriz){F=this._getNextX(this.curCoord,B);}else{F=this._getNextY(this.curCoord,B);}}if(F){this.curCoord=F;this.thumb.alignElWithMouse(E.getEl(),F[0],F[1]);if(!(F[0]==B[0]&&F[1]==B[1])){var C=this;setTimeout(function(){C.moveOneTick(B);},this.tickPause);}else{this.endMove();}}else{this.endMove();}},_getNextX:function(A,B){var D=this.thumb;var F;var C=[];var E=null;if(A[0]>B[0]){F=D.tickSize-this.thumbCenterPoint.x;C=D.getTargetCoord(A[0]-F,A[1]);E=[C.x,C.y];}else{if(A[0]<B[0]){F=D.tickSize+this.thumbCenterPoint.x;C=D.getTargetCoord(A[0]+F,A[1]);E=[C.x,C.y];}else{}}return E;},_getNextY:function(A,B){var D=this.thumb;var F;var C=[];var E=null;if(A[1]>B[1]){F=D.tickSize-this.thumbCenterPoint.y;C=D.getTargetCoord(A[0],A[1]-F);E=[C.x,C.y];}else{if(A[1]<B[1]){F=D.tickSize+this.thumbCenterPoint.y;C=D.getTargetCoord(A[0],A[1]+F);E=[C.x,C.y];}else{}}return E;},b4MouseDown:function(A){this.thumb.autoOffset();this.thumb.resetConstraints();},onMouseDown:function(B){if(!this.isLocked()&&this.backgroundEnabled){var A=YAHOO.util.Event.getPageX(B);var C=YAHOO.util.Event.getPageY(B);this.focus();this.moveThumb(A,C);}},onDrag:function(B){if(!this.isLocked()){var A=YAHOO.util.Event.getPageX(B);var C=YAHOO.util.Event.getPageY(B);this.moveThumb(A,C,true,true);this.fireEvents();}},endMove:function(){this.unlock();this.moveComplete=true;this.fireEvents();},fireEvents:function(C){var B=this.thumb;if(!C){B.cachePosition();}if(!this.isLocked()){if(B._isRegion){var E=B.getXValue();var D=B.getYValue();if(E!=this.previousX||D!=this.previousY){if(!this._silent){this.onChange(E,D);this.fireEvent("change",{x:E,y:D});}}this.previousX=E;this.previousY=D;}else{var A=B.getValue();if(A!=this.previousVal){if(!this._silent){this.onChange(A);this.fireEvent("change",A);}}this.previousVal=A;}this._slideEnd();}},toString:function(){return("Slider ("+this.type+") "+this.id);}});YAHOO.augment(YAHOO.widget.Slider,YAHOO.util.EventProvider);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());var 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;if(!this.deltaOffset){var I=YAHOO.util.Dom.getXY(A);var F=H||YAHOO.util.Dom.getXY(this.parentElId);E=[(I[0]-F[0]),(I[1]-F[1])];var B=parseInt(YAHOO.util.Dom.getStyle(A,"left"),10);var K=parseInt(YAHOO.util.Dom.getStyle(A,"top"),10);var D=B-E[0];var C=K-E[1];if(isNaN(D)||isNaN(C)){}else{this.deltaOffset=[D,C];}}else{var J=parseInt(YAHOO.util.Dom.getStyle(A,"left"),10);var 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){}});YAHOO.widget.DualSlider=function(E,B,D,A){var C=this,G=YAHOO.lang;this.minSlider=E;this.maxSlider=B;this.activeSlider=E;this.isHoriz=E.thumb._isHoriz;A=YAHOO.lang.isArray(A)?A:[0,D];A[0]=Math.min(Math.max(parseInt(A[0],10)|0,0),D);A[1]=Math.max(Math.min(parseInt(A[1],10)|0,D),0);if(A[0]>A[1]){A.splice(0,2,A[1],A[0]);}var F={min:false,max:false};this.minSlider.thumb.onAvailable=function(){E.setStartSliderState();F.min=true;if(F.max){E.setValue(A[0],true,true,true);B.setValue(A[1],true,true,true);C.updateValue(true);C.fireEvent("ready",C);}};this.maxSlider.thumb.onAvailable=function(){B.setStartSliderState();F.max=true;if(F.min){E.setValue(A[0],true,true,true);B.setValue(A[1],true,true,true);C.updateValue(true);C.fireEvent("ready",C);}};E.onMouseDown=function(H){C._handleMouseDown(H);};B.onMouseDown=function(H){YAHOO.util.Event.stopEvent(H);};E.onDrag=B.onDrag=function(H){C._handleDrag(H);};E.subscribe("change",this._handleMinChange,E,this);E.subscribe("slideStart",this._handleSlideStart,E,this);E.subscribe("slideEnd",this._handleSlideEnd,E,this);B.subscribe("change",this._handleMaxChange,B,this);B.subscribe("slideStart",this._handleSlideStart,B,this);B.subscribe("slideEnd",this._handleSlideEnd,B,this);this.createEvent("ready",this);this.createEvent("change",this);this.createEvent("slideStart",this);this.createEvent("slideEnd",this);};YAHOO.widget.DualSlider.prototype={minVal:-1,maxVal:-1,minRange:0,_handleSlideStart:function(B,A){this.fireEvent("slideStart",A);},_handleSlideEnd:function(B,A){this.fireEvent("slideEnd",A);},_handleDrag:function(A){YAHOO.widget.Slider.prototype.onDrag.call(this.activeSlider,A);
-},_handleMinChange:function(){this.activeSlider=this.minSlider;this.updateValue();},_handleMaxChange:function(){this.activeSlider=this.maxSlider;this.updateValue();},setValues:function(E,H,F,B,G){var C=this.minSlider,J=this.maxSlider,A=C.thumb,I=J.thumb,K=this,D={min:false,max:false};if(A._isHoriz){A.setXConstraint(A.leftConstraint,I.rightConstraint,A.tickSize);I.setXConstraint(A.leftConstraint,I.rightConstraint,I.tickSize);}else{A.setYConstraint(A.topConstraint,I.bottomConstraint,A.tickSize);I.setYConstraint(A.topConstraint,I.bottomConstraint,I.tickSize);}this._oneTimeCallback(C,"slideEnd",function(){D.min=true;if(D.max){K.updateValue(G);setTimeout(function(){K._cleanEvent(C,"slideEnd");K._cleanEvent(J,"slideEnd");},0);}});this._oneTimeCallback(J,"slideEnd",function(){D.max=true;if(D.min){K.updateValue(G);setTimeout(function(){K._cleanEvent(C,"slideEnd");K._cleanEvent(J,"slideEnd");},0);}});C.setValue(E,F,B,G);J.setValue(H,F,B,G);},setMinValue:function(C,E,F,B){var D=this.minSlider;this.activeSlider=D;var A=this;this._oneTimeCallback(D,"slideEnd",function(){A.updateValue(B);setTimeout(function(){A._cleanEvent(D,"slideEnd");},0);});D.setValue(C,E,F,B);},setMaxValue:function(A,E,F,C){var D=this.maxSlider;this.activeSlider=D;var B=this;this._oneTimeCallback(D,"slideEnd",function(){B.updateValue(C);setTimeout(function(){B._cleanEvent(D,"slideEnd");},0);});D.setValue(A,E,F,C);},updateValue:function(F){var B=this.minSlider.getValue(),G=this.maxSlider.getValue(),C=false;if(B!=this.minVal||G!=this.maxVal){C=true;var A=this.minSlider.thumb;var I=this.maxSlider.thumb;var D=this.minSlider.thumbCenterPoint.x+this.maxSlider.thumbCenterPoint.x;var E=Math.max(G-D-this.minRange,0);var H=Math.min(-B-D-this.minRange,0);if(this.isHoriz){E=Math.min(E,I.rightConstraint);A.setXConstraint(A.leftConstraint,E,A.tickSize);I.setXConstraint(H,I.rightConstraint,I.tickSize);}else{E=Math.min(E,I.bottomConstraint);A.setYConstraint(A.leftConstraint,E,A.tickSize);I.setYConstraint(H,I.bottomConstraint,I.tickSize);}}this.minVal=B;this.maxVal=G;if(C&&!F){this.fireEvent("change",this);}},selectActiveSlider:function(C){var B=this.minSlider.getValue(),A=this.maxSlider.getValue(),D;if(this.isHoriz){D=YAHOO.util.Event.getPageX(C)-this.minSlider.initPageX-this.minSlider.thumbCenterPoint.x;}else{D=YAHOO.util.Event.getPageY(C)-this.minSlider.initPageY-this.minSlider.thumbCenterPoint.y;}if(D<B){this.activeSlider=this.minSlider;}else{if(D>A){this.activeSlider=this.maxSlider;}else{this.activeSlider=D*2>A+B?this.maxSlider:this.minSlider;}}},_handleMouseDown:function(A){this.selectActiveSlider(A);YAHOO.widget.Slider.prototype.onMouseDown.call(this.activeSlider,A);},_oneTimeCallback:function(C,A,B){C.subscribe(A,function(){C.unsubscribe(A,arguments.callee);B.apply({},[].slice.apply(arguments));});},_cleanEvent:function(H,B){if(H.__yui_events&&H.events[B]){var G,F,A;for(F=H.__yui_events.length;F>=0;--F){if(H.__yui_events[F].type===B){G=H.__yui_events[F];break;}}if(G){var E=G.subscribers,C=[],D=0;for(F=0,A=E.length;F<A;++F){if(E[F]){C[D++]=E[F];}}G.subscribers=C;}}}};YAHOO.augment(YAHOO.widget.DualSlider,YAHOO.util.EventProvider);YAHOO.widget.Slider.getHorizDualSlider=function(F,C,K,G,H,B){var A,J;var D=YAHOO.widget,E=D.Slider,I=D.SliderThumb;A=new I(C,F,0,G,0,0,H);J=new I(K,F,0,G,0,0,H);return new D.DualSlider(new E(F,F,A,"horiz"),new E(F,F,J,"horiz"),G,B);};YAHOO.widget.Slider.getVertDualSlider=function(F,C,K,G,H,B){var A,J;var D=YAHOO.widget,E=D.Slider,I=D.SliderThumb;A=new I(C,F,0,0,0,G,H);J=new I(K,F,0,0,0,G,H);return new D.DualSlider(new E(F,F,A,"vert"),new E(F,F,J,"vert"),G,B);};YAHOO.register("slider",YAHOO.widget.Slider,{version:"2.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/slider/slider.js b/lib/yui/slider/slider.js
deleted file mode 100755 (executable)
index 301d5ae..0000000
+++ /dev/null
@@ -1,1898 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/**
- * 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
- */
-
-/**
- * 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)
- */
-YAHOO.widget.Slider = function(sElementId, sGroup, oThumb, sType) {
-
-    YAHOO.widget.Slider.ANIM_AVAIL = 
-        (!YAHOO.lang.isUndefined(YAHOO.util.Anim));
-
-    if (sElementId) {
-        this.init(sElementId, sGroup, true);
-        this.initSlider(sType);
-        this.initThumb(oThumb);
-    }
-};
-
-/**
- * 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
- */
-YAHOO.widget.Slider.getHorizSlider = 
-    function (sBGElId, sHandleElId, iLeft, iRight, iTickSize) {
-        return new YAHOO.widget.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
- */
-YAHOO.widget.Slider.getVertSlider = 
-    function (sBGElId, sHandleElId, iUp, iDown, iTickSize) {
-        return new YAHOO.widget.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
- */
-YAHOO.widget.Slider.getSliderRegion = 
-    function (sBGElId, sHandleElId, iLeft, iRight, iUp, iDown, iTickSize) {
-        return new YAHOO.widget.Slider(sBGElId, sBGElId, 
-            new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, iLeft, iRight, 
-                               iUp, iDown, iTickSize), "region");
-};
-
-/**
- * By default, animation is available if the animation utility is detected.
- * @property YAHOO.widget.Slider.ANIM_AVAIL
- * @static
- * @type boolean
- */
-YAHOO.widget.Slider.ANIM_AVAIL = false;
-
-YAHOO.extend(YAHOO.widget.Slider, YAHOO.util.DragDrop, {
-
-    /**
-     * 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 = YAHOO.widget.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
-         */
-        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
-         */
-        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;
-
-        // add handler for the handle onchange event
-        //t.onChange = function() { 
-            //self.handleThumbChange(); 
-        //};
-
-        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 () { 
-                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() {
-        var Event = YAHOO.util.Event;
-        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 Event = YAHOO.util.Event;
-            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 Event = YAHOO.util.Event;
-
-            var kc = Event.getCharCode(e), t=this.thumb;
-            var h=this.getXValue(),v=this.getYValue();
-
-            var horiz = false;
-            var 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(h, v, true);
-                } else {
-                    var newVal = (t._isHoriz) ? h : v;
-                    this.setValue(newVal, 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 = YAHOO.util.Dom.getXY(this.getEl());
-
-        this.thumb.startOffset = this.thumb.getOffsetFromParent(this.baselinePos);
-
-        if (this.thumb._isRegion) {
-            if (this.deferredSetRegionValue) {
-                this.setRegionValue.apply(this, this.deferredSetRegionValue, true);
-                this.deferredSetRegionValue = null;
-            } else {
-                this.setRegionValue(0, 0, true, true, true);
-            }
-        } else {
-            if (this.deferredSetValue) {
-                this.setValue.apply(this, this.deferredSetValue, true);
-                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() {
-        if (!this.isLocked() && !this.moveComplete) {
-            this.endMove();
-        }
-
-    },
-
-    onMouseUp: function() {
-        if (!this.isLocked() && !this.moveComplete) {
-            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 = this.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();
-
-        if (this.isLocked()) {
-            return false;
-        } else {
-            this._slideStart();
-            return true;
-        }
-    },
-
-    /**
-     * 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();
-    },
-
-    /**
-     * Internal handler for the slider thumb's onChange event
-     * @method handleThumbChange
-     * @private
-     */
-    handleThumbChange: function () { 
-        /*
-        var t = this.thumb;
-        if (t._isRegion) {
-
-            if (!this._silent) {
-                t.onChange(t.getXValue(), t.getYValue());
-                this.fireEvent("change", { x: t.getXValue(), y: t.getYValue() } );
-            }
-        } else {
-            if (!this._silent) {
-                t.onChange(t.getValue());
-                this.fireEvent("change", t.getValue());
-            }
-        }
-        */
-
-    },
-
-    /**
-     * 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(newOffset, skipAnim, force, silent) {
-
-        this._silent = silent;
-        this.valueChangeSource = this.SOURCE_SET_VALUE;
-
-        if (!this.thumb.available) {
-            this.deferredSetValue = arguments;
-            return false;
-        }
-
-        if (this.isLocked() && !force) {
-            return false;
-        }
-
-        if ( isNaN(newOffset) ) {
-            return false;
-        }
-
-        var t = this.thumb;
-        t.lastOffset = [newOffset, newOffset];
-        var newX, newY;
-        this.verifyOffset(true);
-        if (t._isRegion) {
-            return false;
-        } else if (t._isHoriz) {
-            this._slideStart();
-            // this.fireEvent("slideStart");
-            newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
-            this.moveThumb(newX, t.initPageY, skipAnim);
-        } else {
-            this._slideStart();
-            // this.fireEvent("slideStart");
-            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(newOffset, newOffset2, skipAnim, force, silent) {
-
-        this._silent = silent;
-
-        this.valueChangeSource = this.SOURCE_SET_VALUE;
-
-        if (!this.thumb.available) {
-            this.deferredSetRegionValue = arguments;
-            return false;
-        }
-
-        if (this.isLocked() && !force) {
-            return false;
-        }
-
-        if ( isNaN(newOffset) ) {
-            return false;
-        }
-
-        var t = this.thumb;
-        t.lastOffset = [newOffset, newOffset2];
-        this.verifyOffset(true);
-        if (t._isRegion) {
-            this._slideStart();
-            var newX = t.initPageX + newOffset + this.thumbCenterPoint.x;
-            var newY = t.initPageY + newOffset2 + this.thumbCenterPoint.y;
-            this.moveThumb(newX, newY, skipAnim);
-            return true;
-        }
-
-        return false;
-
-    },
-
-    /**
-     * Checks the background position element position.  If it has moved from the
-     * baseline position, the constraints for the thumb are reset
-     * @param checkPos {boolean} check the position instead of using cached value
-     * @method verifyOffset
-     * @return {boolean} True if the offset is the same as the baseline.
-     */
-    verifyOffset: function(checkPos) {
-
-        var newPos = YAHOO.util.Dom.getXY(this.getEl());
-        //var newPos = [this.initPageX, this.initPageY];
-
-        if (newPos) {
-
-
-            if (newPos[0] != this.baselinePos[0] || newPos[1] != this.baselinePos[1]) {
-                this.thumb.resetConstraints();
-                this.baselinePos = newPos;
-                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;
-        var self = this;
-
-        if (!t.available) {
-            return;
-        }
-
-
-        // this.verifyOffset();
-
-        t.setDelta(this.thumbCenterPoint.x, this.thumbCenterPoint.y);
-
-        var _p = t.getTargetCoord(x, y);
-        var p = [_p.x, _p.y];
-
-        this._slideStart();
-
-        if (this.animate && YAHOO.widget.Slider.ANIM_AVAIL && t._graduated && !skipAnim) {
-            // this.thumb._animating = true;
-            this.lock();
-
-            // cache the current thumb pos
-            this.curCoord = YAHOO.util.Dom.getXY(this.thumb.getEl());
-
-            setTimeout( function() { self.moveOneTick(p); }, this.tickPause );
-
-        } else if (this.animate && YAHOO.widget.Slider.ANIM_AVAIL && !skipAnim) {
-
-            // this.thumb._animating = true;
-            this.lock();
-
-            var oAnim = new YAHOO.util.Motion( 
-                    t.id, { points: { to: p } }, 
-                    this.animationDuration, 
-                    YAHOO.util.Easing.easeOut );
-
-            oAnim.onComplete.subscribe( function() { 
-                    
-                    self.endMove(); 
-                } );
-            oAnim.animate();
-        } else {
-            t.setDragElPos(x, y);
-            // this.fireEvents();
-            if (!midMove) {
-                this.endMove();
-            }
-        }
-    },
-
-    _slideStart: function() {
-        if (!this._sliding) {
-            if (!this._silent) {
-                this.onSlideStart();
-                this.fireEvent("slideStart");
-            }
-            this._sliding = true;
-        }
-    },
-
-    _slideEnd: function() {
-
-        if (this._sliding && this.moveComplete) {
-            if (!this._silent) {
-                this.onSlideEnd();
-                this.fireEvent("slideEnd");
-            }
-            this._sliding = false;
-            this._silent = false;
-            this.moveComplete = false;
-        }
-    },
-
-    /**
-     * 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, tmp;
-
-
-        // redundant call to getXY since we set the position most of time prior 
-        // to getting here.  Moved to this.curCoord
-        //var curCoord = YAHOO.util.Dom.getXY(t.getEl());
-
-        // alignElWithMouse caches position in lastPageX, lastPageY .. doesn't work
-        //var curCoord = [this.lastPageX, this.lastPageY];
-
-        // var thresh = Math.min(t.tickSize + (Math.floor(t.tickSize/2)), 10);
-        // var thresh = 10;
-        // var thresh = t.tickSize + (Math.floor(t.tickSize/2));
-
-        var nextCoord = null;
-
-        if (t._isRegion) {
-            nextCoord = this._getNextX(this.curCoord, finalCoord);
-            var tmpX = (nextCoord) ? nextCoord[0] : this.curCoord[0];
-            nextCoord = this._getNextY([tmpX, this.curCoord[1]], finalCoord);
-
-        } 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
-            // YAHOO.util.Dom.setXY(t.getEl(), nextCoord);
-
-            // var el = t.getEl();
-            // YAHOO.util.Dom.setStyle(el, "left", (nextCoord[0] + this.thumb.deltaSetXY[0]) + "px");
-            // YAHOO.util.Dom.setStyle(el, "top",  (nextCoord[1] + this.thumb.deltaSetXY[1]) + "px");
-
-            this.thumb.alignElWithMouse(t.getEl(), nextCoord[0], nextCoord[1]);
-            
-            // check if we are in the final position, if not make a recursive call
-            if (!(nextCoord[0] == finalCoord[0] && nextCoord[1] == finalCoord[1])) {
-                var self = this;
-                setTimeout(function() { self.moveOneTick(finalCoord); }, 
-                        this.tickPause);
-            } else {
-                this.endMove();
-            }
-        } else {
-            this.endMove();
-        }
-
-        //this.tickPause = Math.round(this.tickPause/2);
-    },
-
-    /**
-     * 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;
-        var thresh;
-        var tmp = [];
-        var 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;
-        var thresh;
-        var tmp = [];
-        var 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) {
-        this.thumb.autoOffset();
-        this.thumb.resetConstraints();
-    },
-
-
-    /**
-     * Handles the mousedown event for the slider background
-     * @method onMouseDown
-     * @private
-     */
-    onMouseDown: function(e) {
-        // this.resetConstraints(true);
-        // this.thumb.resetConstraints(true);
-
-        if (! this.isLocked() && this.backgroundEnabled) {
-            var x = YAHOO.util.Event.getPageX(e);
-            var y = YAHOO.util.Event.getPageY(e);
-
-            this.focus();
-            this.moveThumb(x, y);
-        }
-        
-    },
-
-    /**
-     * Handles the onDrag event for the slider background
-     * @method onDrag
-     * @private
-     */
-    onDrag: function(e) {
-        if (! this.isLocked()) {
-            var x = YAHOO.util.Event.getPageX(e);
-            var y = YAHOO.util.Event.getPageY(e);
-            this.moveThumb(x, y, true, true);
-            this.fireEvents();
-        }
-    },
-
-    /**
-     * Fired when the slider movement ends
-     * @method endMove
-     * @private
-     */
-    endMove: function () {
-        // this._animating = false;
-        this.unlock();
-        this.moveComplete = true;
-        this.fireEvents();
-    },
-
-    /**
-     * 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;
-
-        if (!thumbEvent) {
-            t.cachePosition();
-        }
-
-        if (! this.isLocked()) {
-            if (t._isRegion) {
-                var newX = t.getXValue();
-                var 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 {
-                var newVal = t.getValue();
-                if (newVal != this.previousVal) {
-                    if (!this._silent) {
-                        this.onChange( newVal );
-                        this.fireEvent("change", newVal);
-                    }
-                }
-                this.previousVal = newVal;
-            }
-
-            this._slideEnd();
-
-        }
-    },
-
-    /**
-     * Slider toString
-     * @method toString
-     * @return {string} string representation of the instance
-     */
-    toString: function () { 
-        return ("Slider (" + this.type +") " + this.id);
-    }
-
-});
-
-YAHOO.augment(YAHOO.widget.Slider, YAHOO.util.EventProvider);
-
-/**
- * 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) {
-        //this.init(id, sGroup);
-        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.removeInvalidHandleType("A");
-
-
-    /**
-     * 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());
-        var 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;
-
-        if (!this.deltaOffset) {
-
-            var myPos = YAHOO.util.Dom.getXY(el);
-            var ppos  = parentPos || YAHOO.util.Dom.getXY(this.parentElId);
-
-            newOffset = [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
-
-            var l = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
-            var t = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
-            var deltaX = l - newOffset[0];
-            var deltaY = t - newOffset[1];
-
-            if (isNaN(deltaX) || isNaN(deltaY)) {
-            } else {
-                this.deltaOffset = [deltaX, deltaY];
-            }
-
-        } else {
-            var newLeft = parseInt( YAHOO.util.Dom.getStyle(el, "left"), 10 );
-            var newTop  = parseInt( YAHOO.util.Dom.getStyle(el, "top" ), 10 );
-
-            newOffset  = [newLeft + this.deltaOffset[0], newTop + this.deltaOffset[1]];
-        }
-
-        return newOffset;
-
-        //return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ];
-    },
-
-    /**
-     * 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) {
-
-
-        //document these.  new for 0.12.1
-        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
- */
-YAHOO.widget.DualSlider = function(minSlider, maxSlider, range, initVals) {
-
-    var self = this,
-        lang = YAHOO.lang;
-
-    /**
-     * 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;
-
-    // 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]);
-    }
-
-    var ready = { min : false, max : false };
-
-    this.minSlider.thumb.onAvailable = function () {
-        minSlider.setStartSliderState();
-        ready.min = true;
-        if (ready.max) {
-            minSlider.setValue(initVals[0],true,true,true);
-            maxSlider.setValue(initVals[1],true,true,true);
-            self.updateValue(true);
-            self.fireEvent('ready',self);
-        }
-    };
-    this.maxSlider.thumb.onAvailable = function () {
-        maxSlider.setStartSliderState();
-        ready.max = true;
-        if (ready.min) {
-            minSlider.setValue(initVals[0],true,true,true);
-            maxSlider.setValue(initVals[1],true,true,true);
-            self.updateValue(true);
-            self.fireEvent('ready',self);
-        }
-    };
-
-    // dispatch mousedowns to the active slider
-    minSlider.onMouseDown = function(e) {
-        self._handleMouseDown(e);
-    };
-
-    // we can safely ignore a mousedown on one of the sliders since
-    // they share a background
-    maxSlider.onMouseDown = function(e) { 
-        YAHOO.util.Event.stopEvent(e); 
-    };
-
-    // Fix the drag behavior so that only the active slider
-    // follows the drag
-    minSlider.onDrag =
-    maxSlider.onDrag = function(e) {
-        self._handleDrag(e);
-    };
-
-    // 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);
-};
-
-YAHOO.widget.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) {
-        YAHOO.widget.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();
-    },
-
-    /**
-     * 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);
-            }
-        });
-
-        mins.setValue(min,skipAnim,force,silent);
-        maxs.setValue(max,skipAnim,force,silent);
-    },
-
-    /**
-     * 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;
-
-        this.activeSlider = mins;
-
-        // Use a one-time event callback to delay the updateValue call
-        // until after the slide operation is done
-        var 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, silent);
-    },
-
-    /**
-     * 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;
-
-        this.activeSlider = maxs;
-
-        // Use a one-time event callback to delay the updateValue call
-        // until after the slide operation is done
-        var self = this;
-        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, silent);
-    },
-
-    /**
-     * 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;
-
-        if (min != this.minVal || max != this.maxVal) {
-            changed = true;
-
-            var mint = this.minSlider.thumb;
-            var maxt = this.maxSlider.thumb;
-
-            var thumbInnerWidth = this.minSlider.thumbCenterPoint.x +
-                                  this.maxSlider.thumbCenterPoint.x;
-
-            // Establish barriers within the respective other thumb's edge, less
-            // the minRange.  Limit to the Slider's range in the case of
-            // negative minRanges.
-            var minConstraint = Math.max(max-thumbInnerWidth-this.minRange,0);
-            var 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.getValue(),
-            max = this.maxSlider.getValue(),
-            d;
-
-        if (this.isHoriz) {
-            d = YAHOO.util.Event.getPageX(e) - this.minSlider.initPageX -
-                this.minSlider.thumbCenterPoint.x;
-        } else {
-            d = YAHOO.util.Event.getPageY(e) - this.minSlider.initPageY -
-                this.minSlider.thumbCenterPoint.y;
-        }
-                
-        // Below the minSlider thumb.  Move the minSlider thumb
-        if (d < min) {
-            this.activeSlider = this.minSlider;
-        // Above the maxSlider thumb.  Move the maxSlider thumb
-        } else if (d > max) {
-            this.activeSlider = this.maxSlider;
-        // Split the difference between thumbs
-        } else {
-            this.activeSlider = d*2 > max+min ? this.maxSlider : this.minSlider;
-        }
-    },
-
-    /**
-     * Overrides the onMouseDown for both slider, only moving the active slider
-     * @method handleMouseDown
-     * @private
-     */
-    _handleMouseDown: function(e) {
-        this.selectActiveSlider(e);
-        YAHOO.widget.Slider.prototype.onMouseDown.call(this.activeSlider, e);
-    },
-
-    /**
-     * 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) {
-        o.subscribe(evt,function () {
-            // Unsubscribe myself
-            o.unsubscribe(evt,arguments.callee);
-            // Pass the event handler arguments to the one time callback
-            fn.apply({},[].slice.apply(arguments));
-        });
-    },
-
-    /**
-     * 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) {
-        if (o.__yui_events && o.events[evt]) {
-            var ce, i, len;
-            for (i = o.__yui_events.length; i >= 0; --i) {
-                if (o.__yui_events[i].type === evt) {
-                    ce = o.__yui_events[i];
-                    break;
-                }
-            }
-            if (ce) {
-                var 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.augment(YAHOO.widget.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
- */
-YAHOO.widget.Slider.getHorizDualSlider = 
-    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
-        var mint, maxt;
-        var YW = YAHOO.widget, Slider = YW.Slider, Thumb = YW.SliderThumb;
-
-        mint = new Thumb(minthumb, bg, 0, range, 0, 0, iTickSize);
-        maxt = new Thumb(maxthumb, bg, 0, range, 0, 0, iTickSize);
-
-        return new YW.DualSlider(new Slider(bg, bg, mint, "horiz"), new 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
- */
-YAHOO.widget.Slider.getVertDualSlider = 
-    function (bg, minthumb, maxthumb, range, iTickSize, initVals) {
-        var mint, maxt;
-        var YW = YAHOO.widget, Slider = YW.Slider, Thumb = YW.SliderThumb;
-
-        mint = new Thumb(minthumb, bg, 0, 0, 0, range, iTickSize);
-        maxt = new Thumb(maxthumb, bg, 0, 0, 0, range, iTickSize);
-
-        return new YW.DualSlider(new Slider(bg, bg, mint, "vert"), new Slider(bg, bg, maxt, "vert"), range, initVals);
-};
-YAHOO.register("slider", YAHOO.widget.Slider, {version: "2.5.0", build: "895"});
diff --git a/lib/yui/treeview/assets/skins/sam/treeview-loading.gif b/lib/yui/treeview/assets/skins/sam/treeview-loading.gif
deleted file mode 100755 (executable)
index 0bbf3bc..0000000
Binary files a/lib/yui/treeview/assets/skins/sam/treeview-loading.gif and /dev/null differ
diff --git a/lib/yui/treeview/assets/skins/sam/treeview-skin.css b/lib/yui/treeview/assets/skins/sam/treeview-skin.css
deleted file mode 100755 (executable)
index 854c39c..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/* first or middle sibling, no children */
-.ygtvtn {
-       width:18px; height:22px; 
-       background: url(treeview-sprite.gif) 0 -5600px no-repeat; 
-}
-
-/* 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 {
-       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 {
-       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; 
-}
-
-/* Last sibling, collapsable */
-.ygtvlm {
-       width:18px; height:22px; 
-       cursor:pointer ;
-       background: url(treeview-sprite.gif) 0 0px no-repeat; 
-}
-
-/* Last sibling, collapsable, hover */
-.ygtvlmh {
-       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 { 
-       width:18px; height:22px; cursor:pointer ;
-       background: url(treeview-sprite.gif) 0 -3200px no-repeat; 
-}
-
-/* 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 */
-.ygtvitem { }  
-
-/* the style of the div around each node's collection of children */
-.ygtvchildren {  
-    *zoom: 1;
-}  
-
-/* the style of the text label in ygTextNode */
-.ygtvlabel, .ygtvlabel:link, .ygtvlabel:visited, .ygtvlabel:hover { 
-       margin-left:2px;
-       text-decoration: none;
-    background-color: white;
-}
-
-.ygtvspacer { height: 22px; width: 12px; }
diff --git a/lib/yui/treeview/assets/skins/sam/treeview-sprite.gif b/lib/yui/treeview/assets/skins/sam/treeview-sprite.gif
deleted file mode 100755 (executable)
index a04eff6..0000000
Binary files a/lib/yui/treeview/assets/skins/sam/treeview-sprite.gif and /dev/null differ
diff --git a/lib/yui/treeview/assets/skins/sam/treeview.css b/lib/yui/treeview/assets/skins/sam/treeview.css
deleted file mode 100755 (executable)
index 447c4a5..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-.ygtvtn{width:18px;height:22px;background:url(treeview-sprite.gif) 0 -5600px no-repeat;}.ygtvtm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -4000px no-repeat;}.ygtvtmh{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{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;}.ygtvlm{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 0px no-repeat;}.ygtvlmh{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{width:18px;height:22px;cursor:pointer;background:url(treeview-sprite.gif) 0 -3200px no-repeat;}.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;}.ygtvitem{}.ygtvchildren{*zoom:1;}.ygtvlabel,.ygtvlabel:link,.ygtvlabel:visited,.ygtvlabel:hover{margin-left:2px;text-decoration:none;background-color:white;}.ygtvspacer{height:22px;width:12px;}
diff --git a/lib/yui/treeview/assets/sprite-menu.gif b/lib/yui/treeview/assets/sprite-menu.gif
deleted file mode 100644 (file)
index 261ed91..0000000
Binary files a/lib/yui/treeview/assets/sprite-menu.gif and /dev/null differ
diff --git a/lib/yui/treeview/assets/sprite-orig.gif b/lib/yui/treeview/assets/sprite-orig.gif
deleted file mode 100755 (executable)
index fdf6fcf..0000000
Binary files a/lib/yui/treeview/assets/sprite-orig.gif and /dev/null differ
diff --git a/lib/yui/treeview/assets/treeview-core.css b/lib/yui/treeview/assets/treeview-core.css
deleted file mode 100755 (executable)
index a6742cc..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
diff --git a/lib/yui/treeview/assets/treeview-loading.gif b/lib/yui/treeview/assets/treeview-loading.gif
deleted file mode 100755 (executable)
index 0bbf3bc..0000000
Binary files a/lib/yui/treeview/assets/treeview-loading.gif and /dev/null differ
diff --git a/lib/yui/treeview/assets/treeview-menu.css b/lib/yui/treeview/assets/treeview-menu.css
deleted file mode 100644 (file)
index 96e597d..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/* first or middle sibling, no children */
-.ygtvtn {
-       width:1em; height:20px; background:none
-}
-
-/* first or middle sibling, collapsable */
-.ygtvtm {
-       width:1em; height:20px; 
-       cursor:pointer ;
-       background: url(sprite-menu.gif) -8px 2px no-repeat; 
-}
-
-/* first or middle sibling, collapsable, hover */
-.ygtvtmh {
-       width:1em; height:20px; 
-       cursor:pointer ;
-       background: url(sprite-menu.gif) -8px -77px no-repeat; 
-}
-
-/* first or middle sibling, expandable */
-.ygtvtp {
-       width:1em; height:20px; 
-       cursor:pointer ;
-       background: url(sprite-menu.gif) -8px -315px no-repeat; 
-}
-
-/* first or middle sibling, expandable, hover */
-.ygtvtph {
-       width:1em; height:20px; 
-       cursor:pointer ;
-       background: url(sprite-menu.gif) -8px -395px no-repeat; 
-}
-
-/* last sibling, no children */
-.ygtvln {
-       width:1em; height:20px; background:none
-}
-
-/* Last sibling, collapsable */
-.ygtvlm {
-       width:1em; height:20px; 
-       cursor:pointer ;
-       background: url(sprite-menu.gif) -8px 2px no-repeat; 
-}
-
-/* Last sibling, collapsable, hover */
-.ygtvlmh {
-       width:1em; height:20px; 
-       cursor:pointer ;
-       background: url(sprite-menu.gif) -8px -77px no-repeat; 
-}
-
-/* Last sibling, expandable */
-.ygtvlp { 
-       width:1em; height:20px; 
-       cursor:pointer ;
-       background: url(sprite-menu.gif) -8px -315px no-repeat; 
-}
-
-/* Last sibling, expandable, hover */
-.ygtvlph { 
-       width:1em; height:20px; cursor:pointer ;
-       background: url(sprite-menu.gif) -8px -395px no-repeat; 
-}
-
-/* Loading icon */
-.ygtvloading { 
-       width:1em; height:20px; 
-       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:1em; height:20px; background:none}
-
-.ygtvblankdepthcell { width:1em; height:20px; }
-
-/* the style of the div around each node */
-.ygtvitem { border: 0px solid grey; }  
-
-/* the style of the div around each node's collection of children */
-.ygtvchildren {  }  
-* html .ygtvchildren { height:2%; }  
-
-.ygtvitem  table{
-    margin-bottom:0;
-}
-.ygtvitem  td {
-    border:none;padding:0;
-} 
-
-/* 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 */
-}
-
-.ygtvspacer { height: 20px; width: 12px; width: 1em; }
diff --git a/lib/yui/treeview/assets/treeview.css b/lib/yui/treeview/assets/treeview.css
deleted file mode 100755 (executable)
index 9463550..0000000
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-/* first or middle sibling, no children */
-
-.ygtvtn {
-       width:18px; height:22px; 
-       background: url(sprite-orig.gif) 0 -5600px no-repeat; 
-}
-
-/* first or middle sibling, collapsable */
-.ygtvtm {
-       width:18px; height:22px; 
-       cursor:pointer ;
-       background: url(sprite-orig.gif) 0 -4000px no-repeat; 
-}
-
-/* first or middle sibling, collapsable, hover */
-.ygtvtmh {
-       width:18px; height:22px; 
-       cursor:pointer ;
-       background: url(sprite-orig.gif) 0 -4800px no-repeat; 
-}
-
-/* first or middle sibling, expandable */
-.ygtvtp {
-       width:18px; height:22px; 
-       cursor:pointer ;
-       background: url(sprite-orig.gif) 0 -6400px no-repeat; 
-}
-
-/* first or middle sibling, expandable, hover */
-.ygtvtph {
-       width:18px; height:22px; 
-       cursor:pointer ;
-       background: url(sprite-orig.gif) 0 -7200px no-repeat; 
-}
-
-/* last sibling, no children */
-.ygtvln {
-       width:18px; height:22px; 
-       background: url(sprite-orig.gif) 0 -1600px no-repeat; 
-}
-
-/* Last sibling, collapsable */
-.ygtvlm {
-       width:18px; height:22px; 
-       cursor:pointer ;
-       background: url(sprite-orig.gif) 0 0px no-repeat; 
-}
-
-/* Last sibling, collapsable, hover */
-.ygtvlmh {
-       width:18px; height:22px; 
-       cursor:pointer ;
-       background: url(sprite-orig.gif) 0 -800px no-repeat; 
-}
-
-/* Last sibling, expandable */
-.ygtvlp { 
-       width:18px; height:22px; 
-       cursor:pointer ;
-       background: url(sprite-orig.gif) 0 -2400px no-repeat; 
-}
-
-/* Last sibling, expandable, hover */
-.ygtvlph { 
-       width:18px; height:22px; cursor:pointer ;
-       background: url(sprite-orig.gif) 0 -3200px no-repeat; 
-}
-
-/* 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(sprite-orig.gif) 0 -8000px no-repeat; 
-}
-
-.ygtvblankdepthcell { width:18px; height:22px; }
-
-/* the style of the div around each node */
-.ygtvitem { }  
-
-
-.ygtvitem  table{
-    margin-bottom:0;
-}
-.ygtvitem  td {
-    border:none;padding:0;
-} 
-
-/* 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 */
-}
-
-.ygtvspacer { height: 22px; width: 12px; }
diff --git a/lib/yui/yuitest/README b/lib/yui/yuitest/README
deleted file mode 100755 (executable)
index 19e8d09..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-YUI Library - YUITest - Release Notes
-
-2.3.0
-
-  * Beta release
-
-2.3.1
-
-  * No changes
-
-2.4.0
-
-  * Changed test running from synchronous to asynchronous.
-  * Added wait() and resume() methods to TestRunner to allow testing of asynchronous features.
-  
-2.50
-  * Updated test results format to include ignored tests, result types, and names.
-  * Introduced test result formats in JSON and XML.
-  * Introduced TestReporter object.
-  * Removed beta tag.
\ No newline at end of file
diff --git a/lib/yui/yuitest/yuitest-beta-debug.js b/lib/yui/yuitest/yuitest-beta-debug.js
deleted file mode 100755 (executable)
index ad11484..0000000
+++ /dev/null
@@ -1,3268 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-
-/**
- * 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*/ = YAHOO.util.Dom.generateId(null, "testCase");
-    }
-
-};
-
-
-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*/{
-        throw new YAHOO.tool.TestCase.Wait(segment, delay);
-    },
-
-    //-------------------------------------------------------------------------
-    // 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
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-/**
- * Runs test suites and test cases, providing events to allowing for the
- * interpretation of test results.
- * @namespace YAHOO.tool
- * @class TestRunner
- * @static
- */
-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;
-        }       
-    };
-
-    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
-         */
-        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
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         */
-        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
-         */
-        _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.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;
-            
-            //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"){
-                                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();
-            
-            //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 = {
-
-    //-------------------------------------------------------------------------
-    // 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(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(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(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(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(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(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(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(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(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(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(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(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} 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 isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(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(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(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(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(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(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(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(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 (expectedType /*:String*/, actualValue /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actualValue != expectedType){
-            throw new YAHOO.util.ComparisonFailure(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, Error, {
-
-    /**
-     * 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();
-    },
-    
-    /**
-     * Returns a primitive value version of the error. Same as toString().
-     * @method valueOf
-     * @return {String} A primitive value version of the error.
-     */
-    valueOf : function () /*:String*/ {
-        return this.toString();
-    }
-
-});
-
-/**
- * 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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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";
-    
-};
-
-//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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value (" + needle + ") not found in array.");
-        }
-    },
-
-    /**
-     * 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);
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value not found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "No match found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-        
-    /**
-     * 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;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(message || "Value doesn't exist in array.");        
-    },
-        
-    /**
-     * 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areEqual(expected[i], actual[i], 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(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){
-            YAHOO.util.Assert.fail(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){
-            YAHOO.util.Assert.fail(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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areSame(expected[i], actual[i], 
-                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*/ {
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(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*/ {
-        
-        //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++){
-            YAHOO.util.Assert.isNotUndefined(actual[properties[i]], 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 (YAHOO.lang.isUndefined(object[propertyName])){
-            YAHOO.util.Assert.fail(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)){
-            YAHOO.util.Assert.fail(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 areEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getFullYear(), actual.getFullYear(), message || "Years should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMonth(), actual.getMonth(), message || "Months should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getDate(), actual.getDate(), 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 areEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getHours(), actual.getHours(), message || "Hours should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMinutes(), actual.getMinutes(), message || "Minutes should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getSeconds(), actual.getSeconds(), message || "Seconds should be equal.");
-        } else {
-            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    }
-    
-};
-
-YAHOO.namespace("util");
-
-/**
- * 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.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;
-        
-        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.ownerWindow;
-            }
-            
-            //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",
-            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 (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,
-
-    /**
-     * 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 = (new Date()).toLocaleString();
-
-        //add fields to the form
-        for (var prop in this._fields){
-            if (YAHOO.lang.hasOwnProperty(this._fields, prop) && typeof this._fields[prop] != "function"){
-                input = document.createElement("input");
-                input.type = "hidden";
-                input.name = prop;
-                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.5.0", build: "895"});
diff --git a/lib/yui/yuitest/yuitest-beta-min.js b/lib/yui/yuitest/yuitest-beta-min.js
deleted file mode 100755 (executable)
index c916cc7..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");YAHOO.tool.TestCase=function(A){this._should={};for(var B in A){this[B]=A[B];}if(!YAHOO.lang.isString(this.name)){this.name=YAHOO.util.Dom.generateId(null,"testCase");}};YAHOO.tool.TestCase.prototype={resume:function(A){YAHOO.tool.TestRunner.resume(A);},wait:function(B,A){throw new YAHOO.tool.TestCase.Wait(B,A);},setUp:function(){},tearDown:function(){}};YAHOO.tool.TestCase.Wait=function(B,A){this.segment=(YAHOO.lang.isFunction(B)?B:null);this.delay=(YAHOO.lang.isNumber(A)?A: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.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;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"){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.fireEvent(D.BEGIN_EVENT);D._run();}});return new A();})();YAHOO.namespace("util");YAHOO.util.Assert={fail:function(A){throw new YAHOO.util.AssertionError(A||"Test force-failed.");},areEqual:function(B,C,A){if(B!=C){throw new YAHOO.util.ComparisonFailure(A||"Values should be equal.",B,C);}},areNotEqual:function(A,C,B){if(A==C){throw new YAHOO.util.UnexpectedValue(B||"Values should not be equal.",A);}},areNotSame:function(A,C,B){if(A===C){throw new YAHOO.util.UnexpectedValue(B||"Values should not be the same.",A);}},areSame:function(B,C,A){if(B!==C){throw new YAHOO.util.ComparisonFailure(A||"Values should be the same.",B,C);}},isFalse:function(B,A){if(false!==B){throw new YAHOO.util.ComparisonFailure(A||"Value should be false.",false,B);}},isTrue:function(B,A){if(true!==B){throw new YAHOO.util.ComparisonFailure(A||"Value should be true.",true,B);}},isNaN:function(B,A){if(!isNaN(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be NaN.",NaN,B);}},isNotNaN:function(B,A){if(isNaN(B)){throw new YAHOO.util.UnexpectedValue(A||"Values should not be NaN.",NaN);}},isNotNull:function(B,A){if(YAHOO.lang.isNull(B)){throw new YAHOO.util.UnexpectedValue(A||"Values should not be null.",null);}},isNotUndefined:function(B,A){if(YAHOO.lang.isUndefined(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should not be undefined.",undefined);}},isNull:function(B,A){if(!YAHOO.lang.isNull(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be null.",null,B);}},isUndefined:function(B,A){if(!YAHOO.lang.isUndefined(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be undefined.",undefined,B);}},isArray:function(B,A){if(!YAHOO.lang.isArray(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be an array.",B);}},isBoolean:function(B,A){if(!YAHOO.lang.isBoolean(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a Boolean.",B);}},isFunction:function(B,A){if(!YAHOO.lang.isFunction(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a function.",B);}},isInstanceOf:function(B,C,A){if(!(C instanceof B)){throw new YAHOO.util.ComparisonFailure(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(A||"Value should be a number.",B);}},isObject:function(B,A){if(!YAHOO.lang.isObject(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be an object.",B);}},isString:function(B,A){if(!YAHOO.lang.isString(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a string.",B);}},isTypeOf:function(A,C,B){if(typeof C!=A){throw new YAHOO.util.ComparisonFailure(B||"Value should be of type "+expected+".",expected,typeof actual);}}};YAHOO.util.AssertionError=function(A){arguments.callee.superclass.constructor.call(this,A);this.message=A;this.name="AssertionError";};YAHOO.lang.extend(YAHOO.util.AssertionError,Error,{getMessage:function(){return this.message;},toString:function(){return this.name+": "+this.getMessage();},valueOf:function(){return this.toString();}});YAHOO.util.ComparisonFailure=function(B,A,C){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.call(this,"Unexpected error: "+A.message);this.cause=A;this.name="UnexpectedError";};YAHOO.lang.extend(YAHOO.util.UnexpectedError,YAHOO.util.AssertionError);YAHOO.util.ArrayAssert={contains:function(E,D,B){var C=false;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(!C){YAHOO.util.Assert.fail(B||"Value ("+E+") not found in array.");}},containsItems:function(C,D,B){for(var A=0;A<C.length;A++){this.contains(C[A],D,B);}if(!found){YAHOO.util.Assert.fail(B||"Value not found in array.");}},containsMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");}var C=false;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(!C){YAHOO.util.Assert.fail(B||"No match found in array.");}},doesNotContain:function(E,D,B){var C=false;
-for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(C){YAHOO.util.Assert.fail(B||"Value found in array.");}},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;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(C){YAHOO.util.Assert.fail(B||"Value found in array.");}},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 ;}}YAHOO.util.Assert.fail(C||"Value doesn't exist in array.");},itemsAreEqual:function(D,E,C){var A=Math.max(D.length,E.length);for(var B=0;B<A;B++){YAHOO.util.Assert.areEqual(D[B],E[B],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);for(var C=0;C<A;C++){if(!B(E[C],F[C])){throw new YAHOO.util.ComparisonFailure(D||"Values in position "+C+" are not equivalent.",E[C],F[C]);}}},isEmpty:function(B,A){if(B.length>0){YAHOO.util.Assert.fail(A||"Array should be empty.");}},isNotEmpty:function(B,A){if(B.length===0){YAHOO.util.Assert.fail(A||"Array should not be empty.");}},itemsAreSame:function(D,E,C){var A=Math.max(D.length,E.length);for(var B=0;B<A;B++){YAHOO.util.Assert.areSame(D[B],E[B],C||"Values in position "+B+" are not the same.");}},lastIndexOf:function(E,D,A,C){for(var B=D.length;B>=0;B--){if(D[B]===E){YAHOO.util.Assert.areEqual(A,B,C||"Value exists at index "+B+" but should be at index "+A+".");return ;}}YAHOO.util.Assert.fail(C||"Value doesn't exist in array.");}};YAHOO.namespace("util");YAHOO.util.ObjectAssert={propertiesAreEqual:function(D,F,C){var B=[];for(var E in D){B.push(E);}for(var A=0;A<B.length;A++){YAHOO.util.Assert.isNotUndefined(F[B[A]],C||"Property'"+B[A]+"' expected.");}},hasProperty:function(A,B,C){if(YAHOO.lang.isUndefined(B[A])){YAHOO.util.Assert.fail(C||"Property "+A+" not found on object.");}},hasOwnProperty:function(A,B,C){if(!YAHOO.lang.hasOwnProperty(B,A)){YAHOO.util.Assert.fail(C||"Property "+A+" not found on object instance.");}}};YAHOO.util.DateAssert={datesAreEqual:function(B,C,A){if(B instanceof Date&&C instanceof Date){YAHOO.util.Assert.areEqual(B.getFullYear(),C.getFullYear(),A||"Years should be equal.");YAHOO.util.Assert.areEqual(B.getMonth(),C.getMonth(),A||"Months should be equal.");YAHOO.util.Assert.areEqual(B.getDate(),C.getDate(),A||"Day of month should be equal.");}else{throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");}},timesAreEqual:function(B,C,A){if(B instanceof Date&&C instanceof Date){YAHOO.util.Assert.areEqual(B.getHours(),C.getHours(),A||"Hours should be equal.");YAHOO.util.Assert.areEqual(B.getMinutes(),C.getMinutes(),A||"Minutes should be equal.");YAHOO.util.Assert.areEqual(B.getSeconds(),C.getSeconds(),A||"Seconds should be equal.");}else{throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");}}};YAHOO.namespace("util");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.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;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.ownerWindow;}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",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(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,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=(new Date()).toLocaleString();for(var B in this._fields){if(YAHOO.lang.hasOwnProperty(this._fields,B)&&typeof this._fields[B]!="function"){input=document.createElement("input");input.type="hidden";input.name=B;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.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/yuitest/yuitest-beta.js b/lib/yui/yuitest/yuitest-beta.js
deleted file mode 100755 (executable)
index ad11484..0000000
+++ /dev/null
@@ -1,3268 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-
-/**
- * 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*/ = YAHOO.util.Dom.generateId(null, "testCase");
-    }
-
-};
-
-
-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*/{
-        throw new YAHOO.tool.TestCase.Wait(segment, delay);
-    },
-
-    //-------------------------------------------------------------------------
-    // 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
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-/**
- * Runs test suites and test cases, providing events to allowing for the
- * interpretation of test results.
- * @namespace YAHOO.tool
- * @class TestRunner
- * @static
- */
-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;
-        }       
-    };
-
-    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
-         */
-        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
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         */
-        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
-         */
-        _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.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;
-            
-            //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"){
-                                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();
-            
-            //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 = {
-
-    //-------------------------------------------------------------------------
-    // 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(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(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(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(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(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(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(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(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(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(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(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(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} 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 isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(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(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(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(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(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(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(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(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 (expectedType /*:String*/, actualValue /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actualValue != expectedType){
-            throw new YAHOO.util.ComparisonFailure(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, Error, {
-
-    /**
-     * 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();
-    },
-    
-    /**
-     * Returns a primitive value version of the error. Same as toString().
-     * @method valueOf
-     * @return {String} A primitive value version of the error.
-     */
-    valueOf : function () /*:String*/ {
-        return this.toString();
-    }
-
-});
-
-/**
- * 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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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";
-    
-};
-
-//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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value (" + needle + ") not found in array.");
-        }
-    },
-
-    /**
-     * 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);
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value not found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "No match found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-        
-    /**
-     * 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;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(message || "Value doesn't exist in array.");        
-    },
-        
-    /**
-     * 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areEqual(expected[i], actual[i], 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(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){
-            YAHOO.util.Assert.fail(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){
-            YAHOO.util.Assert.fail(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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areSame(expected[i], actual[i], 
-                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*/ {
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(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*/ {
-        
-        //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++){
-            YAHOO.util.Assert.isNotUndefined(actual[properties[i]], 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 (YAHOO.lang.isUndefined(object[propertyName])){
-            YAHOO.util.Assert.fail(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)){
-            YAHOO.util.Assert.fail(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 areEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getFullYear(), actual.getFullYear(), message || "Years should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMonth(), actual.getMonth(), message || "Months should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getDate(), actual.getDate(), 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 areEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getHours(), actual.getHours(), message || "Hours should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMinutes(), actual.getMinutes(), message || "Minutes should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getSeconds(), actual.getSeconds(), message || "Seconds should be equal.");
-        } else {
-            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    }
-    
-};
-
-YAHOO.namespace("util");
-
-/**
- * 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.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;
-        
-        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.ownerWindow;
-            }
-            
-            //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",
-            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 (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,
-
-    /**
-     * 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 = (new Date()).toLocaleString();
-
-        //add fields to the form
-        for (var prop in this._fields){
-            if (YAHOO.lang.hasOwnProperty(this._fields, prop) && typeof this._fields[prop] != "function"){
-                input = document.createElement("input");
-                input.type = "hidden";
-                input.name = prop;
-                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.5.0", build: "895"});
diff --git a/lib/yui/yuitest/yuitest-debug.js b/lib/yui/yuitest/yuitest-debug.js
deleted file mode 100644 (file)
index ad11484..0000000
+++ /dev/null
@@ -1,3268 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-
-/**
- * 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*/ = YAHOO.util.Dom.generateId(null, "testCase");
-    }
-
-};
-
-
-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*/{
-        throw new YAHOO.tool.TestCase.Wait(segment, delay);
-    },
-
-    //-------------------------------------------------------------------------
-    // 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
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-/**
- * Runs test suites and test cases, providing events to allowing for the
- * interpretation of test results.
- * @namespace YAHOO.tool
- * @class TestRunner
- * @static
- */
-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;
-        }       
-    };
-
-    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
-         */
-        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
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         */
-        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
-         */
-        _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.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;
-            
-            //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"){
-                                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();
-            
-            //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 = {
-
-    //-------------------------------------------------------------------------
-    // 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(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(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(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(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(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(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(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(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(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(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(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(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} 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 isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(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(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(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(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(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(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(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(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 (expectedType /*:String*/, actualValue /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actualValue != expectedType){
-            throw new YAHOO.util.ComparisonFailure(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, Error, {
-
-    /**
-     * 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();
-    },
-    
-    /**
-     * Returns a primitive value version of the error. Same as toString().
-     * @method valueOf
-     * @return {String} A primitive value version of the error.
-     */
-    valueOf : function () /*:String*/ {
-        return this.toString();
-    }
-
-});
-
-/**
- * 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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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";
-    
-};
-
-//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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value (" + needle + ") not found in array.");
-        }
-    },
-
-    /**
-     * 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);
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value not found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "No match found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-        
-    /**
-     * 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;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(message || "Value doesn't exist in array.");        
-    },
-        
-    /**
-     * 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areEqual(expected[i], actual[i], 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(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){
-            YAHOO.util.Assert.fail(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){
-            YAHOO.util.Assert.fail(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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areSame(expected[i], actual[i], 
-                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*/ {
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(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*/ {
-        
-        //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++){
-            YAHOO.util.Assert.isNotUndefined(actual[properties[i]], 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 (YAHOO.lang.isUndefined(object[propertyName])){
-            YAHOO.util.Assert.fail(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)){
-            YAHOO.util.Assert.fail(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 areEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getFullYear(), actual.getFullYear(), message || "Years should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMonth(), actual.getMonth(), message || "Months should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getDate(), actual.getDate(), 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 areEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getHours(), actual.getHours(), message || "Hours should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMinutes(), actual.getMinutes(), message || "Minutes should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getSeconds(), actual.getSeconds(), message || "Seconds should be equal.");
-        } else {
-            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    }
-    
-};
-
-YAHOO.namespace("util");
-
-/**
- * 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.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;
-        
-        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.ownerWindow;
-            }
-            
-            //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",
-            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 (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,
-
-    /**
-     * 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 = (new Date()).toLocaleString();
-
-        //add fields to the form
-        for (var prop in this._fields){
-            if (YAHOO.lang.hasOwnProperty(this._fields, prop) && typeof this._fields[prop] != "function"){
-                input = document.createElement("input");
-                input.type = "hidden";
-                input.name = prop;
-                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.5.0", build: "895"});
diff --git a/lib/yui/yuitest/yuitest-min.js b/lib/yui/yuitest/yuitest-min.js
deleted file mode 100644 (file)
index c916cc7..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");YAHOO.tool.TestCase=function(A){this._should={};for(var B in A){this[B]=A[B];}if(!YAHOO.lang.isString(this.name)){this.name=YAHOO.util.Dom.generateId(null,"testCase");}};YAHOO.tool.TestCase.prototype={resume:function(A){YAHOO.tool.TestRunner.resume(A);},wait:function(B,A){throw new YAHOO.tool.TestCase.Wait(B,A);},setUp:function(){},tearDown:function(){}};YAHOO.tool.TestCase.Wait=function(B,A){this.segment=(YAHOO.lang.isFunction(B)?B:null);this.delay=(YAHOO.lang.isNumber(A)?A: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.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;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"){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.fireEvent(D.BEGIN_EVENT);D._run();}});return new A();})();YAHOO.namespace("util");YAHOO.util.Assert={fail:function(A){throw new YAHOO.util.AssertionError(A||"Test force-failed.");},areEqual:function(B,C,A){if(B!=C){throw new YAHOO.util.ComparisonFailure(A||"Values should be equal.",B,C);}},areNotEqual:function(A,C,B){if(A==C){throw new YAHOO.util.UnexpectedValue(B||"Values should not be equal.",A);}},areNotSame:function(A,C,B){if(A===C){throw new YAHOO.util.UnexpectedValue(B||"Values should not be the same.",A);}},areSame:function(B,C,A){if(B!==C){throw new YAHOO.util.ComparisonFailure(A||"Values should be the same.",B,C);}},isFalse:function(B,A){if(false!==B){throw new YAHOO.util.ComparisonFailure(A||"Value should be false.",false,B);}},isTrue:function(B,A){if(true!==B){throw new YAHOO.util.ComparisonFailure(A||"Value should be true.",true,B);}},isNaN:function(B,A){if(!isNaN(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be NaN.",NaN,B);}},isNotNaN:function(B,A){if(isNaN(B)){throw new YAHOO.util.UnexpectedValue(A||"Values should not be NaN.",NaN);}},isNotNull:function(B,A){if(YAHOO.lang.isNull(B)){throw new YAHOO.util.UnexpectedValue(A||"Values should not be null.",null);}},isNotUndefined:function(B,A){if(YAHOO.lang.isUndefined(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should not be undefined.",undefined);}},isNull:function(B,A){if(!YAHOO.lang.isNull(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be null.",null,B);}},isUndefined:function(B,A){if(!YAHOO.lang.isUndefined(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be undefined.",undefined,B);}},isArray:function(B,A){if(!YAHOO.lang.isArray(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be an array.",B);}},isBoolean:function(B,A){if(!YAHOO.lang.isBoolean(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a Boolean.",B);}},isFunction:function(B,A){if(!YAHOO.lang.isFunction(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a function.",B);}},isInstanceOf:function(B,C,A){if(!(C instanceof B)){throw new YAHOO.util.ComparisonFailure(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(A||"Value should be a number.",B);}},isObject:function(B,A){if(!YAHOO.lang.isObject(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be an object.",B);}},isString:function(B,A){if(!YAHOO.lang.isString(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a string.",B);}},isTypeOf:function(A,C,B){if(typeof C!=A){throw new YAHOO.util.ComparisonFailure(B||"Value should be of type "+expected+".",expected,typeof actual);}}};YAHOO.util.AssertionError=function(A){arguments.callee.superclass.constructor.call(this,A);this.message=A;this.name="AssertionError";};YAHOO.lang.extend(YAHOO.util.AssertionError,Error,{getMessage:function(){return this.message;},toString:function(){return this.name+": "+this.getMessage();},valueOf:function(){return this.toString();}});YAHOO.util.ComparisonFailure=function(B,A,C){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.call(this,"Unexpected error: "+A.message);this.cause=A;this.name="UnexpectedError";};YAHOO.lang.extend(YAHOO.util.UnexpectedError,YAHOO.util.AssertionError);YAHOO.util.ArrayAssert={contains:function(E,D,B){var C=false;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(!C){YAHOO.util.Assert.fail(B||"Value ("+E+") not found in array.");}},containsItems:function(C,D,B){for(var A=0;A<C.length;A++){this.contains(C[A],D,B);}if(!found){YAHOO.util.Assert.fail(B||"Value not found in array.");}},containsMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");}var C=false;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(!C){YAHOO.util.Assert.fail(B||"No match found in array.");}},doesNotContain:function(E,D,B){var C=false;
-for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(C){YAHOO.util.Assert.fail(B||"Value found in array.");}},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;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(C){YAHOO.util.Assert.fail(B||"Value found in array.");}},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 ;}}YAHOO.util.Assert.fail(C||"Value doesn't exist in array.");},itemsAreEqual:function(D,E,C){var A=Math.max(D.length,E.length);for(var B=0;B<A;B++){YAHOO.util.Assert.areEqual(D[B],E[B],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);for(var C=0;C<A;C++){if(!B(E[C],F[C])){throw new YAHOO.util.ComparisonFailure(D||"Values in position "+C+" are not equivalent.",E[C],F[C]);}}},isEmpty:function(B,A){if(B.length>0){YAHOO.util.Assert.fail(A||"Array should be empty.");}},isNotEmpty:function(B,A){if(B.length===0){YAHOO.util.Assert.fail(A||"Array should not be empty.");}},itemsAreSame:function(D,E,C){var A=Math.max(D.length,E.length);for(var B=0;B<A;B++){YAHOO.util.Assert.areSame(D[B],E[B],C||"Values in position "+B+" are not the same.");}},lastIndexOf:function(E,D,A,C){for(var B=D.length;B>=0;B--){if(D[B]===E){YAHOO.util.Assert.areEqual(A,B,C||"Value exists at index "+B+" but should be at index "+A+".");return ;}}YAHOO.util.Assert.fail(C||"Value doesn't exist in array.");}};YAHOO.namespace("util");YAHOO.util.ObjectAssert={propertiesAreEqual:function(D,F,C){var B=[];for(var E in D){B.push(E);}for(var A=0;A<B.length;A++){YAHOO.util.Assert.isNotUndefined(F[B[A]],C||"Property'"+B[A]+"' expected.");}},hasProperty:function(A,B,C){if(YAHOO.lang.isUndefined(B[A])){YAHOO.util.Assert.fail(C||"Property "+A+" not found on object.");}},hasOwnProperty:function(A,B,C){if(!YAHOO.lang.hasOwnProperty(B,A)){YAHOO.util.Assert.fail(C||"Property "+A+" not found on object instance.");}}};YAHOO.util.DateAssert={datesAreEqual:function(B,C,A){if(B instanceof Date&&C instanceof Date){YAHOO.util.Assert.areEqual(B.getFullYear(),C.getFullYear(),A||"Years should be equal.");YAHOO.util.Assert.areEqual(B.getMonth(),C.getMonth(),A||"Months should be equal.");YAHOO.util.Assert.areEqual(B.getDate(),C.getDate(),A||"Day of month should be equal.");}else{throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");}},timesAreEqual:function(B,C,A){if(B instanceof Date&&C instanceof Date){YAHOO.util.Assert.areEqual(B.getHours(),C.getHours(),A||"Hours should be equal.");YAHOO.util.Assert.areEqual(B.getMinutes(),C.getMinutes(),A||"Minutes should be equal.");YAHOO.util.Assert.areEqual(B.getSeconds(),C.getSeconds(),A||"Seconds should be equal.");}else{throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");}}};YAHOO.namespace("util");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.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;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.ownerWindow;}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",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(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,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=(new Date()).toLocaleString();for(var B in this._fields){if(YAHOO.lang.hasOwnProperty(this._fields,B)&&typeof this._fields[B]!="function"){input=document.createElement("input");input.type="hidden";input.name=B;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.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/yuitest/yuitest.js b/lib/yui/yuitest/yuitest.js
deleted file mode 100644 (file)
index ad11484..0000000
+++ /dev/null
@@ -1,3268 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-
-/**
- * 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*/ = YAHOO.util.Dom.generateId(null, "testCase");
-    }
-
-};
-
-
-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*/{
-        throw new YAHOO.tool.TestCase.Wait(segment, delay);
-    },
-
-    //-------------------------------------------------------------------------
-    // 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
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-/**
- * Runs test suites and test cases, providing events to allowing for the
- * interpretation of test results.
- * @namespace YAHOO.tool
- * @class TestRunner
- * @static
- */
-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;
-        }       
-    };
-
-    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
-         */
-        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
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         */
-        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
-         */
-        _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.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;
-            
-            //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"){
-                                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();
-            
-            //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 = {
-
-    //-------------------------------------------------------------------------
-    // 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(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(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(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(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(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(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(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(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(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(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(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(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} 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 isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(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(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(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(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(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(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(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(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 (expectedType /*:String*/, actualValue /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actualValue != expectedType){
-            throw new YAHOO.util.ComparisonFailure(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, Error, {
-
-    /**
-     * 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();
-    },
-    
-    /**
-     * Returns a primitive value version of the error. Same as toString().
-     * @method valueOf
-     * @return {String} A primitive value version of the error.
-     */
-    valueOf : function () /*:String*/ {
-        return this.toString();
-    }
-
-});
-
-/**
- * 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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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";
-    
-};
-
-//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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value (" + needle + ") not found in array.");
-        }
-    },
-
-    /**
-     * 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);
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value not found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "No match found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-        
-    /**
-     * 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;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(message || "Value doesn't exist in array.");        
-    },
-        
-    /**
-     * 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areEqual(expected[i], actual[i], 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(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){
-            YAHOO.util.Assert.fail(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){
-            YAHOO.util.Assert.fail(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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areSame(expected[i], actual[i], 
-                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*/ {
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(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*/ {
-        
-        //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++){
-            YAHOO.util.Assert.isNotUndefined(actual[properties[i]], 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 (YAHOO.lang.isUndefined(object[propertyName])){
-            YAHOO.util.Assert.fail(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)){
-            YAHOO.util.Assert.fail(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 areEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getFullYear(), actual.getFullYear(), message || "Years should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMonth(), actual.getMonth(), message || "Months should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getDate(), actual.getDate(), 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 areEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getHours(), actual.getHours(), message || "Hours should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMinutes(), actual.getMinutes(), message || "Minutes should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getSeconds(), actual.getSeconds(), message || "Seconds should be equal.");
-        } else {
-            throw new TypeError("DateAssert.timesAreEqual(): Expected and actual values must be Date objects.");
-        }
-    }
-    
-};
-
-YAHOO.namespace("util");
-
-/**
- * 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.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;
-        
-        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.ownerWindow;
-            }
-            
-            //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",
-            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 (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,
-
-    /**
-     * 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 = (new Date()).toLocaleString();
-
-        //add fields to the form
-        for (var prop in this._fields){
-            if (YAHOO.lang.hasOwnProperty(this._fields, prop) && typeof this._fields[prop] != "function"){
-                input = document.createElement("input");
-                input.type = "hidden";
-                input.name = prop;
-                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.5.0", build: "895"});
diff --git a/lib/yui/yuitest/yuitest_core-beta-debug.js b/lib/yui/yuitest/yuitest_core-beta-debug.js
deleted file mode 100644 (file)
index 8a431c2..0000000
+++ /dev/null
@@ -1,1922 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-
-/**
- * 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*/ = YAHOO.util.Dom.generateId(null, "testCase");
-    }
-
-};
-
-
-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*/{
-        throw new YAHOO.tool.TestCase.Wait(segment, delay);
-    },
-
-    //-------------------------------------------------------------------------
-    // 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
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-/**
- * Runs test suites and test cases, providing events to allowing for the
- * interpretation of test results.
- * @namespace YAHOO.tool
- * @class TestRunner
- * @static
- */
-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;
-        }       
-    };
-
-    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
-         */
-        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
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         */
-        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
-         */
-        _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.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;
-            
-            //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"){
-                                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();
-            
-            //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 = {
-
-    //-------------------------------------------------------------------------
-    // 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(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(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(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(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(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(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(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(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(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(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(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(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} 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 isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(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(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(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(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(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(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(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(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 (expectedType /*:String*/, actualValue /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actualValue != expectedType){
-            throw new YAHOO.util.ComparisonFailure(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, Error, {
-
-    /**
-     * 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();
-    },
-    
-    /**
-     * Returns a primitive value version of the error. Same as toString().
-     * @method valueOf
-     * @return {String} A primitive value version of the error.
-     */
-    valueOf : function () /*:String*/ {
-        return this.toString();
-    }
-
-});
-
-/**
- * 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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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";
-    
-};
-
-//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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value (" + needle + ") not found in array.");
-        }
-    },
-
-    /**
-     * 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);
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value not found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "No match found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-        
-    /**
-     * 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;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(message || "Value doesn't exist in array.");        
-    },
-        
-    /**
-     * 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areEqual(expected[i], actual[i], 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(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){
-            YAHOO.util.Assert.fail(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){
-            YAHOO.util.Assert.fail(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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areSame(expected[i], actual[i], 
-                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*/ {
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(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*/ {
-        
-        //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++){
-            YAHOO.util.Assert.isNotUndefined(actual[properties[i]], 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 (YAHOO.lang.isUndefined(object[propertyName])){
-            YAHOO.util.Assert.fail(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)){
-            YAHOO.util.Assert.fail(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 areEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getFullYear(), actual.getFullYear(), message || "Years should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMonth(), actual.getMonth(), message || "Months should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getDate(), actual.getDate(), 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 areEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getHours(), actual.getHours(), message || "Hours should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMinutes(), actual.getMinutes(), message || "Minutes should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getSeconds(), actual.getSeconds(), 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.5.0", build: "895"});
diff --git a/lib/yui/yuitest/yuitest_core-beta-min.js b/lib/yui/yuitest/yuitest_core-beta-min.js
deleted file mode 100644 (file)
index dcb313f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");YAHOO.tool.TestCase=function(A){this._should={};for(var B in A){this[B]=A[B];}if(!YAHOO.lang.isString(this.name)){this.name=YAHOO.util.Dom.generateId(null,"testCase");}};YAHOO.tool.TestCase.prototype={resume:function(A){YAHOO.tool.TestRunner.resume(A);},wait:function(B,A){throw new YAHOO.tool.TestCase.Wait(B,A);},setUp:function(){},tearDown:function(){}};YAHOO.tool.TestCase.Wait=function(B,A){this.segment=(YAHOO.lang.isFunction(B)?B:null);this.delay=(YAHOO.lang.isNumber(A)?A: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.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;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"){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.fireEvent(D.BEGIN_EVENT);D._run();}});return new A();})();YAHOO.namespace("util");YAHOO.util.Assert={fail:function(A){throw new YAHOO.util.AssertionError(A||"Test force-failed.");},areEqual:function(B,C,A){if(B!=C){throw new YAHOO.util.ComparisonFailure(A||"Values should be equal.",B,C);}},areNotEqual:function(A,C,B){if(A==C){throw new YAHOO.util.UnexpectedValue(B||"Values should not be equal.",A);}},areNotSame:function(A,C,B){if(A===C){throw new YAHOO.util.UnexpectedValue(B||"Values should not be the same.",A);}},areSame:function(B,C,A){if(B!==C){throw new YAHOO.util.ComparisonFailure(A||"Values should be the same.",B,C);}},isFalse:function(B,A){if(false!==B){throw new YAHOO.util.ComparisonFailure(A||"Value should be false.",false,B);}},isTrue:function(B,A){if(true!==B){throw new YAHOO.util.ComparisonFailure(A||"Value should be true.",true,B);}},isNaN:function(B,A){if(!isNaN(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be NaN.",NaN,B);}},isNotNaN:function(B,A){if(isNaN(B)){throw new YAHOO.util.UnexpectedValue(A||"Values should not be NaN.",NaN);}},isNotNull:function(B,A){if(YAHOO.lang.isNull(B)){throw new YAHOO.util.UnexpectedValue(A||"Values should not be null.",null);}},isNotUndefined:function(B,A){if(YAHOO.lang.isUndefined(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should not be undefined.",undefined);}},isNull:function(B,A){if(!YAHOO.lang.isNull(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be null.",null,B);}},isUndefined:function(B,A){if(!YAHOO.lang.isUndefined(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be undefined.",undefined,B);}},isArray:function(B,A){if(!YAHOO.lang.isArray(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be an array.",B);}},isBoolean:function(B,A){if(!YAHOO.lang.isBoolean(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a Boolean.",B);}},isFunction:function(B,A){if(!YAHOO.lang.isFunction(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a function.",B);}},isInstanceOf:function(B,C,A){if(!(C instanceof B)){throw new YAHOO.util.ComparisonFailure(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(A||"Value should be a number.",B);}},isObject:function(B,A){if(!YAHOO.lang.isObject(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be an object.",B);}},isString:function(B,A){if(!YAHOO.lang.isString(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a string.",B);}},isTypeOf:function(A,C,B){if(typeof C!=A){throw new YAHOO.util.ComparisonFailure(B||"Value should be of type "+expected+".",expected,typeof actual);}}};YAHOO.util.AssertionError=function(A){arguments.callee.superclass.constructor.call(this,A);this.message=A;this.name="AssertionError";};YAHOO.lang.extend(YAHOO.util.AssertionError,Error,{getMessage:function(){return this.message;},toString:function(){return this.name+": "+this.getMessage();},valueOf:function(){return this.toString();}});YAHOO.util.ComparisonFailure=function(B,A,C){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.call(this,"Unexpected error: "+A.message);this.cause=A;this.name="UnexpectedError";};YAHOO.lang.extend(YAHOO.util.UnexpectedError,YAHOO.util.AssertionError);YAHOO.util.ArrayAssert={contains:function(E,D,B){var C=false;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(!C){YAHOO.util.Assert.fail(B||"Value ("+E+") not found in array.");}},containsItems:function(C,D,B){for(var A=0;A<C.length;A++){this.contains(C[A],D,B);}if(!found){YAHOO.util.Assert.fail(B||"Value not found in array.");}},containsMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");}var C=false;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(!C){YAHOO.util.Assert.fail(B||"No match found in array.");}},doesNotContain:function(E,D,B){var C=false;
-for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(C){YAHOO.util.Assert.fail(B||"Value found in array.");}},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;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(C){YAHOO.util.Assert.fail(B||"Value found in array.");}},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 ;}}YAHOO.util.Assert.fail(C||"Value doesn't exist in array.");},itemsAreEqual:function(D,E,C){var A=Math.max(D.length,E.length);for(var B=0;B<A;B++){YAHOO.util.Assert.areEqual(D[B],E[B],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);for(var C=0;C<A;C++){if(!B(E[C],F[C])){throw new YAHOO.util.ComparisonFailure(D||"Values in position "+C+" are not equivalent.",E[C],F[C]);}}},isEmpty:function(B,A){if(B.length>0){YAHOO.util.Assert.fail(A||"Array should be empty.");}},isNotEmpty:function(B,A){if(B.length===0){YAHOO.util.Assert.fail(A||"Array should not be empty.");}},itemsAreSame:function(D,E,C){var A=Math.max(D.length,E.length);for(var B=0;B<A;B++){YAHOO.util.Assert.areSame(D[B],E[B],C||"Values in position "+B+" are not the same.");}},lastIndexOf:function(E,D,A,C){for(var B=D.length;B>=0;B--){if(D[B]===E){YAHOO.util.Assert.areEqual(A,B,C||"Value exists at index "+B+" but should be at index "+A+".");return ;}}YAHOO.util.Assert.fail(C||"Value doesn't exist in array.");}};YAHOO.namespace("util");YAHOO.util.ObjectAssert={propertiesAreEqual:function(D,F,C){var B=[];for(var E in D){B.push(E);}for(var A=0;A<B.length;A++){YAHOO.util.Assert.isNotUndefined(F[B[A]],C||"Property'"+B[A]+"' expected.");}},hasProperty:function(A,B,C){if(YAHOO.lang.isUndefined(B[A])){YAHOO.util.Assert.fail(C||"Property "+A+" not found on object.");}},hasOwnProperty:function(A,B,C){if(!YAHOO.lang.hasOwnProperty(B,A)){YAHOO.util.Assert.fail(C||"Property "+A+" not found on object instance.");}}};YAHOO.util.DateAssert={datesAreEqual:function(B,C,A){if(B instanceof Date&&C instanceof Date){YAHOO.util.Assert.areEqual(B.getFullYear(),C.getFullYear(),A||"Years should be equal.");YAHOO.util.Assert.areEqual(B.getMonth(),C.getMonth(),A||"Months should be equal.");YAHOO.util.Assert.areEqual(B.getDate(),C.getDate(),A||"Day of month should be equal.");}else{throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");}},timesAreEqual:function(B,C,A){if(B instanceof Date&&C instanceof Date){YAHOO.util.Assert.areEqual(B.getHours(),C.getHours(),A||"Hours should be equal.");YAHOO.util.Assert.areEqual(B.getMinutes(),C.getMinutes(),A||"Minutes should be equal.");YAHOO.util.Assert.areEqual(B.getSeconds(),C.getSeconds(),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.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/yuitest/yuitest_core-beta.js b/lib/yui/yuitest/yuitest_core-beta.js
deleted file mode 100644 (file)
index 8a431c2..0000000
+++ /dev/null
@@ -1,1922 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-
-/**
- * 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*/ = YAHOO.util.Dom.generateId(null, "testCase");
-    }
-
-};
-
-
-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*/{
-        throw new YAHOO.tool.TestCase.Wait(segment, delay);
-    },
-
-    //-------------------------------------------------------------------------
-    // 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
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-/**
- * Runs test suites and test cases, providing events to allowing for the
- * interpretation of test results.
- * @namespace YAHOO.tool
- * @class TestRunner
- * @static
- */
-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;
-        }       
-    };
-
-    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
-         */
-        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
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         */
-        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
-         */
-        _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.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;
-            
-            //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"){
-                                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();
-            
-            //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 = {
-
-    //-------------------------------------------------------------------------
-    // 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(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(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(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(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(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(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(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(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(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(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(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(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} 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 isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(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(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(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(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(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(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(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(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 (expectedType /*:String*/, actualValue /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actualValue != expectedType){
-            throw new YAHOO.util.ComparisonFailure(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, Error, {
-
-    /**
-     * 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();
-    },
-    
-    /**
-     * Returns a primitive value version of the error. Same as toString().
-     * @method valueOf
-     * @return {String} A primitive value version of the error.
-     */
-    valueOf : function () /*:String*/ {
-        return this.toString();
-    }
-
-});
-
-/**
- * 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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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";
-    
-};
-
-//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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value (" + needle + ") not found in array.");
-        }
-    },
-
-    /**
-     * 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);
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value not found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "No match found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-        
-    /**
-     * 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;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(message || "Value doesn't exist in array.");        
-    },
-        
-    /**
-     * 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areEqual(expected[i], actual[i], 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(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){
-            YAHOO.util.Assert.fail(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){
-            YAHOO.util.Assert.fail(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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areSame(expected[i], actual[i], 
-                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*/ {
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(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*/ {
-        
-        //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++){
-            YAHOO.util.Assert.isNotUndefined(actual[properties[i]], 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 (YAHOO.lang.isUndefined(object[propertyName])){
-            YAHOO.util.Assert.fail(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)){
-            YAHOO.util.Assert.fail(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 areEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getFullYear(), actual.getFullYear(), message || "Years should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMonth(), actual.getMonth(), message || "Months should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getDate(), actual.getDate(), 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 areEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getHours(), actual.getHours(), message || "Hours should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMinutes(), actual.getMinutes(), message || "Minutes should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getSeconds(), actual.getSeconds(), 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.5.0", build: "895"});
diff --git a/lib/yui/yuitest/yuitest_core-debug.js b/lib/yui/yuitest/yuitest_core-debug.js
deleted file mode 100644 (file)
index 8a431c2..0000000
+++ /dev/null
@@ -1,1922 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-
-/**
- * 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*/ = YAHOO.util.Dom.generateId(null, "testCase");
-    }
-
-};
-
-
-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*/{
-        throw new YAHOO.tool.TestCase.Wait(segment, delay);
-    },
-
-    //-------------------------------------------------------------------------
-    // 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
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-/**
- * Runs test suites and test cases, providing events to allowing for the
- * interpretation of test results.
- * @namespace YAHOO.tool
- * @class TestRunner
- * @static
- */
-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;
-        }       
-    };
-
-    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
-         */
-        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
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         */
-        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
-         */
-        _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.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;
-            
-            //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"){
-                                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();
-            
-            //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 = {
-
-    //-------------------------------------------------------------------------
-    // 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(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(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(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(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(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(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(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(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(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(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(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(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} 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 isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(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(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(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(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(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(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(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(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 (expectedType /*:String*/, actualValue /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actualValue != expectedType){
-            throw new YAHOO.util.ComparisonFailure(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, Error, {
-
-    /**
-     * 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();
-    },
-    
-    /**
-     * Returns a primitive value version of the error. Same as toString().
-     * @method valueOf
-     * @return {String} A primitive value version of the error.
-     */
-    valueOf : function () /*:String*/ {
-        return this.toString();
-    }
-
-});
-
-/**
- * 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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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";
-    
-};
-
-//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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value (" + needle + ") not found in array.");
-        }
-    },
-
-    /**
-     * 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);
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value not found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "No match found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-        
-    /**
-     * 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;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(message || "Value doesn't exist in array.");        
-    },
-        
-    /**
-     * 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areEqual(expected[i], actual[i], 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(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){
-            YAHOO.util.Assert.fail(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){
-            YAHOO.util.Assert.fail(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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areSame(expected[i], actual[i], 
-                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*/ {
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(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*/ {
-        
-        //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++){
-            YAHOO.util.Assert.isNotUndefined(actual[properties[i]], 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 (YAHOO.lang.isUndefined(object[propertyName])){
-            YAHOO.util.Assert.fail(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)){
-            YAHOO.util.Assert.fail(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 areEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getFullYear(), actual.getFullYear(), message || "Years should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMonth(), actual.getMonth(), message || "Months should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getDate(), actual.getDate(), 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 areEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getHours(), actual.getHours(), message || "Hours should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMinutes(), actual.getMinutes(), message || "Minutes should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getSeconds(), actual.getSeconds(), 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.5.0", build: "895"});
diff --git a/lib/yui/yuitest/yuitest_core-min.js b/lib/yui/yuitest/yuitest_core-min.js
deleted file mode 100644 (file)
index dcb313f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");YAHOO.tool.TestCase=function(A){this._should={};for(var B in A){this[B]=A[B];}if(!YAHOO.lang.isString(this.name)){this.name=YAHOO.util.Dom.generateId(null,"testCase");}};YAHOO.tool.TestCase.prototype={resume:function(A){YAHOO.tool.TestRunner.resume(A);},wait:function(B,A){throw new YAHOO.tool.TestCase.Wait(B,A);},setUp:function(){},tearDown:function(){}};YAHOO.tool.TestCase.Wait=function(B,A){this.segment=(YAHOO.lang.isFunction(B)?B:null);this.delay=(YAHOO.lang.isNumber(A)?A: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.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;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"){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.fireEvent(D.BEGIN_EVENT);D._run();}});return new A();})();YAHOO.namespace("util");YAHOO.util.Assert={fail:function(A){throw new YAHOO.util.AssertionError(A||"Test force-failed.");},areEqual:function(B,C,A){if(B!=C){throw new YAHOO.util.ComparisonFailure(A||"Values should be equal.",B,C);}},areNotEqual:function(A,C,B){if(A==C){throw new YAHOO.util.UnexpectedValue(B||"Values should not be equal.",A);}},areNotSame:function(A,C,B){if(A===C){throw new YAHOO.util.UnexpectedValue(B||"Values should not be the same.",A);}},areSame:function(B,C,A){if(B!==C){throw new YAHOO.util.ComparisonFailure(A||"Values should be the same.",B,C);}},isFalse:function(B,A){if(false!==B){throw new YAHOO.util.ComparisonFailure(A||"Value should be false.",false,B);}},isTrue:function(B,A){if(true!==B){throw new YAHOO.util.ComparisonFailure(A||"Value should be true.",true,B);}},isNaN:function(B,A){if(!isNaN(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be NaN.",NaN,B);}},isNotNaN:function(B,A){if(isNaN(B)){throw new YAHOO.util.UnexpectedValue(A||"Values should not be NaN.",NaN);}},isNotNull:function(B,A){if(YAHOO.lang.isNull(B)){throw new YAHOO.util.UnexpectedValue(A||"Values should not be null.",null);}},isNotUndefined:function(B,A){if(YAHOO.lang.isUndefined(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should not be undefined.",undefined);}},isNull:function(B,A){if(!YAHOO.lang.isNull(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be null.",null,B);}},isUndefined:function(B,A){if(!YAHOO.lang.isUndefined(B)){throw new YAHOO.util.ComparisonFailure(A||"Value should be undefined.",undefined,B);}},isArray:function(B,A){if(!YAHOO.lang.isArray(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be an array.",B);}},isBoolean:function(B,A){if(!YAHOO.lang.isBoolean(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a Boolean.",B);}},isFunction:function(B,A){if(!YAHOO.lang.isFunction(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a function.",B);}},isInstanceOf:function(B,C,A){if(!(C instanceof B)){throw new YAHOO.util.ComparisonFailure(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(A||"Value should be a number.",B);}},isObject:function(B,A){if(!YAHOO.lang.isObject(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be an object.",B);}},isString:function(B,A){if(!YAHOO.lang.isString(B)){throw new YAHOO.util.UnexpectedValue(A||"Value should be a string.",B);}},isTypeOf:function(A,C,B){if(typeof C!=A){throw new YAHOO.util.ComparisonFailure(B||"Value should be of type "+expected+".",expected,typeof actual);}}};YAHOO.util.AssertionError=function(A){arguments.callee.superclass.constructor.call(this,A);this.message=A;this.name="AssertionError";};YAHOO.lang.extend(YAHOO.util.AssertionError,Error,{getMessage:function(){return this.message;},toString:function(){return this.name+": "+this.getMessage();},valueOf:function(){return this.toString();}});YAHOO.util.ComparisonFailure=function(B,A,C){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.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){arguments.callee.superclass.constructor.call(this,"Unexpected error: "+A.message);this.cause=A;this.name="UnexpectedError";};YAHOO.lang.extend(YAHOO.util.UnexpectedError,YAHOO.util.AssertionError);YAHOO.util.ArrayAssert={contains:function(E,D,B){var C=false;for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(!C){YAHOO.util.Assert.fail(B||"Value ("+E+") not found in array.");}},containsItems:function(C,D,B){for(var A=0;A<C.length;A++){this.contains(C[A],D,B);}if(!found){YAHOO.util.Assert.fail(B||"Value not found in array.");}},containsMatch:function(E,D,B){if(typeof E!="function"){throw new TypeError("ArrayAssert.containsMatch(): First argument must be a function.");}var C=false;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(!C){YAHOO.util.Assert.fail(B||"No match found in array.");}},doesNotContain:function(E,D,B){var C=false;
-for(var A=0;A<D.length&&!C;A++){if(D[A]===E){C=true;}}if(C){YAHOO.util.Assert.fail(B||"Value found in array.");}},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;for(var A=0;A<D.length&&!C;A++){if(E(D[A])){C=true;}}if(C){YAHOO.util.Assert.fail(B||"Value found in array.");}},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 ;}}YAHOO.util.Assert.fail(C||"Value doesn't exist in array.");},itemsAreEqual:function(D,E,C){var A=Math.max(D.length,E.length);for(var B=0;B<A;B++){YAHOO.util.Assert.areEqual(D[B],E[B],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);for(var C=0;C<A;C++){if(!B(E[C],F[C])){throw new YAHOO.util.ComparisonFailure(D||"Values in position "+C+" are not equivalent.",E[C],F[C]);}}},isEmpty:function(B,A){if(B.length>0){YAHOO.util.Assert.fail(A||"Array should be empty.");}},isNotEmpty:function(B,A){if(B.length===0){YAHOO.util.Assert.fail(A||"Array should not be empty.");}},itemsAreSame:function(D,E,C){var A=Math.max(D.length,E.length);for(var B=0;B<A;B++){YAHOO.util.Assert.areSame(D[B],E[B],C||"Values in position "+B+" are not the same.");}},lastIndexOf:function(E,D,A,C){for(var B=D.length;B>=0;B--){if(D[B]===E){YAHOO.util.Assert.areEqual(A,B,C||"Value exists at index "+B+" but should be at index "+A+".");return ;}}YAHOO.util.Assert.fail(C||"Value doesn't exist in array.");}};YAHOO.namespace("util");YAHOO.util.ObjectAssert={propertiesAreEqual:function(D,F,C){var B=[];for(var E in D){B.push(E);}for(var A=0;A<B.length;A++){YAHOO.util.Assert.isNotUndefined(F[B[A]],C||"Property'"+B[A]+"' expected.");}},hasProperty:function(A,B,C){if(YAHOO.lang.isUndefined(B[A])){YAHOO.util.Assert.fail(C||"Property "+A+" not found on object.");}},hasOwnProperty:function(A,B,C){if(!YAHOO.lang.hasOwnProperty(B,A)){YAHOO.util.Assert.fail(C||"Property "+A+" not found on object instance.");}}};YAHOO.util.DateAssert={datesAreEqual:function(B,C,A){if(B instanceof Date&&C instanceof Date){YAHOO.util.Assert.areEqual(B.getFullYear(),C.getFullYear(),A||"Years should be equal.");YAHOO.util.Assert.areEqual(B.getMonth(),C.getMonth(),A||"Months should be equal.");YAHOO.util.Assert.areEqual(B.getDate(),C.getDate(),A||"Day of month should be equal.");}else{throw new TypeError("DateAssert.datesAreEqual(): Expected and actual values must be Date objects.");}},timesAreEqual:function(B,C,A){if(B instanceof Date&&C instanceof Date){YAHOO.util.Assert.areEqual(B.getHours(),C.getHours(),A||"Hours should be equal.");YAHOO.util.Assert.areEqual(B.getMinutes(),C.getMinutes(),A||"Minutes should be equal.");YAHOO.util.Assert.areEqual(B.getSeconds(),C.getSeconds(),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.5.0",build:"895"});
\ No newline at end of file
diff --git a/lib/yui/yuitest/yuitest_core.js b/lib/yui/yuitest/yuitest_core.js
deleted file mode 100644 (file)
index 8a431c2..0000000
+++ /dev/null
@@ -1,1922 +0,0 @@
-/*
-Copyright (c) 2008, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.5.0
-*/
-YAHOO.namespace("tool");
-
-//-----------------------------------------------------------------------------
-// TestCase object
-//-----------------------------------------------------------------------------
-
-/**
- * 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*/ = YAHOO.util.Dom.generateId(null, "testCase");
-    }
-
-};
-
-
-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*/{
-        throw new YAHOO.tool.TestCase.Wait(segment, delay);
-    },
-
-    //-------------------------------------------------------------------------
-    // 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
- */
-
-
-//-----------------------------------------------------------------------------
-// TestRunner object
-//-----------------------------------------------------------------------------
-
-/**
- * Runs test suites and test cases, providing events to allowing for the
- * interpretation of test results.
- * @namespace YAHOO.tool
- * @class TestRunner
- * @static
- */
-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;
-        }       
-    };
-
-    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
-         */
-        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
-         */
-        this._cur = null;
-        
-        /**
-         * Pointer to the root node in the test tree.
-         * @type TestNode
-         * @private
-         * @property _root
-         */
-        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
-         */
-        _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.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;
-            
-            //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"){
-                                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();
-            
-            //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 = {
-
-    //-------------------------------------------------------------------------
-    // 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(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(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(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(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(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(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(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(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(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(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(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(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} 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 isUndefined
-     * @static
-     */
-    isUndefined : function (actual /*:Object*/, message /*:String*/) /*:Void*/ {
-        if (!YAHOO.lang.isUndefined(actual)) {
-            throw new YAHOO.util.ComparisonFailure(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(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(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(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(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(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(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(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 (expectedType /*:String*/, actualValue /*:Object*/, message /*:String*/) /*:Void*/{
-        if (typeof actualValue != expectedType){
-            throw new YAHOO.util.ComparisonFailure(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, Error, {
-
-    /**
-     * 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();
-    },
-    
-    /**
-     * Returns a primitive value version of the error. Same as toString().
-     * @method valueOf
-     * @return {String} A primitive value version of the error.
-     */
-    valueOf : function () /*:String*/ {
-        return this.toString();
-    }
-
-});
-
-/**
- * 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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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
-    arguments.callee.superclass.constructor.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";
-    
-};
-
-//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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value (" + needle + ") not found in array.");
-        }
-    },
-
-    /**
-     * 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);
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "Value not found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (!found){
-            YAHOO.util.Assert.fail(message || "No match found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (haystack[i] === needle) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-
-    /**
-     * 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;
-        
-        //begin checking values
-        for (var i=0; i < haystack.length && !found; i++){
-            if (matcher(haystack[i])) {
-                found = true;
-            }
-        }
-        
-        if (found){
-            YAHOO.util.Assert.fail(message || "Value found in array.");
-        }
-    },
-        
-    /**
-     * 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;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(message || "Value doesn't exist in array.");        
-    },
-        
-    /**
-     * 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areEqual(expected[i], actual[i], 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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            if (!comparator(expected[i], actual[i])){
-                throw new YAHOO.util.ComparisonFailure(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){
-            YAHOO.util.Assert.fail(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){
-            YAHOO.util.Assert.fail(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);
-        
-        //begin checking values
-        for (var i=0; i < len; i++){
-            YAHOO.util.Assert.areSame(expected[i], actual[i], 
-                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*/ {
-    
-        //try to find the value in the array
-        for (var i=haystack.length; i >= 0; i--){
-            if (haystack[i] === needle){
-                YAHOO.util.Assert.areEqual(index, i, message || "Value exists at index " + i + " but should be at index " + index + ".");
-                return;
-            }
-        }
-        
-        //if it makes it here, it wasn't found at all
-        YAHOO.util.Assert.fail(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*/ {
-        
-        //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++){
-            YAHOO.util.Assert.isNotUndefined(actual[properties[i]], 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 (YAHOO.lang.isUndefined(object[propertyName])){
-            YAHOO.util.Assert.fail(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)){
-            YAHOO.util.Assert.fail(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 areEqual
-     * @static
-     */
-    datesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getFullYear(), actual.getFullYear(), message || "Years should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMonth(), actual.getMonth(), message || "Months should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getDate(), actual.getDate(), 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 areEqual
-     * @static
-     */
-    timesAreEqual : function (expected /*:Date*/, actual /*:Date*/, message /*:String*/){
-        if (expected instanceof Date && actual instanceof Date){
-            YAHOO.util.Assert.areEqual(expected.getHours(), actual.getHours(), message || "Hours should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getMinutes(), actual.getMinutes(), message || "Minutes should be equal.");
-            YAHOO.util.Assert.areEqual(expected.getSeconds(), actual.getSeconds(), 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.5.0", build: "895"});